Unsolved
1 Rookie
•
36 Posts
0
122
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
No Events found!
Origin3k
4 Operator
•
2.3K 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