Re: ADmin reset

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Adrian Marsh (NNTP) (me_at_nowhere.com)
Date: 08/23/04


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.
>>



Relevant Pages

  • Re: window object
    ... Within a script, every reference to an object amounts to two ... calls from the scripting engine to the DHTML Object Model. ... var sText = document.all.div1.innerText; ...
    (comp.lang.javascript)
  • Re: Decoupling javascript from UserControls
    ... still be able to reference the server-generated IDs. ... your server-side code emit a simple bit ofJavaScriptthat merely writes out ... (where JavaScriptSection is a Literal, ... generation in the markup and set vars as you mentionend in the Render ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IsValid(Object)
    ... > I have a complex problem involving a linked list, a scripted for-loop, a ... > reference to an object instance, ... > script commands that can arbitrarily modify the database. ...
    (borland.public.delphi.language.objectpascal)
  • Re: How to catch error message instead of printing to stderr for rmtree
    ... script and CPAN's documentation. ... it still print the error message to stderr. ... to hold a reference to a variable, which will be used to store the ...
    (perl.beginners)
  • Re: What does this script means?
    ... write it in the global part of the script, ... it is perfectly valid to use a function reference as the operand ... Array in the original code). ...
    (comp.lang.javascript)