Skip to content

Instantly share code, notes, and snippets.

@vishaldpw
Forked from karthiks/PowershellCheatsheet.ps
Created December 20, 2023 07:25
Show Gist options
  • Select an option

  • Save vishaldpw/61a9eb9c19bf5f73a4d9a3245910e9ed to your computer and use it in GitHub Desktop.

Select an option

Save vishaldpw/61a9eb9c19bf5f73a4d9a3245910e9ed 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
@vishaldpw
Copy link
Author

First Commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment