How to Create Powershell or PowerCLI Profile For VMWare Automation – VirtuallyThatGuy

How to Create a Profile in powershell. You can also checkout my previous post on “Back to Basics PowerCLI Setting Up Profile For Automation”. This will get you ready for our journey of automation.

 

## Run this command as admin in powershell​​ 

 

set-executionpolicy​​ remotesigned​​ 

​​ 

## ​​ Create Powershell Profile

 

## run below in admin mode in Powershell

 

Test-Path​​ $profile

New-Item​​ -path​​ $profile​​ -type​​ file​​ –force

 

## edit the profile and add below: ​​ C:\Users\username\Documents\WindowsPowerShell

 

​​ 

This was generated from the msdn link below with a few alterations:​​ 

https://docs.microsoft.com/en-us/powershell/scripting/core-powershell/ise/how-to-use-profiles-in-windows-powershell-ise?view=powershell-6​​ 

You May Also Like

About the Author: VirtuallyThatGuy

Leave a Reply

Your email address will not be published. Required fields are marked *