Hi,
I am working in an environment where PowerShell Remoting is not enabled on our hosts (for security reasons - long story! )
However, I know I can run PowerShell cmdlets locally and get remote information for cmdlets that support it and don't need Remoting. For example, the Get-WmiObject cmdlet.
Thus for example I can run something like Get-WmiObject -Class Win32_OperatingSystem -ComputerName "remotecomputer" from a PowerShell window on my Solarwinds server and it will work.
However when I put the same cmdlet in the script window of a PowerShell component in an Application Monitor it doesn't seem to do anything. I don't know how to debug further, but what I am doing is get the WMI object as above and extract the remote computer name from that and output it. If I get a computer name it means the code must be working, but I don't get anything.
I am running the script in Local Host execution mode which I believe means it runs locally on the Solarwinds server.
Any suggestions on what I am doing wrong or maybe I am trying to do something that's not supported?
Thanks.