about_profiles.help

About_profiles.help - TOPIC about_Profiles SHORT DESCRIPTION Describes how to create and use a Windows PowerShell profile LONG DESCRIPTION You can

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 TOPIC about_Profiles SHORT DESCRIPTION Describes how to create and use a Windows PowerShell profile. LONG DESCRIPTION You can create a Windows PowerShell profile to customize your environment and to add session-specific elements to every Windows PowerShell session that you start. A Windows PowerShell profile is a script that runs when Windows PowerShell starts. You can use the profile as a logon script to customize the environment. You can add commands, aliases, functions, variables, snap-ins, modules, and Windows PowerShell drives. You can also add other session-specific elements to your profile so they are available in every session without having to import or re-create them. Windows PowerShell supports several profiles for users and host programs. However, it does not create the profiles for you. This topic describes the profiles, and it describes how to create and maintain profiles on your computer. It explains how to use the NoProfile parameter of the Windows PowerShell console (PowerShell.exe) to start Windows PowerShell without any profiles. And, it explains the effect of the Windows PowerShell execution policy on profiles. THE PROFILE FILES Windows PowerShell supports several profile files. Also, Windows PowerShell host programs can support their own host-specific profiles. For example, the Windows PowerShell console supports the following basic profile files. The profiles are listed in precedence order. The first profile has the highest precedence. Description Path ----------- ---- Current User, Current Host $Home\[My ]Documents\WindowsPowerShell\Profile.ps1 Current User, All Hosts $Home\[My ]Documents\Profile.ps1 All Users, Current Host $PsHome\Microsoft.PowerShell_profile.ps1 All Users, All Hosts $PsHome\Profile.ps1 The profile paths include the following variables: - The $PsHome variable, which stores the installation directory for Windows PowerShell.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sheet1 Page 2 - The $Home variable, which stores the current user's home directory. In addition, other programs that host Windows PowerShell can support their own profiles. For example, Windows PowerShell Integrated Scripting Environment (ISE) supports the following host-specific profiles. Description Path ----------- ----- Current user, Current Host $Home\[My ]Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1 All users, Current Host $PsHome\Microsoft.PowerShellISE_profile.ps1 In Windows PowerShell Help, the "CurrentUser, Current Host" profile is the profile most often referred to as "your Windows PowerShell profile". THE $PROFILE VARIABLE
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/03/2010 for the course BUS fin taught by Professor Fez during the Spring '10 term at Valparaiso.

Page1 / 6

About_profiles.help - TOPIC about_Profiles SHORT DESCRIPTION Describes how to create and use a Windows PowerShell profile LONG DESCRIPTION You can

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online