Jump to content

Error during execution of the script for task Local Admin Accounts Discovery Job


Recommended Posts

 

Hi!
In Russified copies of Windows7(8) local user groups have Russian names.
ie, No group "Administrators", there is a group "ÐдминиÑтраторы".
How can I fix the script task "Local Admin Accounts Discovery Job" ?

 

 
(default) C:\inetpub\Passwordstate\setup\scripts\Get-LocalAdminAccounts.ps1
line#20: $group = [ADSI]"WinNT://$HostName/Administrators" -> $group = [ADSI]"WinNT://$HostName/ÐдминиÑтраторы"
 
However, if use this approach local administrators of the English copies Windows Server will not be found!
Link to post
Share on other sites

Hi Pavel,

 

To fix this, you will need to do the following with the script:

 

  • Just after the line $group = [ADSI]"WinNT://$HostName/Administrators", insert this and then save the script

          if (-not $group.Path)

          { $group = [ADSI]"WinNT://$HostName/Администраторы" }
  • Now go to the screen Administration -> Hosts & Password Resets, and click on the 'Restore Discovery Scripts' button

On occasion though, we will update this script when we release new builds of Passwordstate - if we need to fix any bugs. We will be doing this for the next release to fix a bug for another customer. So any time you perform an upgrade of Passwordstate, you will need to check the changelog, or the script itself, to see if we have overwritten your change above. If so, just update the script again with the detail above.

 

Regards

Click Studios

Link to post
Share on other sites

Hi Pavel,

 

To fix this, you will need to do the following with the script:

 

  • Just after the line $group = [ADSI]"WinNT://$HostName/Administrators", insert this and then save the script

          if (-not $group.Path)

          { $group = [ADSI]"WinNT://$HostName/ÐдминиÑтраторы" }
  • Now go to the screen Administration -> Hosts & Password Resets, and click on the 'Restore Discovery Scripts' button

On occasion though, we will update this script when we release new builds of Passwordstate - if we need to fix any bugs. We will be doing this for the next release to fix a bug for another customer. So any time you perform an upgrade of Passwordstate, you will need to check the changelog, or the script itself, to see if we have overwritten your change above. If so, just update the script again with the detail above.

 

Regards

Click Studios

 
Oh yeah, you're right!
Thank you!
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...