Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 2.58 KB

Tips.Windows.PowerShell.md

File metadata and controls

68 lines (41 loc) · 2.58 KB

Windows PowerShell Tips

References

PowerShell 7

PowerShell 6

  • NOTE: PowerShell Core 6.0 was first announced on 18 August 2016, when Microsoft unveiled PowerShell Core and its decision to make the product cross-platform, independent of Windows, free and open source.[5] It achieved general availability on 10 January 2018 for Windows, macOS and Linux
    • See Wikipedia article at top of README

PowerShell 5

  • NOTE: Windows Management Framework (WMF) 5.0 RTM which includes PowerShell 5.0 was re-released to web on 24 February 2016, following an initial release with a severe bug
    • See Wikipedia article at top of README

Commands

Check Version of PowerShell

  • $PSVersionTable

Measure Execution Time of a batch command

Check SHA256 Hash for a File:

  • Note: You can also add a qualifier to specify a different hash algorithm result, e.g.
    • -Algorithm MD5
    • -Algorithm SHA1
    • -Algorithm SHA384
    • -Algorithm SHA512
    • -Algorithm MACTripleDES
    • -Algorithm RIPEMD160

Check Network Adapters:

  • Get-NetAdapter