38. Applying Scripts using Group Policy

 Applying Scripts using Group Policy

A computer running windows 2012 server Domain Controller.

A member server running windows server 2012 or Client running windows 7.

SYS1                                                                         SYS2

Domain Controller                                                 Member Server / Client

IP Address            10.0.0.1                                     IP Address            10.0.0.2

Subnet Mask         255.0.0.0                                  Subnet Mask         255.0.0.0

Preferred DNS      10.0.0.1                                     Preferred DNS    10.0.0.1

Steps:

1. Logon to D.C, Create a Shared Folder User Scripts with Everyone as read/Write.
2. Go to Start, type Notepad in Search Apps, and select Notepad.
3. Enter the text wscript.echo "Welcome to Microsoft"

4. Save the file in the Shared folder User Scripts as Logon.vbe
5. Go to Group Policy Management -> Right click OU (Sales1) -> Create a GPO in this domain and Link it here and enter the name Script, click Ok, Select the Gpo Right Click and select Edit.

6. Expand User Configuration -> Expand Policies -> Windows Settings -> Scripts -> Logon -> Properties.
7. Click Add.
8. Enter the UNC path for the Script in the shared folder \\conn-01\Userscripts\logon.vbe and click OK -> Apply and OK.
Verification:
1. Go to Member Server and login as USER1 and verify for the message.

Comments

Popular posts from this blog

41. Configuring Preferences using Item-level targeting

V-Center , cluster, DRS, HA, vMotion

Windows Services