Link to home
Start Free TrialLog in
Avatar of Rohail2004
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
Avatar of coolfiger
coolfiger
Flag of Trinidad and Tobago image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Kent Dyer
Kent Dyer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Wanted to follow-up on this as thee maybe another solution that can be pursued..
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..

rem for /f "tokens=3" %%a in ('qwinsta %username% /server:myservername ^| find /i "%username%"') do rwinsta %%a /server:myservername
rem http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_25522965.html
rem "rwinsta bat file to clear citrix sessions"
rem http://www.robvanderwoude.com/ntadmincommands.php
rem "List all computers in the network"
FOR /F "tokens=2 delims=	" %%A IN ('type servers.txt') DO (
FOR /F "tokens=2" %%a IN ('qwinsta %username% /server:%%A ^| find /i "%username%"') DO rwinsta %%a /server:%%A
)
PAUSE

Open in new window


servers.txt is simply and the code will pickup the IPs:
COMPUTERNAME1	1.1.1.1
COMPUTERNAME2	2.2.2.2

Open in new window


Here is another way using NET VIEW..
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:%%B
)
PAUSE

Open in new window


HTH,

Kent
Looks like there is an error in my last posting..

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

Open in new window


Thanks,

Kent