-
SolarWinds PowerShell Module 3.0.309 - Now Supporting PowerShell 7
If you’ve used the SolarWinds® PowerShell Module (SwisPowerShell) for any amount of time, you know one of the long-standing requirements was it ran under Windows® PowerShell (2.x, 3.x, 5.x). I’m pleased to tell you as of the 3.0.309 release, that’s no longer a constraint and it now can run under PowerShell (formerly called…
-
SAM Powershell Script is Not working
Good afternoon, I have created this PowerShell script to monitor if a remote server has or has not Shadow Copies on the system. Function GetShadowCount { Get-WmiObject Win32_ShadowCopy -ComputerName ${IP} -Credential ${CREDENTIAL} | Select Count; } Function OnlyTrue { if(GetShadowCount) { Write-Host Statistic: 1;…
-
Powershell Monitors Unknown, "Failed to deserialize probe settings"
We've been using HolyGuacamole's/antonis.athanasiou's Dell Server Storage Hardware Health script for about two years now without any problems. Last week, we updated everything to do with our NMS, migrating to: MS Server 2016, SQL 2016, Orion Platform 2018.2 HF5, NPM 12.3, SAM 6.6.1 (10/31/18 Edit: Updated SAM to 6.7), and…
-
Monitor Moving Log Files with Powershell
I am new to Powershell, I have managed to create powershell script to check modified dates, text in Log Files, request to HTTP Services, but I am having a difficult time trying to create a monitor that will pick up on whether or not a "Clean Up.log" File has moved with in the last minute. I am hoping I can get some…
-
FEATURE REQUEST - Powershell component - run as administrator
Hello This one is (in my head at least) quite simple and straight forward, how come we can't have a powershell component run with administrator permissions on a node with an agent installed? My request should in theory be quite simple to add, just a checkbox in the powershell component saying "Run as administrator", and…
-
How do you change what version of PowerShell a SAM component uses?
Hello all, We have a need to run some PowerShell scripts that use features of PowerShell 3 and above. We are running SAM 6.4.0 and we have PowerShell 4.0 installed everywhere but the SAM components still use PowerShell v 2.0. How can we change it so SAM is using PowerShell 4.0 instead of 2.0? Any direction would be…
-
Powershell Output Message Problem
Hello, I have a problem with the output of a power shell script. In other forum posts I have read that I can define the output by means of Write host "Statistic.name: Value" or Write host "Message.name: Value" However, I am not able to generate an output with message (see picture). Anybody have any idea what's causing…
-
Creating an array in a powershell script
I am trying to figure out a way to dynamically create an array from several variables inside of a powershell script. I have several variables that will be deffined $svr_list1 = "svrA", "svrB", "svrC" $svr_list2 = "svrD", "svrE" $svr_list3 = "svrF", "svrG" $svc_list1 = "svcA", "svcB" $svc_list2 = "svcA", "svcC" $svc_list3 =…
-
Passing Node_name to PowerShell script.
Hi all, I have another topic for this question but I decided to open this one since other one is more broad. I am running PowerShell script from alert and I am using string to call a script and run it on the node that triggered the alert. The string I am using is the one from Solarwinds but it does not run PowerShell…
-
How to get output in expected format for Windows PowerShell monitor
I am trying to create a Windows PowerShell monitor to display more than one results/outputs. I have following script: $Error.Clear(); function Get-ODBC-Data{ param( [string]$query=$(" SELECT col1, col2 FROM [master].[sys].[table_name] dm WHERE [CONDITION];"), [string]$username='db_User_name',…