Changing Computer description via K1000
Answers (1)
We have two scripts that run to do this. One access the Active Directory PC and replaces the PC Description with the Description on the AD Object. For those PCs we have that are not Joined. We have a script that does this. We have to be sure to assign the script to ONLY the PC we want to change and update the script inside it as well each time. The script we created runs Launch a Program on task 1.
Directory is: %WINDIR%\System32
File: cmd.exe
Both Wait for completion and visible are unchecked.
parameters: /C net config server /srvcomment:"NEW PC DESCRIPTION"
This script runs as Local System. Also, note that the PC in KACE will not update until you preform and Inventory after the Script has run.
For the AD Matching script, we use an AD Service Account we created with rights to AD to pull this information.
We zipped the script into a file and attached it to the script and Task 1 calls for it to unzip the script to a local folder (ie. C:\TempScripts)
then for the second part of the task, we Launch a Program.
Directory: %WINDIR%\System32
File: cscript.exe
Leave both boxes unchecked
Parameters: C:\TempScripts\MatchPCDescToADDesc.vbs
If you wish for a copy of the script. let me know and I can post it or email a text file to you with it. You will need to change it to match your areas parameters/settings though.
When we set ours up, we made multiple changes with a script but it was mostly to create consistency with our remote app integration. We wrote a Q&A Script that we used with our remote access software which could access the command prompt and walked through the variables we needed.
You could use the below to set the description from the appliance without having to login as an admin on each PC. But again, you will have to do this for each computer and that will be tedious.
net config server /srvcomment:"%computerdesc%" - mdetrick 7 years ago