Unsolved
1 Rookie
•
36 Posts
0
72
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
4 Operator
4 Operator
•
1.9K Posts
0
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