cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ajayan111
Engaged Sweeper
Unlock user script which I was used in Lansweeper 4 version not working after I upgrade it to version 5.0.Please find below script and error that I receiving,

Script:
------------------------------------------------------
If WScript.Arguments.Count = 1 Then
struser= WScript.Arguments(0)
Set objUser = GetObject("LDAP://" & struser)
objUser.IsAccountLocked = False
objUser.SetInfo
end if
------------------------------------------------------

Error message:


---------------------------
Windows Script Host
---------------------------
Script: \\PCSHQ-IT-MON\lansweeper$\unlock.vbs
Line: 3
Char: 2
Error: There is no such object on the server.
Code: 80072030
Source: (null)

---------------------------
OK
---------------------------


Please help?

7 REPLIES 7
Hemoco
Lansweeper Alumni
Please contact us at support@lansweeper.com regarding this issue and include a link to this forum thread.
jacobsenm
Engaged Sweeper III
The path seems to be just fine.
I can send a screendump per email if you wish ?
Hemoco
Lansweeper Alumni
@jacobsenm: can you verify if there is a problem with the Object name/path, maybe there is a problem with the generation of this path.
jacobsenm
Engaged Sweeper III
I have exactly the same issue / error message in Lansweeper 5 (after the upgrade)
Same for the other standard vbs scripts, such as "Reset password", "Pwd change allowed", "Reset password"
Hemoco
Lansweeper Alumni
Does the object exist?
ajayan111
Engaged Sweeper
please find the requested action
Hemoco
Lansweeper Alumni
are you using the latest version of Lansweeper 5.0?

Can you add a msgbox(struser) to check if the name is correct.