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
Copy file name to clipboardExpand all lines: ps-services/Get-ServiceInfo.ps1
+29-18Lines changed: 29 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
FunctionGetServiceInfo {
1
+
FunctionGet-ServiceInfo {
2
2
<#
3
3
.SYNOPSIS
4
4
Retrieves information about services on a specified computer.
5
5
6
6
.DESCRIPTION
7
-
This function retrieves information about services on a local or remote computer, allows filtering by service name, provides options to include or exclude stopped and manually started services, and supports various output formats.
7
+
Retrieves information about services on a local or remote computer, allows filtering by service name, provides options to include or exclude stopped and manually started services, and supports various output formats.
8
8
9
9
.PARAMETERComputerName
10
10
NotMandatory - name of the computer on which to retrieve the service information. If not provided, the local computer is used by default.
@@ -13,7 +13,7 @@ Function GetServiceInfo {
13
13
.PARAMETERUserName
14
14
NotMandatory - username to use for authentication when retrieving service information from a remote computer.
15
15
.PARAMETERPassword
16
-
NotMandatory - password to use for authentication when retrieving service information from a remote computer. The password should be provided as a SecureString object.
16
+
NotMandatory - password to use for authentication when retrieving service information from a remote computer, should be provided as a SecureString object.
17
17
.PARAMETERPingBefore
18
18
NotMandatory - indicates whether to ping the specified computer before retrieving the services. This can be useful to verify the computer's availability before performing the operation.
19
19
.PARAMETERIncludeStopped
@@ -25,49 +25,55 @@ Function GetServiceInfo {
25
25
.PARAMETERProcessAsJob
26
26
NotMandatory - executes the retrieval of service information as a background job. This allows for parallel processing and asynchronous execution.
27
27
.PARAMETERFormatAsTable
28
-
NotMandatory - the output as a table. If specified, the output is displayed in a table format.
28
+
NotMandatory - the output as a table, if specified, the output is displayed in a table format.
29
29
.PARAMETERExportCsvPath
30
30
NotMandatory - specifies the path to export the retrieved service information as a CSV file.
31
+
.PARAMETERFilterWildcard
32
+
NotMandatory - a wildcard pattern used to filter services based on their display names, only services with display names matching the pattern will be included in the output.
0 commit comments