solarwinds / OrionSDK

SDK for the SolarWinds Orion platform, including tools, documentation, and samples in PowerShell, C#, Go, Perl, and Java.
https://thwack.com/OrionSDK
Apache License 2.0
394 stars 139 forks source link

Install only the PowerShell part with the SDK installer #332

Closed fullenw1 closed 1 year ago

fullenw1 commented 1 year ago

Hello,

Is there a way to only install the PowerShell snap-in instead of installing the whole SDK?

thefreakquency commented 1 year ago

The easy approach would be to install from PSGallery, as mentioned here: https://github.com/solarwinds/OrionSDK/wiki/PowerShell. This does not install SWQL Studio.

You might need the following command if the posted one does not work: Install-Module -Name SwisPowerShell -Repository PSGallery -Force

If you then want to be able to gather only the files and export them elsewhere, you can find the location with:

(Get-Module -ListAvailable SwisPowerShell*).path

fullenw1 commented 1 year ago

Hi @thefreakquency and thanks for your answer.

In fact, I wanted to use the PowerOrion module, which loads the SwisSnapin snapin (from the SDK). However, I found out that it works without that snapin.

Furthermore, after some tests, the PowerOrion module has not enough options for what I need to do. Thus, I will try to use the SwissPowerShell module directly, though it will imply a lot more work.

A more "high-level" module with cmdlets like Add-Node and Remove-Node with all available options would be welcome :)