If I do
get-service | select -ExcludeProperty Status
it still returns the status field, anyone now why? basically -Exclude does not seem to do anything
Any help most welcome
Get-help for select-object says:
Specifies the properties that this cmdlet excludes from the operation. Wildcards are permitted. This parameter is effective only when the command also includes the Property parameter.
That seems a bit silly on the surface of it since you could simply say "-property prop1, prop2 ..." and just leave out status. At any rate, that's why it isn't working as you expect.
In reply to cmartin16:
In reply to Auser: