Re: Disabling local user accounts on remote servers
- From: "Steven L Umbach" <n9rou@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 18:16:33 -0500
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?
.
- Prev by Date: Re: how to secure VPN to a SQL server?
- Next by Date: Re: how to secure VPN to a SQL server?
- Previous by thread: Re: Local System Account & Network Access
- Next by thread: Re: Disabling local user accounts on remote servers
- Index(es):
Relevant Pages
|