Link to home
Start Free TrialLog in
Avatar of smmsmm57
smmsmm57

asked on

CMD File in C:\Documents and Settings\All Users\Start Menu\Programs\Startup make not visible

Windows cmd file located in C:\Documents and Settings\All Users\Start Menu\Programs\Startup\ folder. I would like its window to not be visible when the user logs onto the machine. Currently the cmd file executes fine each time a user signs on to the machine but a DOS cmd window appears, I'd prefer that it ran without the window becoming visible.....
Avatar of and235100
and235100
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER CERTIFIED SOLUTION
Avatar of Shift-3
Shift-3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@Shift-3
Not much point using the local user policy on a single station, though? And there is no indication that the Asker is using a domain...
No point other than achieving the effect requested by smmsmm57.

Was there something in your link that would prevent the cmd window from appearing?  It looked like a whole lot of irrelevant information to me.
Avatar of smmsmm57
smmsmm57

ASKER

OK...I placed a known working cmd file in the directory:

C:\WINDOWS\system32\GroupPolicy\Machine\Scripts\Startup

I event went so far as to manually run it from within that directory from within a cmd window.....it ran fine...

But when I shutdown and restart the OS and then signon, it seemed not to run because the files it creates did not get created.... Am I missing something? I would have thought the simple placing of this file
in the above directory would cause it to execute? I am first to admin about having virtually no knowledge of "Group Policy" stuff.


What is GPO in "through a GPO?" thanks
@ Shift-3 - it probably was... but I thought it could be useful.

@ summsmm57

No, as far as I am aware - you would have to use gpedit to configure it as a logon script:

User Configuration\Windows Settings\Scripts (Logon/Logoff)
smmsmm57, you have to run gpedit.msc, browse to the node mentioned in my first reply, and create an entry for the script there.  Simply placing it in the folder is not enough.

GPO stands for Group Policy Object, but they can only be used if you have an Active Directory domain set up.
I believe I have done what you stated, namely use gpedit.msc and "place an entry" for the cmd file there..... It is possible that the network admins of the domain in which "my machines" exist has placed some sort of "local machines are not allowed to run group policy startup scripts" prohibition on the machine? I am abke to manually execute the file from that directory and it works fine, creating directories and folders etc.....

Is there any log of the activity started by these "entries" anywhere such that I might be able to veirify it works and bombed out? I am assuming at this point it does not even get invoked???

I will just award the points now because you told me what I was looking for...I have a "call" into my network admins to see if they in fact prevent me from running such things...thanks !