Re: Resetting Machine's Local Password
From: JP Martinez (pierre_at_perutek.com)
Date: 09/07/04
- Next message: Kevin: "Re: Trying to execute a dos command"
- Previous message: Malcolm K Smith: "Re: fso and writeline"
- In reply to: Ross Presser: "Re: Resetting Machine's Local Password"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Resetting Machine's Local Password"
- Reply: Torgeir Bakken \(MVP\): "Re: Resetting Machine's Local Password"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 7 Sep 2004 08:52:14 -0400
Thanks - it worked fine and I happened to be logged in with the very same
account I was resetting the password on - nothing seem to happened as far as
getting kicked out - then again my Windows Server 2003 policies are not very
restrictive -.
One question though shouldn't it be the other way around for error code
processing - if exit code =o then good otherwise show as failed?
I mention this beause when I resetted the password it said it failed -but to
my surpirse it had actually reset the password.
One more thing how would you go about restting the administrator/password on
standalone file server, so I guess the same logic would apply but what about
if you wanted to do two machines or more - with totally different admin
names and passwords
thanks
-Pierre
If err.number = 0 Then
WScript.Echo "Password Change Failed"
Else
WScript.Echo "Password Change Was Successful"
End
"Ross Presser" <rpresser@NOSPAM.imtek.com.invalid> wrote in message
news:Xns955B97F96EC39pt101594@129.250.170.93...
> Wayne Tilton <Wayne_Tilton@NoSpam.Yahoo.com> wrote in
> news:Xns9559894E2AB54NWDCLMIT@207.46.248.16:
>
> > "JP Martinez" <pierre@perutek.com> wrote in
> > news:OKAaGQekEHA.2588@TK2MSFTNGP12.phx.gbl:
> >
> >> Hi, I would like to be able to reset the administrator password in
> >> workstations and file servers. Is there a way or could someone point
> [snip]
> > How 'bout something like this:
> >
> [snip]
>
> Question: what happens if Administrator happens to be logged in when this
> script is executed? Will his session become invalid?
>
> What if instead of a local administrator account, this was used against a
> domain user account and the user was logged in at the time?
- Next message: Kevin: "Re: Trying to execute a dos command"
- Previous message: Malcolm K Smith: "Re: fso and writeline"
- In reply to: Ross Presser: "Re: Resetting Machine's Local Password"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Resetting Machine's Local Password"
- Reply: Torgeir Bakken \(MVP\): "Re: Resetting Machine's Local Password"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|