The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
669 views

How to make the task scheduler display the cmd shell when invoking a batch file?

I am using Windows 2008 R2, and I am trying to schedule my application in the Task Scheduler. I have created a batch with the right settings. The problem I have is: I need to display the Cmd shell ...
2
votes
2answers
199 views

How Can I Create Multiple Files of a single file in multiple Directories?

Hello I am trying to create multiple copies of a single file in multiple directories? for example I have 6 folders with a single file in each folder named lp.html, How can I run a batch to create 100 ...
1
vote
2answers
2k views

net use mapping not working in batch files but works in cmd

Ok so here's the problem : I've got users using logon script in the domain (username.bat). The script simply lists 4 or 5 (net use letter: \\SERVER\directory\). However, when they open their session, ...
0
votes
2answers
29 views

Assign DNS settings on client via elevated script in GPO

i have installed windows 2012 as a member server in my existing windows 2008 DC. now i want to assign secondary DNS on my windows 7/8 client PCs. I do not have DHCP in my environment. I tried to find ...
2
votes
1answer
43 views

Provide Administrator credentials within script

I am writing a script that runs from a user account. The script needs to execute another script as the Administrator account. Tried AutoIt's RunAs - didn't work. Tried PsExec - the same. Tried ...
1
vote
1answer
151 views

for loop windows cmd

I'am using Windows cmd to calculate some variables. The command works fine: gut adapt_gf -InFile sla1.nc -OutFile sla_grid1.nc However, I have many sla values (sla1.nc,sla2, sla3, etc). Is there ...
0
votes
1answer
716 views

sqlcmd is not recognised as an internal or external command, operable program or batch file SQL2014

I have written an installer that is supposed to install SQL Server Express 2014, create an instance, and then use sqlcmd to connect to the instance and build the database from a schema. It works by, ...
0
votes
1answer
149 views

Security settings * differences between cmd.exe window and IE

I plan to retrieve an rss file (xml format) with url http://alerts.weather.gov/cap/ma.php?x=0 from a web site periodically with a scheduled task. I have a php script to do that. When I access the ...
0
votes
1answer
265 views

How to re-save web.config using command prompt

I'm using a simple cmd batch file to deploy my Asp.net MVC web application to server network share. The problem I'm having is that my DLLs can't be simply replaced by new files since existing ones ...
-1
votes
1answer
538 views

Copying a set of local files to ftp

I want to copy a set of local files to ftp://124.30.124.230 (it will ask for a username and password). I want to do this work on 400 systems so I have planned to do this work by creating a batch file ...
3
votes
0answers
791 views

DSGET escapes hash signs (#) in outputted Distinguished Names (DN)s but expects unescaped hash signs for input

Lets say I want to do the very simple query in AD dsquery user -name "John Smith" | dsget user -memberof -expand This will output the DNs of the AD groups that this user belongs to. I can make it ...
2
votes
0answers
94 views

DNS Boot Method throuth dnscmd

Through the command line on Windows Server 2008 R2, dnscmd SERVER /Config BootMethod … the source from which the DNS server gets its configuration information (is determined) [→ ...
2
votes
0answers
273 views

Access Denied error when running xcopy in jenkins on windows 2008 r2

I have installed Jenkins on a Windows Server 2008 R2 and in the build script i use xcopy to copy the generated war file to a specific folder The problem I am having is that every so often the build ...
1
vote
0answers
23 views

SED returning error 2 when launched by Wpkg

Case I am deploying a software product using Wpkg over Windows workstations. I need to disable product's faulty automatic update and the best solution in this case is to modify one configuration file ...
1
vote
0answers
189 views

Trying to run a netsh batch with foreign characters

I am trying to run a batch file with the following content: netsh interface ip>set dns "Połączenie lokalne" source=dhcp The file is saved as ANSI. My Windows codepage is 1250, the OEM one 852. ...
0
votes
0answers
22 views

When changing the Win display lang, will builtin CLI tools params / stdout|stderr messages also change?

I need to write a CMD script (other shells are not allowed / available) that will execute on multiple servers with different display languages. When looking at an Windows built in tool, such as ...
0
votes
0answers
73 views

Windows 7 CMD tracert gives totally different final IP to online traceroute

So, i'm pretty damn rusty with this stuff, and been up all night for client emergency, so excuse me if i'm typing gibberish and didn't find related search results./ I'm suddenly taking over a clients ...
0
votes
0answers
17 views

understanding dnscmd /statistics values

On Windows Server 2008 (R2, 32-Bit) I have some problems in understanding the output of the following dnscmd \\SERVER /Statistics StatIDs: 00010000 → Memory: RAM? HDD? On my test server here I ...
0
votes
0answers
24 views

(de)activate “Fail on Load if Bad Zone Data” through Command Line

One can (de)activate "Fail on Load if Bad Zone Data" Option in Windows Server 2008 (R2) through → DNS-Server → Properties → Advanced → (un)check this option. Question: Is ...
0
votes
0answers
27 views

fsutil does not give me any output

I have an exchange 2007 server (win2003) over a vmware cluster. I want see the blocksize of some disks. But looks that fsutil does not work properly because it does not give me any output. ...
0
votes
0answers
130 views

Print documents to PDF files via command line in Wine

I have a task to use Wine on Linux distributive for work with MS Office files doc[x] / xls[x] / ppt[x] and pdf via virtual printer. Output formats I need are png or jpg. This is for converter of ...
0
votes
0answers
43 views

Is it possible to reconnect to a remote cmd.exe shell?

I am using freesshd.com to run an ssh server on my machine. I need to be able to execute .bat files in their normal environemt so I am using the cmd.exe shell, the only shell I know of that can ...
0
votes
0answers
75 views

Batch script terminates too soon

I need some help with Windows batch/CMD scripting. I wrote a script to record mic-in to a MP3 for 12 hours. It runs ok when running it manually. It will run with task scheduler too - just that, ...