Skip to content

Instantly share code, notes, and snippets.

@karthiks
Created August 15, 2023 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save karthiks/c2ce1e222ec75f82bdb4a4fddb3d4b9f to your computer and use it in GitHub Desktop.
Save karthiks/c2ce1e222ec75f82bdb4a4fddb3d4b9f to your computer and use it in GitHub Desktop.
Powershell Cheatsheet
# Windows IP Config
ipconfig
Get-NetIPAddress -AddressFamily IPV4 -InterfaceAlias Wi-Fi | Select IPAddress
# When you want to download a list of files in files.txt having header as `sources,`
Import-Csv .\files.txt | Start-BitsTransfer
# Ping equivalent in PS
Test-Connection -ComputerName (hostname) -Count 1
# Show list of files containing text "REQUEST_INSTALL_PACKAGES" in a current directory
Get-ChildItem -Recurse | Select-String "REQUEST_INSTALL_PACKAGES" -List | Select Path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment