Answer the question
In order to leave comments, you need to log in
How to make a script run on login?
Hello!
I ran into this problem and I can't figure out how to solve it.
The task is this, you need to run the script on specific computers when you log in (under any user)
Computers are located in different units.
As I thought it would work, but does not work:
I created the desired policy, in " Computer Configuration - Policies - Administrative Templates - System - Logon - Run these programs at logon " added the script \\dc\NETLOGON\wWWHomePage. vbs
The task of the script will run under the user, and enter the name of the computer on which the user is logged into the wWWHomePage attribute.
To prevent the script from being executed on some computers, a security group was added in the security section of the policy, with a ban on reading and executing the policy. Computers that do not need to run this policy have been added to this group.
And all this does not work. The policy is applied, but the script does not run on login.
I changed everything to "User Configuration" (it works), but in this case, I will not be able to regulate the application of the policy on the necessary computers. Because the policy will be launched already on behalf of the user.
Please tell me how to solve my problem. Thank you for your attention :-)
Answer the question
In order to leave comments, you need to log in
Loopback processing mode will help you:
1. Create an OU
2. Move the server OU on which the script will be applied to this OU
3. Create a GPO with the script running (User Configuration/Windows Settings/Scripts/Logon)
4. Enable User Group Policy Loopback processing mode
Everything is available here: gamelton.com/2011/06/27/gpo-loopback The
last comment banged, because that solution is not quite suitable, this option should fully satisfy your needs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question