Running startup script invisible

G

Guest

I've assigned a startup script via the local GPO and it runs fine. The
problem is that instead of running in the background before the logon screen
appears, the command window pops up after the logon screen appears and
displays the commands in the batch file.

If the "Run startup scripts visible" setting is disabled or not configured,
shouldn't the script run minimized before the logon window appears? It
doesn't seem to have any effect.

Here's the script:

rem Remove user profile directory
rem Copy new user profile
rem Set permissions on the new profile

rd /S /Q "F:\Documents and Settings\test1"
xcopy "F:\profiles\test1" "F:\Documents and Settings\test1" /E /C /I /H /K
/O /Y
cacls "F:\Documents and Settings\test1" /T /E /C /G test1:F

Any reason why it always runs visibly?
 
G

Guest

crh:

I got 2 PC's running a "startup" script, one ones "minimize" on the task bar
on startup, and the other one would not.

- I since got some freeware that minimizes it when the "batch file" opens,
in the first line of the batch file, but the DOS box jumps on the screen for
a second, and closes, very annoying.

- I looked into Batch file compilers, but I would love to get a review
before I spend some bucks on it.

- The third option is setting up a "user" just to run batch files under "run
as", so it's running would not be visible to the user. So far, I haven't
tried to see how well this works, but it's on the "to do" list.
 

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