Good tip!
"for some strange reason" - you need to copy the script file into the relevant GP folder inside sysvol so it gets replicated round all DCs. This avoids issues such as specifying a local path for it originally, or having it in a share which is potentially not open to all users.
One way to avoid having to worry about this so much is just to set a startup script (called "startup.cmd, for example) which you put in sysvol and this just calls another script from any share you like
\\YourDomain\netlogon is a very good option which uses the built-in DFS sharename, so it will always get pulled from a DC on the same site.
Then you do all the real work in this script instead. You can still pass parameters through by including %1 %2 %3...%9 in the line of startup.cmd which calls the other script. This will pass the first nine parameters straight on (and not care if fewer than nine or even zero are actually defined).


LinkBack URL
About LinkBacks
Reply With Quote