还可以使用 Select-Object 和Format-List cmdlet 显示对象的属性值。 Select-Object 和Format-List 各有一个 Property 参数。 可以使用 Property 参数指定一个或多个属性及其值。 也可以使用通配符 (*) 来表示所有属性。 例如,以下命令显示 pwsh.exe 文件的所有属性的值。 PowerShell 复制 Get-ChildItem $PSHOME...
Specific properties can also be selected using a comma-separated list as the value of the Property parameter. PowerShell Copy Get-Service -Name w32time | Select-Object -Property Status, Name, DisplayName, ServiceType Output Copy Status Name DisplayName ServiceType --- --- --- --- Runn...
(Partial results list of printers)"$Printers.ContinuationToken"MyZRVkZCUVVGQlFVRXZMeTh2THk4dkx5OHZMMGxCUVVGQk5IQTRiREY0YWpOdU1DdEtPSG94T1dwUWNHWm5kejA5"$MorePrinters=Get-UPPrinter-ContinuationToken$Printers.ContinuationToken$MorePrinters.Results"(Printer results list continued from previously left off...
Returns a list of SharePoint Embedded applications in the specified tenant. Get-SPOAppPrioritizationPolicies Gets all existing SPO app prioritization policies of your tenancy. Get-SPOBrowserIdleSignOut Used to retrieve the current configuration values for Idle session sign-out policy. Get-SPOBuiltIn...
Changing Windows metric value without the need of logoff/reboot Charting with Powershell Check account properties - DES Check AD accounts from list of samaccountnames in csv Check BitsTransfer Job and Get the status Check Creation Date on File and Send Email if it Doesn't Match Current Date ...
Windows PowerShell Tip: Selecting Items From a List Box Windows PowerShell Tip: Taking Things (Like File Paths) Literally Windows PowerShell Tip: Three Things You Might Not Know About Windows PowerShell Functions Windows PowerShell Tip: Using Calculated Properties Windows PowerShell Tip: Using Test...
Delegate: Reverts the mailbox operations to log for delegate users back to the default list of operations. Owner: Reverts the mailbox operations to log for mailbox owners back to the default list of operations. With on-by-default mailbox auditing in the cloud-based service, a set of mail...
This example shows a summary list of all compliance searches. Example 2 PowerShell Get-ComplianceSearch-Identity"Case 1234"|Format-List This examples show details of the compliance search named Case 1234. Parameters -Case This parameter is available only in the cloud-based service. ...
For a list of the dynamic parameters that a provider supports, see the Help file for the provider. Type: Get-Help <provider-name> For example: PowerShell Get-HelpCertificate Learning about providers Although all provider data appears in drives and you use the same methods to move through them...
To find the properties of aMatchInfoobject, type the following command: Select-String -Path test.txt -Pattern 'test' | Get-Member | Format-List -Property *