jscns
asked on
Windows 7 User Logon and Logoff Scripts
I added login and logoff scripts under the Local Group Policy Editor, User Configuration, Windows Settings, Scripts. The scripts reside in the root of the C drive. The scripts dont seem to be working. When I click on "To view the Script Files stores in this Group Policy Object", nothing appears.
This is a normal script, no a Powershell script.
I googled something about having to activate the Powershell Script feature. Do I also need to activate the normal script feature? Thanks!
This is a normal script, no a Powershell script.
I googled something about having to activate the Powershell Script feature. Do I also need to activate the normal script feature? Thanks!
Put the scripts in your System32 folder and see how that works for you (or add the root of C to your system path locations). I presume that in order to execute and call/see those scripts, it's looking in any of the pre-defined path locations (of which System32 is in by default).
If you are using Group Policy, put the scripts in the folder
\\domain.com\sysvol\domain .com\scrip ts
or simply
\\yourdc\netlogon
Then just put the filename only in the script box to run.
Rob.
\\domain.com\sysvol\domain
or simply
\\yourdc\netlogon
Then just put the filename only in the script box to run.
Rob.
ASKER
Can sometime please answer my question and tell me if I need to do anything to active the script feature in Windows 7?
No, for VBS scripts, (and even Powershell for Windows 7), there's nothing you need to do, besides point the Group Policy to the correct script location. Usually, for Active Directory, scripts go into the Netlogon share of your Domain Controllers, and then in the Scripts dialog box where you enter the script, you just need to put its name, and not the path.
Regards,
Rob.
Regards,
Rob.
ASKER
I am running Windows 7 Professional. Can you provide me with directions on how to "point the Group Policy to the correct script location'" ? I have attached the directions for setting up the script. Please see page 4, step11 ...this is what I am trying to set up. I dont know what Active Directory, Domain Controller, and Netlogin is......and I really dont need to ...just want to verify the script is working....I am unable to the dual screen feature to work.
Multi-Monitor-Setup-Guide--V4--2.pdf
Multi-Monitor-Setup-Guide--V4--2.pdf
OK, my apologies. I thought you were using Active Directory Group Policy, not local group policy.
Your scripts for logon should be copied to
C:\WINDOWS\System32\GroupP olicy\User \Scripts\L ogon
and for logoff they should go to
C:\WINDOWS\System32\GroupP olicy\User \Scripts\L ogoff
Then, when you click Show Files in the dialog, it will be displayed. Then you can just put the script name, not the path, and it should run fine.
Regards,
Rob.
Your scripts for logon should be copied to
C:\WINDOWS\System32\GroupP
and for logoff they should go to
C:\WINDOWS\System32\GroupP
Then, when you click Show Files in the dialog, it will be displayed. Then you can just put the script name, not the path, and it should run fine.
Regards,
Rob.
ASKER
I will do that. However, I am wondering why the attached instructions tell me to put the script in the root of the C drive? Any thoughts?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you!!