2
votes
1answer
995 views

Force “net user” command to set password longer than 14 characters

I'm issuing some "net user" commands to setup a local user on my desktop for some testing purposes and require setting a password longer than 14 characters. In doing so Windows barks back a propmt to ...
0
votes
2answers
164 views

Tool to execute shell script

I have a requirement to execute multiple shell scripts on the Linux severs regularly. Is there any tool in windows that connect to a Linux server and execute the given script with given user and shows ...
2
votes
4answers
426 views

Recursively delete directory except for some files in Windows

In Windows, I need to recursively delete a directory except for a short list of files to be kept. The files may be nested in subdirectories. I tried making the files read-only before running "rmdir ...
0
votes
1answer
3k views

How do I download all the files in a directory with cURL?

I am using cURL to try to download all files in a certain directory. Here's what my list of files looks like: I have tried to do in bash script: iiumlabs.[].csv.pgp and iiumlabs* and I guess cURL ...
1
vote
1answer
75 views

Cygwin shell is overriding my Windows shell

I'm not sure what I did, but I've somehow got Cygwin installed in such a way that even when I try to run an ordinary windows shell, Cygwin is interfering. I have batch scripts that I want to run in ...
5
votes
2answers
746 views

Is there a Windows CMD equivalent of Unix shell's exec?

Is there any equivalent in Windows to Unix Shell's "exec"? Basically, I need to avoid forking a new process, so that input/output pipes are preserved, as well as process id. Edit: So, here's my ...
1
vote
0answers
867 views

Windows GPO “Allow Remote Shell Access”, where to set 'False' once you enable it?

OS : Windows 7 64 bit Under Local Group Policy Editor > Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > Windows Remote Shell > there is a policy ...
0
votes
1answer
153 views

Writing to a txt file by xp_cmdshell

I m trying to write query result to txt file. Here is my code: exec master..xp_cmdshell 'bcp "select * from Leasings" queryout "DHCPLog.txt" -c -t,-T MyServerIP' But the result is : And there ...
0
votes
2answers
375 views

Memory leak in Windows Page file when calling a shell command

I have an issue on our Windows 2003 x64 Build Server when invoking shell commands from a script. Each call causes a "memory leak" in the page file so it grows quite rapidly until it reaches the ...
0
votes
3answers
628 views

How to abort robocopy on first error

When using robocopy windows utility, what flags do I set so that robocopy aborts on the very first error it sees, similar to xcopy /dry command? I need to mirror two dirs, and on occasion some files ...
2
votes
7answers
8k views

How can I prevent explorer starting as a shell in a kiosk setting?

I'm using an alternative shell (a simple program that restarts a kiosk application if it dies) for a project I'm working on. I've set it via the Shell value in the registry, and I'm not using ...
5
votes
11answers
2k views

A decent command-line shell for Windows

Surely someone has written a decent shell for Windows. I'm looking for a) something more or less like the ordinary linux shell (ie. history, completion etc.) b) something which is a simple install ...