
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2015 08:39 AM
Hey ,
I was tring to made action to change computer name using VBS :
Set WshNetwork = WScript.CreateObject("WScript.Network")
strComputer = Wscript.Arguments.Item(0)
strName = Inputbox("Enter Computer Name:")
Set objWMIService = GetObject("winmgmts:\\" & strComputer).InstancesOf("Win32_ComputerSystem")
For Each x In objWMIService
x.rename(strName)
Next
WScript.Quit
put still not working with me , any help ?
I was tring to made action to change computer name using VBS :
Set WshNetwork = WScript.CreateObject("WScript.Network")
strComputer = Wscript.Arguments.Item(0)
strName = Inputbox("Enter Computer Name:")
Set objWMIService = GetObject("winmgmts:\\" & strComputer).InstancesOf("Win32_ComputerSystem")
For Each x In objWMIService
x.rename(strName)
Next
WScript.Quit
put still not working with me , any help ?
Solved! Go to Solution.
Labels:
- Labels:
-
Custom Actions
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2015 07:36 PM
netdom RENAMECOMPUTER wrongname /newname:rightname /userd:admin /passwordd:* /force
pause
I use this as a batchfile.....works well....you have to enter the password when you run it and it requires a reboot of the machine...
pause
I use this as a batchfile.....works well....you have to enter the password when you run it and it requires a reboot of the machine...
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 10:09 PM
Hi
This tool support renaming computer with scripts.
https://www.forensit.com/downloads.html
R. Einar.
This tool support renaming computer with scripts.
https://www.forensit.com/downloads.html
R. Einar.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2016 07:12 PM
What if i wanted it to default to the user who is logged in userid?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2015 07:36 PM
netdom RENAMECOMPUTER wrongname /newname:rightname /userd:admin /passwordd:* /force
pause
I use this as a batchfile.....works well....you have to enter the password when you run it and it requires a reboot of the machine...
pause
I use this as a batchfile.....works well....you have to enter the password when you run it and it requires a reboot of the machine...
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2015 09:59 AM
Question received and answered via email. Posting our reply here as well.
Hi,
unfortunately we can't offer support for writing custom action scripts.
If default actions like "Open C$" don't work, could you send us a screenshot of the error message on your screen.
Note: Actions are being executed on your Lansweeper server. In order to execute a script on a target machine, you need to create a deployment package and deploy it to the target computer.
