Click to See Complete Forum and Search --> : how to delete local user from remote hosts?


ToM2
05-06-2002, 10:03 AM
Is anyone have this kind script?
I have one user account (exmpl. john)installed to several computers and I must delete it.

thnks.

Scott
05-06-2002, 02:30 PM
Create a for loop on the selected machines and you can use Addusers (RK).

for /f %%W in (c:Workstations.txt) do addusers \%%W /e C:userlist.txt

The workstations.txt file only has the machines names (no \) and the userlist.txt file has to use the following format.

[USERS]
johnj
janeb
wilsont





------------
ToM2 at 5/6/2002 11:03:59 AM

Is anyone have this kind script?
I have one user account (exmpl. john)installed to several computers and I must delete it.

thnks.

ToM2
05-07-2002, 05:37 AM
Thanks Scott, that works.
ToM2


------------
Scott at 5/6/2002 3:30:36 PM

Create a for loop on the selected machines and you can use Addusers (RK).

for /f %%W in (c:Workstations.txt) do addusers \%%W /e C:userlist.txt

The workstations.txt file only has the machines names (no \) and the userlist.txt file has to use the following format.

[USERS]
johnj
janeb
wilsont





------------
ToM2 at 5/6/2002 11:03:59 AM

Is anyone have this kind script?
I have one user account (exmpl. john)installed to several computers and I must delete it.

thnks.