Get the computer name in visual basic script
From: noxize (noxize_at_discussions.microsoft.com)
Date: 09/23/04
- Next message: Ambos: "Script for GPO Null Attribute in User AD Account"
- Previous message: andysmeg: "Losing IE proxy settings"
- Next in thread: Brendon: "Re: Get the computer name in visual basic script"
- Reply: Brendon: "Re: Get the computer name in visual basic script"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Sep 2004 09:05:06 -0700
Hi,
I need to change the Local Administrator password on my domain's computers.
I use Windows Server 2003 as a DC and I saw that there is no way to do that
through a GPO. Then I saw the following script on Ms TechNet :
"Changing the Local Administrator Password"
strComputer = "MyComputer"
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
objUser.SetPassword "testpassword"
objUser.SetInfo
I tried it on my own computer and It worked perfectly. Now I'd like to
deploy it through an "Opening Session Script" and a GPO. But I need to get
the system variable "ComputerName" in my VB Script. How could I get this
variable and apply it to this script ?
I am not a VB developper, help would be much appreciated.
Thanks in advance.
- Next message: Ambos: "Script for GPO Null Attribute in User AD Account"
- Previous message: andysmeg: "Losing IE proxy settings"
- Next in thread: Brendon: "Re: Get the computer name in visual basic script"
- Reply: Brendon: "Re: Get the computer name in visual basic script"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|