Skip to content
Bryan Dady edited this page May 3, 2015 · 2 revisions

Welcome to the ProfilePal wiki!

Now available from the PowerShellGallery!

https://www.powershellgallery.com/packages/ProfilePal/

How to install

You may either download the latest release (zip), download the latest repository (as a zip) or otherwise Clone with your GitHub client.

Once you have a local copy of ProfilePal.psd1, ProfilePal.psd1, and copy-module.ps1, you're all set to get started.

Install module with copy-module.ps1

  1. Open a PowerShell console
  2. if you haven't already, invoke (aka 'run', from the PowerShell prompt) Set-ExecutionPolicy Bypass a. For more context on changing PowerShell execution policy(ies) run get-help Set-ExecutionPolicy | more

The recommended procedure for 'Installing' a PowerShell Module is a 2-step process, both of which copy-module.ps1 takes care of for you:

  1. Copy the module files to a common file path for PowerShell Modules a. PowerShell has a few different directories / paths it looks for Modules in. b. If you have PowerShell Admin permissions when you run copy-module, it will place the ProfilePal module in the Module path for All Users. If not, the ProfilePal module will be copied to the Modules folder within your user profile path. c. If / when this is complete, copy-module will show you results (in the PowerShell console) such as: [add example here]

  2. invoked the import-module cmdlet to activate the PowerShell elements provided by the module

    PS .> Get-Profile | Format-Table -AutoSize

    Path Name Exists


    C:\Users\BDady\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 CurrentUserCurrentHost True C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1 AllUsersCurrentHost False C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1 AllUsersAllHosts False C:\Users\BDady\Documents\WindowsPowerShell\profile.ps1 CurrentUserAllHosts True

Example output

PS .\> Get-Profile | Format-Table -AutoSize

Path                                                                        Name                   Exists
----                                                                        ----                   ------
C:\Users\BDady\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 CurrentUserCurrentHost   True
C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1 AllUsersCurrentHost     False
C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1                      AllUsersAllHosts        False
C:\Users\BDady\Documents\WindowsPowerShell\profile.ps1                      CurrentUserAllHosts      True