Re: Disabling local user accounts on remote servers



You could use a Group Policy startup script and then use the net user
command to disable the account but that would require that every server be
restarted. There is a fee utility from SysInternals called PsPasswd that
would allow you to write a batch file to change the password on each server
assuming the server is available to you via file and print sharing
connectivity. You can use the command with a text file containing the fully
qualified name of each server. You could also do something similar with
PsExec where you use the command net user username to disable the user
account as in net user steve /active:no. If the user account only exists on
the servers or you don't care about other computers you could even use the
wildcard option. I have not used either with a list myself so I don't know
offhand if you get a confirmation message or error message if a computer in
the list can not be contacted but you could test that out. You may also want
to post in a Windows scripting newsgroup. --- Steve

http://www.sysinternals.com/Utilities/PsPasswd.html -- PsPasswd
http://www.sysinternals.com/Utilities/PsExec.html --- PsExec

"James" <James@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:556311F8-0A49-41C0-BA3C-54FF93932669@xxxxxxxxxxxxxxxx
I have a local user account that is a member of the local admins group on
over 100 hundred servers. I would like to disable this local account from
a
central location (my pc) instead of logging into each server and manually
disabling. I am a domain admin.

I would also prefer not to do this by using computer management and
connecting to the servers I want to disable the account on.

If I cannot do this i'd like to at least be able to change the password of
this local user account from my pc instead of logging into each server.
Can
this be done with a script or batch file. If so can anyone provide some
sample code as I am not very familiar with writing scripts?


.



Relevant Pages

  • Re: Administrator account hijacked?
    ... Disabling NDR on Exchange 2003 ... Non-delivery reports have a very legitimate purpose and are used to ... global white lists defined by mail server administrators. ... have been sent from the Administrator account in the past two ...
    (microsoft.public.windows.server.sbs)
  • Re: Unable to send photos
    ... You may need to remove your mail account and then add it back again after disabling the antivirus software. ... a 800kb file and still get the same error message. ... > Your server has unexpectedly terminated the connection. ...
    (microsoft.public.windows.vista.mail)
  • Re: Outlook Express-password problem-automatic updates
    ... 0x800CCC92 POP3_INVALID_PASSWORD Password not valid for account. ... Try disabling email scanning by your anti-virus application. ... > There was a problem logging onto your mail server. ...
    (microsoft.public.windowsxp.general)
  • Re: OE6 or other problem?
    ... Try disabling those options and see if the problem goes away. ... OE6, via a dial up account, with an external mail server. ... Coding re html / images etc all on. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: XP user cannot logon to SBS2003 (applying personel settings)
    ... are you saying that you have tried disabling the account? ... check the event logs of both the server and workstation to see ... User cannot logon to any other PC either, ...
    (microsoft.public.windows.server.sbs)