You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On older systems there is no Get-LocalGroupMember Cmdlet - the check will crash with ValueError ('summary' must be non-empty str or None, got )
This PS module seems to come with Version 5.1 (WMF 5.1)
I propose two solutions:
write a routine using WMIC if the Cmdlet is not found (not worth it in my opinion)
let the script return an error code if (Get-Host).Version -lt [System.Version]"5.1" or maybe (Get-Command Get-LocalGroupMember -ErrorAction SilentlyContinue) -eq $null
Could do a PR if you want but I am new to custom plugins and don't want to break anything
The text was updated successfully, but these errors were encountered:
Thanks for this useful check!
On older systems there is no Get-LocalGroupMember Cmdlet - the check will crash with
ValueError ('summary' must be non-empty str or None, got )
This PS module seems to come with Version 5.1 (WMF 5.1)
I propose two solutions:
(Get-Host).Version -lt [System.Version]"5.1"
or maybe(Get-Command Get-LocalGroupMember -ErrorAction SilentlyContinue) -eq $null
Could do a PR if you want but I am new to custom plugins and don't want to break anything
The text was updated successfully, but these errors were encountered: