Start a Conversation

Unsolved

1 Rookie

 • 

36 Posts

72

November 10th, 2023 09:51

PowerStore PowerShell

Hi 

I am using PowerShell to create script for a demo. I used an ISE Powershell session, it works fine and I can execute with success the command get-nasserver -Cluster $Cluster.

I tried to execute the same command in a standard PowerShell session, it failed :-( 

I don't understand why, any clue ?

regards

4 Operator

 • 

1.9K Posts

November 11th, 2023 19:19

Most likely the needed Powershell module is in a profile when using ISE.  Just add 2 line into your Script to check if the module is already loaded and when not just load it.

Regards,

Joerg

No Events found!

Top