Hello
I have users who mute alerts via a script:
They belong to an AD group - DBA ADMINS that belongs to another group - Solarwinds Manage Alerts
None of the users is a member of a different group or allowed to log on with their windows credentials
They have the permission Manage nodes
They both run a powershell script to mute alerts from the same system
The module I use for Powershell is Binary 3.1.0.343 SwisPowerShell
In a nutshell - they have the same permissions
user 1 can mute alerts
user 2 gets an error that their password is wrong
Pshell script credentials code:
# checking the local username, and fix it if needed
If ($env:USERNAME.startswith("mgr-","CurrentCultureIgnoreCase" ))
{
$login = ("$env:USERDOMAIN\"+$env:USERNAME).ToLower()
}
Else
{
$login = ("$env:USERDOMAIN\"+"mgr-"+$env:USERNAME).ToLower()
}
# connection to the Solarwinds server
$creds = Get-Credential -Message "Connect to Solarwinds" -User $login
If ($Null -Eq $creds)
{
Write-Output "You must provide credentials to connect to the Solarwinds server"
Exit (1)
}
$swis = Connect-Swis -Credential $creds -Hostname <solarwinds>
Get-SwisData : Invalid username or password. At C:\Scripts\ps-suppressswalerts.ps1:62 char:12 + $nodeUri = Get-SwisData $swis "SELECT Uri FROM Orion.NodesCustomPrope ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Get-SwisData], MessageSecurityException + FullyQualifiedErrorId : SwisError,SwisPowerShell.GetSwisData Invoke-SwisVerb : Invalid username or password. At C:\Scripts\ps-suppressswalerts.ps1:68 char:1 + Invoke-SwisVerb -SwisConnection $swis -EntityName Orion.AlertSuppress ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Invoke-SwisVerb], MessageSecurityException + FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb Alerts suppressed by 10 minute(s) - Affected Nodes: Get-SwisData : Invalid username or password. At C:\Scripts\ps-suppressswalerts.ps1:73 char:1 + Get-SwisData $swis "SELECT Caption FROM Orion.NodesCustomProperties A ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Get-SwisData], MessageSecurityException + FullyQualifiedErrorId : SwisError,SwisPowerShell.GetSwisData
He wrote the password in notepad and he copies / pastes it to prevent a bad password , tried escape char ` in front of the special characters
He can log on to SolarWinds GUI w his windows credentials , He still gets the error when running powershell