Running a PowerCLI Script
Running a PowerCLI Script
Im a Linux User and fond some interesting scripts for VMWare on the Internet, the problem was I didnt knew how to run them.
Now I finally learned how to run a Power Shell script, so heres how Ive done it:
Save the script to a file with a filetype of .ps1
Open the PowerCLI prompt on your PC
Connect to the vCenter with the Connect-VICenter cmdlet
dot-source the .ps1 file. That way the function is know in your PowerCLI session
. ./yourfile.ps1
Call the function implemented by the scipt.
download file now
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.