Created
August 15, 2023 17:58
-
-
Save karthiks/c2ce1e222ec75f82bdb4a4fddb3d4b9f to your computer and use it in GitHub Desktop.
Powershell Cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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