Re: ADmin reset
From: Adrian Marsh (NNTP) (me_at_nowhere.com)
Date: 08/23/04
- Next message: TDM: "Re: Please confirm: No future for Scripting of IE?"
- Previous message: Alex K. Angelopoulos [MVP]: "Re: Please confirm: No future for Scripting of IE?"
- In reply to: Chad Manzer: "RE: ADmin reset"
- Next in thread: Jason McKinney: "Re: ADmin reset"
- Reply: Jason McKinney: "Re: ADmin reset"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Aug 2004 12:22:37 +0100 To: Chad Manzer <ChadManzer@discussions.microsoft.com>
Chad,
I did find this reference in Microsofts script center, I've put the
following in my script:
strComputer = "."
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
objUser.SetPassword "testpassword"
objUser.SetInfo
But it says theres an error 0x80005000 on line 2 char 1 (Set)
I've also tried putting the "." back to the local name of a test PC, but
get the same error.
Any idea?
Adrian
Chad Manzer wrote:
> you can do nice and quick by:
>
> strComputer = "MyComputer"
> Set objUser = GetObject("WinNT://" & strComputer & "/Administrator, user")
> objUser.SetPassword "testpassword"
> objUser.SetInfo
>
>
> "Adrian Marsh" wrote:
>
>
>>I know I've asked this question before, but does anyone have a .bat or
>>..vbs script that can show me how to reset the administrator password of
>>a client machine, as Logon runs? The end-user account will have admin
>>rights locally, so should be able to do it, but I just don't know of the
>>command to do it.
>>
>>A.
>>
- Next message: TDM: "Re: Please confirm: No future for Scripting of IE?"
- Previous message: Alex K. Angelopoulos [MVP]: "Re: Please confirm: No future for Scripting of IE?"
- In reply to: Chad Manzer: "RE: ADmin reset"
- Next in thread: Jason McKinney: "Re: ADmin reset"
- Reply: Jason McKinney: "Re: ADmin reset"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|