Re: Resetting Machine's Local Password

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: JP Martinez (pierre_at_perutek.com)
Date: 09/07/04


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?



Relevant Pages

  • Re: Win XP & Analysis Services
    ... You say "first give an administrator password to ur windows user ... JRK is a member of both of these & OLAP Administrators ... domain account in the credentials... ... Domain User account', I try entering in my JRK password (Username left ...
    (microsoft.public.sqlserver.olap)
  • Re: How to use UAC without domain admin account??
    ... Directory domain.with a domain user account as the main login user. ... Then I added the domain administrator account to the local ... the user needs administrative rights to begin with. ...
    (microsoft.public.windows.vista.security)
  • Re: security account login failed
    ... All user using their domain user account to connect the network, not the administrator account. ... "Wayne Anderson" wrote in message ...
    (microsoft.public.windows.server.security)
  • Re: Windows XP reset administrator password
    ... > account. ... Is there any way of resetting the password? ... you might try to reset the local Administrator ... Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Remote Desktop to Vista Client
    ... And the only user in the Local users and groups is the ComputerName\User account. ... right click on 'computer | Manage' and select 'Local Users and Groups'. ... I assume the id you are using is not an Administrator account otherwise you wouldn't have to do that. ... It was because it was using the local user account instead of the domain user account. ...
    (microsoft.public.windows.server.sbs)