Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 240675

Re: what needs to go at top of script file to work?

$
0
0

Is that script file stored in the same folder as where you are located at the PowerCLI prompt ?

The prompt tells you, for example

PowerCLI D:\\Scripts>

Did you try to run the script as

PowerCLI D:\Scripts> ./script.ps1

Or if the script is stored in another folder, try giving the complete path

PowerCLI D:\Scripts> C:\Scripts\script.ps1

Viewing all articles
Browse latest Browse all 240675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>