Skip to content

Instantly share code, notes, and snippets.

@user5145
Last active March 22, 2020 11:07
Show Gist options
  • Save user5145/026cdcb0fdef2e436a34b2ff30528b30 to your computer and use it in GitHub Desktop.
Save user5145/026cdcb0fdef2e436a34b2ff30528b30 to your computer and use it in GitHub Desktop.
# turn off hibenation
powercfg -h off
# turn on scripts
Get-ExecutionPolicy -List
Set-ExecutionPolicy -Scope CurrentUser Unrestricted
Set-ExecutionPolicy Unrestricted
# create profile
test-path $PROFILE.CurrentUserCurrentHost
new-item $PROFILE.CurrentUserAllHosts -ItemType file -Force
mv C:\Users\$user\Documents\WindowsPowerShell\profile.ps1 C:\Users\$user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
# cmder
.\cmder.exe /REGISTER ALL
# choco
choco feature enable -n allowGlobalConfirmation
# samba
net use Z: \\vboxsvr\Downloads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment