Command file hidden

T

Tim Brown

I would like to run a command file (.cmd) from a GPO without the DOS window
opening on the users desktop. I have tried the Start command with the /MIN
switch, the properties of the DOS box (only have option for Window or Full
Screen) and properties of the .cmd file but there are no options to use.

Any ideas?
 
S

Steven Liu

Hi Tim,

There has no way to do this.

When you run a cmd file, it will open the DOS window. It's by design.

The workaround is you can run the batch file as the service.

243486 How to Run a Batch File Before Logging on to Your Computer
http://support.microsoft.com/?id=243486

You may need to install the AutoExNT Service first as described in the
above article.

Thanks for using Microsoft News Group!

Sincerely,

Steven Liu

Microsoft Online Partner Support

MCSE 2000

Get Secure! - www.microsoft.com/security

This posting is provided "as is" with no warranties and confers no rights.
 
M

Mike Kolitz

In addition to Steven's comments, you may want to look at rewriting your CMD
file as a VBScript or JScript. Those can be used as
startup/shutdown/logon/logoff scripts as well, and don't, by default, open a
command window.

--
Mike Kolitz MCSE 2000
MS-MVP - Windows Setup and Deployment

Remember to check Windows Update often,
and apply the patches marked as Critical!
http://windowsupdate.microsoft.com
 
C

Charles Prooth

I accomplish what you are trying to do by creating a
shortcut to a .bat file. Then, I change the properties of
the shortcut to "run minimized". Then, I execute the
shortcut.

I hope that I am "barking up the right tree" and that my
response addresses your problem.

~Charles.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top