→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Hobbs13
Engaged Sweeper II
I wrote the following script and replaced the default one (unlock.vbs)

If WScript.Arguments.Count = 1 Then
struser= WScript.Arguments(0)
Set objUser = GetObject("LDAP://" & struser)
end if
if objUser.IsAccountLocked = TRUE then
objUser.IsAccountLocked = FALSE
objUser.SetInfo
MsgBox objUser.Name & ": This account was locked. UNLOCK SUCCESSFUL!"
else
MsgBox objUser.Name & ": This account was not locked out"
end if

This script will check the account in AD and unlock it.
It will popup a notifier box to alert you if the account was previous locked with the response "This account was locked. UNLOCK SUCCESSFUL!" If the account was not unlocked it responds with "This account was not locked out"


Is there any way for Lansweeper to detect if the account is locked out when you bring up the User details page? I would love to see a RED X Next to the username showing the helpdesk that the account is locked out.
2 REPLIES 2
UEFT
Engaged Sweeper II
Hi there, has there been any movement on this request? This was added to the wish list in 2012.
Hemoco
Lansweeper Alumni
Hobbs13 wrote:
Is there any way for Lansweeper to detect if the account is locked out when you bring up the User details page? I would love to see a RED X Next to the username showing the helpdesk that the account is locked out.

This is not currently possible. We will add this feature to our customer wish list.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now