
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2013 09:55 AM
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?
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?
Labels:
- Labels:
-
Archive
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2013 08:02 PM
Please contact us at support@lansweeper.com regarding this issue and include a link to this forum thread.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2013 02:07 PM
The path seems to be just fine.
I can send a screendump per email if you wish ?
I can send a screendump per email if you wish ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2013 04:20 PM
@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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2013 01:56 PM
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"
Same for the other standard vbs scripts, such as "Reset password", "Pwd change allowed", "Reset password"

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2013 01:51 PM
Does the object exist?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2013 07:41 AM
please find the requested action

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2013 10:52 AM
are you using the latest version of Lansweeper 5.0?
Can you add a msgbox(struser) to check if the name is correct.
Can you add a msgbox(struser) to check if the name is correct.
