Reply to Message

View discussion in a popup

Replying to:
LucD
Leadership
Leadership

The .psc1 file is what is called a PSConsoleFile, it is used to load PSSnapins.

The powershell.exe command has multiple options (you can do powershell.exe /? to see them).

If your script is stored in a .ps1 file, you can use the File parameter to run it.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos