
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2008 11:49 PM
cmd.exe cscript \\SERVER\SHARE\change_comp_desc.vbs {computer}
and here is the VBscript code:
Set WshNetwork = WScript.CreateObject("WScript.Network")
strComputer = Wscript.Arguments.Item(0)
strDescription = Inputbox("Enter Description:")
Set Obj= GetObject("winmgmts:\\" & strComputer).InstancesOf("Win32_OperatingSystem")
For Each x In Obj
x.Description = strDescription
x.Put_
Next
WScript.Quit
Pops up an input box for you to enter the computer description.
Please let me know if anyone sees anything that could be improved with this script or custom action.
thanks,
Eric
- Labels:
-
Custom Actions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2009 11:39 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2011 04:09 PM
ifm wrote:
I want to automatically set the local computer description to the same description as is used in the AD, is this possible?
Same here, anyone know how?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2009 01:20 PM
you can call:
srvmgr.exe \\{computer}
works with NT4, W2k, W2k3 ( Vista not checked )
loerdy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2008 04:04 PM
chgdesc.vbs
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set WshShell = CreateObject("wScript.Shell")
Dim objSWbemServices,colSWbemObjectSet,objSWbemObject
Set objSWbemServices = GetObject("winmgmts:\\.\root\cimv2")
Set colSWbemObjectSet = objSWbemServices.InstancesOf("Win32_OperatingSystem")
For Each objSWbemObject In colSWbemObjectSet
objSWbemObject.Description = WshNetwork.ComputerName
On Error Resume Next
objSWbemObject.Put_
Next

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2008 05:37 PM
The script is located on our netlogin share.
any ideas?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2008 09:41 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2008 12:52 AM
I have a problem, when I try to execute the script I am getting the following error:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '='.
Anyone have a clue as too what I am doing wrong?

Thanks...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2008 07:40 AM
Nifty tool, Could you be kind enough to make a script that changes the computer name ? 🙂
Changing computer name while the computer is currently part of a domain can cause some issues it is always recommended to remove the computer from the domain, rename, put computer back on domain.
If you where to implement this I would recommend using AdminAutoLogon and RunOnceEx

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2008 01:53 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2008 05:19 PM
with the CMD i can get it to pop up the command window...but it will never pop up with the msg box to let me input the description...any ideas?
