Rohail2004
asked on
account getting locked out
my account was expired. I changed the password to something new after the fact, but now my account is keep getting locked out with the errror msg saying "the referenced account is currently locked out and may not be logged on to". I checked some servers where I frequently login but unable to find any services running under my old password. How can I resolve this? what's the best way to find out where are the services running under my account? any help with this would be highly appreciated, thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Looks like there is an error in my last posting..
Thanks,
Kent
FOR /F "skip=3 delims=\ " %%A IN ('NET VIEW') DO (
FOR /F "tokens=2" %%a IN ('qwinsta %username% /server:%%A ^| find /i "%username%"') DO rwinsta %%a /server:%%A
)
PAUSE
Thanks,
Kent
With your account lockouts, you may want to use the following.. The caveat to this is that it may kick you out your locally logged in workstation..
As with batch scripting, the variables %%a and %%A are different..
Open in new window
servers.txt is simply and the code will pickup the IPs:
Open in new window
Here is another way using NET VIEW..
Open in new window
HTH,
Kent