AntoSVK

Set-ExecutionPolicy

Jun 27th, 2017
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set-ExecutionPolicy -ExecutionPolicy Bypass localmachine
  2. Set-ExecutionPolicy -ExecutionPolicy Restricted localmachine
  3.  
  4.  
  5. Set-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name '!UserProfile' -Value "powershell -file C:\Users\Public\Documents\Nastaveni\User_Profile.ps1"
Advertisement
Add Comment
Please, Sign In to add comment