Applications Systems
SAM: Powershell monitoring not working after upgrade to 2022.3 and above
After upgrading 2022.3 and above, PowerShell monitoring are down or no longer working properly.
First published date
Last published date
Overview
Product section
Cause
In some instance, the following error message may occur with Powershell Monitoring scripts:
Logon failure: the user has not been granted the requested logon type at this computerResolution
To workaround the following issue, please perform the following steps:
SolarWinds Platform 2022.3 - 2023.4
The following setting will need to be manually added after each software upgrade.- Find and open the following with notepad or other text editors (may need to run as administrator): Program Files\SolarWinds\Orion\SolarWinds.APM.Probes.dll.config or Program Filesx86\SolarWinds\Orion\SolarWinds.APM.Probes.dll.config
- In the line:
<add key="UseLegacyPowerShellImpersonation" value="false" />change value to<add key="UseLegacyPowerShellImpersonation" value="true" />. - Restart Orion services.
SolarWinds Platform 2024.1
Starting in 2024.1, a new setting was added and will be preserved after future upgrades.- Log in to the Orion Web Console using an account with administrative privileges.
- To access Advanced Configuration Settings, copy /Admin/AdvancedConfiguration/Global.aspx.
- Paste it into your browser address bar, after /Orion, as shown here: http://YOUR_SERVER/Orion/Admin/AdvancedConfiguration/Global.aspx
- Press Enter.
- Search the PowerShell in the Search Bar
- Find the APM.WMI.Setting "UseLegacyPowerShellImpersonation"
- Select the checkbox
- Click Save