Some helpfule powershell alias.
- Create tools folder under c:
- Add clean.ps1, find.ps1, and start-as-admin.ps1 in c:\tools.
- in start-as-admin.ps1, update your credentials. //TODO: might be possible to use encrypted password since it's in risk of being exposed.
- save profile.ps1 to
c:\windows\system32\windowspowershell\v1.0
- Restart your powershell
find
: recursive search in a directoryadmin
: start following tools in admin mode:np
: notepad++code
: vscodewt
: windows terminal
clean
: Deep clean of everything in a visual studio solution folder. Deletesbin
,obj
,packages
, also cleanstemp
folders, andnuget cache
.vs <solutionfile>
: open solution in vs2022.vs19 <solutionFile>
: open solution in vs2019.e
: Shortcut for explorer.passwd
: this saves the admin password in an encrypted file. Use the-admin
switch to set the credential for theadmin
alias.