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 @@ -20,6 +20,11 @@ Selects objects from a collection based on their property values.
20
20
Where-Object [-InputObject <PSObject>] [-Property] <String> [[-Value] <Object>] [-EQ] [<CommonParameters>]
21
21
```
22
22
23
+ ### NotSet
24
+ ```
25
+ Where-Object [-Property] <string> -Not [-InputObject <psobject>] [<CommonParameters>]
26
+ ```
27
+
23
28
### ScriptBlockSet
24
29
```
25
30
Where-Object [-InputObject <PSObject>] [-FilterScript] <ScriptBlock> [<CommonParameters>]
@@ -854,6 +859,25 @@ Accept pipeline input: False
854
859
Accept wildcard characters: False
855
860
` ` `
856
861
862
+ # ## -Not
863
+ Indicates that this cmdlet gets objects if the property does not exist or has a value of null or false.
864
+
865
+ For example : ` Get-Service | where -Not "DependentServices"`
866
+
867
+ This parameter was introduced in Windows PowerShell 6.1.
868
+
869
+ ` ` ` yaml
870
+ Type: SwitchParameter
871
+ Parameter Sets: Not
872
+ Aliases:
873
+
874
+ Required: True
875
+ Position: Named
876
+ Default value: None
877
+ Accept pipeline input: False
878
+ Accept wildcard characters: False
879
+ ` ` `
880
+
857
881
# ## -NotContains
858
882
Indicates that this cmdlet gets objects if none of the items in the property value is an exact match for the specified value.
859
883
You can’t perform that action at this time.
0 commit comments