internal/tepp/wmifilter.tepp.ps1

1
2
3
4
5
6
7
8
Register-PSFTeppScriptblock -Name 'GPWmiFilter.Filter' -ScriptBlock {
    $adParameters = @{ }
    if ($fakeBoundParameter.Server) { $adParameters['Server'] = $fakeBoundParameter.Server }
    if ($fakeBoundParameter.Credential) { $adParameters['Credential'] = $fakeBoundParameter.Credential }
    
    (Get-GPWmiFilter @adParameters).Name
}