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
###############################################################################or in short
61
61
l *.js "Version == `"\d\d?\.\d\d?\.\d\d?`""
62
62
63
63
.EXAMPLE
64
-
# Find all directories in the current directory and its subdirectories
64
+
###############################################################################Find all directories in the current directory and its subdirectories
65
65
Find-Item -Directory
66
66
67
-
# or in short
67
+
###############################################################################or in short
68
68
l -dir
69
69
70
70
.EXAMPLE
71
-
# Find all files with the .log extension in all drives
71
+
###############################################################################Find all files with the .log extension in all drives
72
72
Find-Item -SearchMask "*.log" -AllDrives
73
73
74
-
# or in short
74
+
###############################################################################or in short
75
75
l *.log -all
76
76
77
77
.EXAMPLE
78
-
# Find all files with the .config extension and search for the pattern "connectionString" within the files
78
+
###############################################################################Find all files with the .config extension and search for the pattern "connectionString" within the files
###############################################################################or in short
82
82
l *.config connectionString
83
83
84
84
.EXAMPLE
85
-
# Find all files with the .xml extension and pass the objects through the pipeline
85
+
###############################################################################Find all files with the .xml extension and pass the objects through the pipeline
86
86
Find-Item -SearchMask "*.xml" -PassThru
87
87
88
-
# or in short
88
+
###############################################################################or in short
89
89
l *.xml -PassThru
90
90
91
91
.EXAMPLE
92
-
# Find all files and also include alternate data streams
92
+
###############################################################################Find all files and also include alternate data streams
93
93
Find-Item -IncludeAlternateFileStreams
94
94
95
-
# or in short
95
+
###############################################################################or in short
96
96
l -ads
97
97
98
98
.EXAMPLE
99
-
# Find only the alternate data streams (not the base files) for all .jpg files
99
+
###############################################################################Find only the alternate data streams (not the base files) for all .jpg files
100
100
Find-Item -SearchMask "*.jpg:"
101
101
102
-
# This syntax automatically enables -IncludeAlternateFileStreams
# Find jpg files that have a stream named "Zone.Identifier"
105
+
###############################################################################Find jpg files that have a stream named "Zone.Identifier"
106
106
Find-Item -SearchMask "*.jpg:Zone.Identifier"
107
107
108
-
# No need to specify -IncludeAlternateFileStreams, it's automatically enabled
108
+
###############################################################################No need to specify -IncludeAlternateFileStreams, it's automatically enabled
109
109
110
110
.EXAMPLE
111
-
# Find all alternate filestreams in the current directory and beyond
112
-
# containing "secret" text in their content
111
+
###############################################################################Find all alternate filestreams in the current directory and beyond
112
+
###############################################################################containing "secret" text in their content
113
113
Find-Item -SearchMask "*:*" -Pattern "secret"
114
114
115
-
# This will find all alternate streams in any file that contain the word "secret"
115
+
###############################################################################This will find all alternate streams in any file that contain the word "secret"
116
116
117
117
.EXAMPLE
118
-
# Find files with Zone.Identifier streams and return them as objects
118
+
###############################################################################Find files with Zone.Identifier streams and return them as objects
119
119
Find-Item "*:Zone*" -PassThru
120
120
121
-
# Returns System.IO.FileInfo.AlternateDataStream objects with full FileInfo compatibility
122
-
#>
121
+
###############################################################################Returns System.IO.FileInfo.AlternateDataStream objects with full FileInfo compatibility
0 commit comments