2019-01-30
Open PowerShell transcripts folder
explorer split-path -path $profile
Run Start-Transcript every time you start PowerShell
- 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-28
2019-01-21
Subscribe to:
Posts (Atom)