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.
Windows Server 2008Microsoft ApplicationsMicrosoft Server Apps

Avatar of undefined
Last Comment
Kent Dyer

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
coolfiger

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Kent Dyer

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Kent Dyer

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
Kent Dyer

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
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck