(Un)Archiving Items
Zipping
Unzipping
In PowerShell v5+, there is an Expand-Archive command (as well as Compress-Archive) built in:
Expand-Archive C:\a.zip -DestinationPath C:\a
Searching
Search for a file
Get-ChildItem -Path [start search location] -Filter [search item] -Recurse -ErrorAction SilentlyContinue -Force
Change Environment Variable Without Admin Privileges
To change, for example, the $HOME
environment variable for the current user:
[Environment]::SetEnvironmentVariable("HOME", "C:\home\YourName", "User")
To verify that the setting took:
[Environment]::GetEnvironmentVariable("HO(nohlsearch)ME")