Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
windows:ad:upd_cmp_desc [2017/08/18 15:29]
tplecko created
windows:ad:upd_cmp_desc [2017/08/18 15:51]
Line 14: Line 14:
 Create a VBS file containing the following code Create a VBS file containing the following code
-<​code>​+<​code ​logon.vbs>
 Set WshNetwork = WScript.CreateObject("​WScript.Network"​) Set WshNetwork = WScript.CreateObject("​WScript.Network"​)
 Set objWMI = GetObject("​winmgmts:​{impersonationLevel=impersonate}!\\.\root\cimv2"​) Set objWMI = GetObject("​winmgmts:​{impersonationLevel=impersonate}!\\.\root\cimv2"​)
Line 47: Line 47:
 </​code>​ </​code>​
 +  - Open **Group Policy Management** console
 +  - Right click **Group Policy Objects** and select **New**
 +  - Enter GPO name and click **OK**
 +  - Edit the newly created GPO
 +  - Navigate to **User Configuration -> Policies -> Windows Settings -> Scripts (Logon/​Logoff)**
 +  - Doubleclick the **Logon** item and click **Add**
 +  - Browse to the newly created script and click **OK**, and then again click **OK** and close the **Group Policy Management Editor**
 +  - Link the GPO to the containers with user objects in it (note that this applies to all sub containers)
 +Next time the computers refresh their GPO, the logon script should run and every computer object should have the description like:
 +<​code>​Last_name First_name (samaccountname) - vendor model (serial number)</​code>​
 +Computers with description starting with **_** will not have their description changed
windows/ad/upd_cmp_desc.txt · Last modified: 2020/02/06 12:59 by tplecko