Easy way to Configure your Powershell Profile

Powershell was most widely used in all the latest version of the windows operating system. There are so many uses of the powershell commands and powershell scripting that make you simplify the work such as customization, automation, scheduling etc. From the windows 7 operating system powershell has been introduced as an inbuilt component. You can also use the powershell in the windows xp operating system but you should manually download the package and install it in the windows xp.

Opening and using the powershell creates many sessions and you need to manually remember the commands or you need to search for the powershell commands if you need it. But if you are using the alias commans then it will be very useful for you to execute and remember the powershel commands in more convinient way. You can also save the alias commands in your powershell sessions but the things resides behind here is you can only save the alias powershell commands only for the currently runnig session. After you close the session the alias powershell commands cannot be used.

Read Article :  Powershell Command : Get-AuthenticodeSignature

To resolve this problem you can easily depend on the powershell profiles that was used to store all your manual settings in a powershell script format. To configure your powreshell profile, follow the below settings…

1. Open your powershell from the start menu with the elevated priviliges i.e. open your powershell using the administrator permissions.

2. Then type the following command to check whether any powershell profiles has been configured or not.


Test-path $profile


3. If you find any results then previously powershell profile has been configured, if you find none then there was no powershell profile and you are ready to configure a new powershell profile by just simply running the below mentioned powershell commands.

Read Article :  How to Configure NAT in VMware / VirtualBox

4. Now type the nelow mentioned command for creating new profile.


New-item –type file –force $profile


5. After running the previous command, if it returns a success in executing the powershell commands, you need to open the powershell profile script file to enter your manual commands such as alias, display settings etc…


Notepad $profile


6. After opening the powershell script file using the notepad enter the below command, so that when ever you are opening your profile it will display your username.


# Welcome message
“You are now entering PowerShell : ” + $env:Username


7. Finally you need to save the notepad file and open a new powershell and initiate your profile, just type the below powershell command to run your profile.

Read Article :  Powershell Command : Trace Command

. $profile


This is how you will create a powershell profile using the powershell.

You may also like...

Leave a Reply

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

9 − two =