Skip to content

Instantly share code, notes, and snippets.

@pe3zx

pe3zx/cmpv.ps1

Created Sep 7, 2020
Embed
What would you like to do?
cmpv function for PowerShell code analysis
$AutomaticVariables = Get-Variable
function cmpv {
Compare-Object (Get-Variable) $AutomaticVariables -Property Name -PassThru | Where -Property Name -ne "AutomaticVariables"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.