File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
reference/6/Microsoft.PowerShell.Core Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ Selects objects from a collection based on their property values.
21
21
Where-Object [-InputObject <PSObject>] [-Property] <String> [[-Value] <Object>] [-EQ] [<CommonParameters>]
22
22
```
23
23
24
+ ### NotSet
25
+ ```
26
+ Where-Object [-Property] <string> -Not [-InputObject <psobject>] [<CommonParameters>]
27
+ ```
28
+
24
29
### ScriptBlockSet
25
30
26
31
```
@@ -925,6 +930,25 @@ Accept pipeline input: False
925
930
Accept wildcard characters: False
926
931
` ` `
927
932
933
+ # ## -Not
934
+ Indicates that this cmdlet gets objects if the property does not exist or has a value of null or false.
935
+
936
+ For example : ` Get-Service | where -Not "DependentServices"`
937
+
938
+ This parameter was introduced in Windows PowerShell 6.1.
939
+
940
+ ` ` ` yaml
941
+ Type: SwitchParameter
942
+ Parameter Sets: Not
943
+ Aliases:
944
+
945
+ Required: True
946
+ Position: Named
947
+ Default value: None
948
+ Accept pipeline input: False
949
+ Accept wildcard characters: False
950
+ ` ` `
951
+
928
952
# ## -NotContains
929
953
930
954
Indicates that this cmdlet gets objects if none of the items in the property value is an exact match for the specified value.
You can’t perform that action at this time.
0 commit comments