UNSOLVED

dwatelet

updated

3 years ago

D

dwatelet

1 Rookie

36 Posts

0

203

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

  • Origin3k

    6 Operator

    2421 Posts

    12396 Points

    0

    0

    Posted 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