There are valid reasons for the question. For example, if you wanted your users logon script to always reflect any changes you made at a central file store on your Domain server, the logical place would be to precede the logon script with either an additional script in the Startup or perhaps the Shudown optional scripting locations.
Now my concern -- you do not have the security tokens during a Startup or Shutdown procedure to access your Domain server.
Second issue. If this is a Domain, enabling logon scripts is a Group Policy object that could easily be set for all users. If a Workgroup, the process is decidedly more complicated.
In general, the solution would be to have a generic logon scripting:
. layer one -- identical logon scripts, that essentially call:
. layer two -- a script to copy over the existing %userprofile% logon script; and then would call:
. layer three -- what will be the finally executed logon script. Because scripting wait states and recursion are a little tedious in WSH scripting, I would use .CMD files with the START /xxxx paramter settings to handle all three layers.
You are making this out to be more complicated than it is. I know what you are saying, basically, I'm just being lazy and don't want to install a particular script into a 100 computers, because of the level of permissions that we got set in the computers, it would take me a long time to do.
This particular script might change once a year, if that!
All I wanted was the code to write a script that would set a group policy, independent of the domain and server side scripts, that would copy a bat file into the specified folder for the pc to run the bat file every time an user logs into the machine.
This is a dead issue as I already did it the long way.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.