i am trying to write a simple VBscript file to change the computer name.
i have machines that have been 'ghosted' and want to change the computer name afterwards.
i do not have VB Developer software but i was told it is possible to write it in a text script and call it .vbs and it would run?
i have tried normal functions but they dont work..
script:...
Private Declare Function SetComputerName Lib "kernel32" Alias "SetComputerNameA" (ByVal lpComputerName As String) As Long
SetComputerName "Karthik"
End
can anyone help?
i have machines that have been 'ghosted' and want to change the computer name afterwards.
i do not have VB Developer software but i was told it is possible to write it in a text script and call it .vbs and it would run?
i have tried normal functions but they dont work..
script:...
Private Declare Function SetComputerName Lib "kernel32" Alias "SetComputerNameA" (ByVal lpComputerName As String) As Long
SetComputerName "Karthik"
End
can anyone help?