Skip to content

Instantly share code, notes, and snippets.

@michaeltlombardi
Last active April 9, 2019 20:38
Show Gist options
  • Save michaeltlombardi/8750a45812e1cb1a1c601b49d6457d6f to your computer and use it in GitHub Desktop.
Save michaeltlombardi/8750a45812e1cb1a1c601b49d6457d6f to your computer and use it in GitHub Desktop.

$ConvertedFilter

(enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368")

$ConvertedFilter -replace '\(enabled', '($_.enabled'

((enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368").enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368")

$ConvertedFilter -replace '\(enabled', '(\$_.enabled'

(\(enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368").enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368")

$ConvertedFilter -replace '\(enabled', '($\_.enabled'

($\_.enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368")

$ConvertedFilter -replace '\(enabled', '($_\.enabled'

((enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368")\.enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368")

$ConvertedFilter -replace '(enabled', '($_.enabled'

(\(enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368")\.enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368")

$ConvertedFilter -replace '(enabled', '($_.enabled'

(\$\_\.enabled -eq $True -and PasswordNeverExpires -eq $False -and WhenCreated -lt $WhenCreated -and samAccountType -eq "805306368")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment