background preloader

Powershell

Facebook Twitter

Windows PowerShell Profiles. When you add aliases, functions, and variables, you are actually adding them only to the current Windows PowerShell session.

Windows PowerShell Profiles

If you exit the session or close Windows PowerShell, the changes are lost. To retain these changes, you can create a Windows PowerShell profile and add the aliases, functions, and variables to the profiles. The profile is loaded every time that Windows PowerShell starts. To load a profile, your Windows PowerShell execution policy must permit you to load configuration files. Windows PowerShell profile - WindowsPowerShell folder and profile.ps1. Old timers can remember configuration files such as AutoExec.bat and Config.sys to control the startup environment, and more modern Microsoft operating systems need boot.ini or bcdedit.

Windows PowerShell profile - WindowsPowerShell folder and profile.ps1

Well, the purpose of this page is to configure the equivalent PowerShell start-up file: Microsoft.PowerShell_profile. PowerShell User Profile Topics. Windows Automation Snapin for PowerShell - Home.