SetTimeZoneCommand Constructors Properties HasAccess Id InputObject Name PassThru Methods SetTraceSourceCommand SetVariableCommand SetWmiInstance ShowCommandCommand ShowControlPanelItemCommand ShowEventLogCommand SignatureCommandsBase SoftwareElementState
Get, "Proc")> _ Public Class GetProcCommand Inherits Cmdlet 声明参数 cmdlet 参数使用户能够向 cmdlet 提供输入。 在以下示例中,Get-Proc 和Get-Member 是管道 cmdlet 的名称,MemberType 是Get-Member cmdlet 的参数。 该参数具有参数“property”。 PS> Get-Proc;Get-Member -MemberType 属性...
The time zone names can vary based on the Culture settings in Windows. This example shows the values for a system set toen-US. Example 3 - List all available time zones A full list of Time Zone IDs can be obtained by running the following command: ...
These commands change the system date and time on the computer to the date and time saved in the variable $T. The first command gets the date and stores it in $T. The second command uses the Date parameter to pass the DateTime object in $T to the Set-Date cmdlet. Add 90 minutes to...
WinRM Quick Configuration Running command "Set-WSManQuickConfig" to enable this machine for remote management through WinRM service. This includes: 1. Starting or restarting (if already started) the WinRM service 2. Setting the WinRM service type to auto start 3. Creating a listener to accept...
Invoke-Command Invoke-History New-Module New-ModuleManifest New-PSRoleCapabilityFile New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption Out-Default Out-Host Out-Null Receive-Job Receive-PSSession Register-ArgumentCompleter Register-PSSessionConfiguration Remove-Job Remove-Modul...
Of course, even when a parameter is positional, the parameter name can still be used from the command line.Cmdlet parameters can be defined as mandatory, meaning that they must have a value assigned before the Windows PowerShell runtime will invoke the cmdlet. Alternatively, they can be ...
Of course, even when a parameter is positional, the parameter name can still be used from the command line.Cmdlet parameters can be defined as mandatory, meaning that they must have a value assigned before the Windows PowerShell runtime will invoke the cmdlet. Alternatively, they can be ...
Invoke-Command cmdlet 使用 Microsoft.Exchange 会话配置运行 Set-Mailbox 命令。 ConnectionURI 参数指定 Exchange 服务器终结点的 URL。 凭据参数提交 $LiveCred 变量中保存的凭据。 AuthenticationMechanism 参数指定基本身份验证的使用。 ScriptBlock 参数指定包含命令的脚本块。
1.2.2.CommandLineEventConsumer 当一个事件被传递给它时,在本地系统上下文中启动一个任意进程。此适用于 Windows XP 及更高版本。 1.2.3.LogFileEventConsumer 当事件发送到文本日志文件时,将自定义字符串写入文本日志文件。此适用于 Windows XP 及更高版本。