-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the ProfilePal wiki!
https://www.powershellgallery.com/packages/ProfilePal/
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.
- Open a PowerShell console
- 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) runget-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:
-
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]
-
invoked the
import-module
cmdlet to activate the PowerShell elements provided by the modulePS .> 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