- open PowerShell with admin rights
- display the path to the Windows PowerShell profile
- $profile
- check if Windows PowerShell profile has been created on the system
- test-path $profile
- to create a profile
- new-item -path $profile -itemtype file -force
- open your profile
- notepad $profile
- enable the transcript
- Start-Transcript
- if you get this error "File c:\Users\YourUserName\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 cannot be loaded because running scripts is disabled on this system", fix it with this:
- Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
2019-01-30
Run Start-Transcript every time you start PowerShell
Labels:
PowerShell,
Windows
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment