Assembly: Microsoft.PowerShell.Commands.Management.dll Package: Microsoft.PowerShell.Commands.Management v7.4.0Gets or sets the path property, when bound from the pipeline. C++ 复制 public: property System::String ^ LiteralPath { System::String ^ get(); void set(System::String ^ value); ...
Definition Namespace: Microsoft.PowerShell.Commands Assembly: Microsoft.PowerShell.Commands.Management.dll Package: Microsoft.PowerShell.Commands.Management v7.4.0 C++ 複製 public: SetLocationCommand(); Applies to 產品版本 PowerShell SDK 7.2.0, 7.3.0, 7.4.0 Windows PowerShell 5.1.0.0 在...
powershellCopy Code # 在远程计算机上获取注册表项 Invoke-Command -ComputerName "RemoteComputer" -ScriptBlock { Get-ItemProperty -Path "HKLM:\Software\MyApp" } # 在远程计算机上设置注册表值 Invoke-Command -ComputerName "RemoteComputer" -ScriptBlock { Set-ItemProperty -Path "HKLM:\Software\MyApp" ...
90 day inactive user report using PowerShell A "tail -f" equivalent command in Powershell to show real time logging A call to SSPI failed A connection to the directory on which to process the request was unavailable. This is likely a transient condition. A fast way to remove duplicated ...
Module: ExchangePowerShell Applies to: Exchange Server 2010, Exchange Server 2013, Exchange Server 2016, Exchange Server 2019This cmdlet is available only in on-premises Exchange. Use the Set-OwaVirtualDirectory cmdlet to modify existing Outlook on the web virtual directories that are used in ...
This example associates an agent-managed computer named Sever01.Contoso.com with the location Seattle, WA. The first command gets the location object that has the display name of Seattle, WA, and then stores the object in the $Location variable....
PowerShell Copy Set-CsClientPolicy -Identity RedmondClientPolicy -WebServicePollInterval "00:15:00" The command shown in Example 1 modifies the client policy RedmondClientPolicy. In this example, the WebServicePollInterval property is set to 15 minutes (00 hours: 15 minutes: 00 seconds)....
Module: ExchangePowerShell Applies to: Exchange Server 2010, Exchange Server 2013, Exchange Server 2016, Exchange Server 2019, Exchange OnlineThis cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings may be exclusive to one environment or the ...
This command has an alias of gfv.Copy-PSFunctionThis command is designed to solve the problem when you want to run a function loaded locally on a remote computer. Copy-PSFunction will copy a PowerShell function that is loaded in your current PowerShell session to a remote PowerShell ...
PowerShell Invoke-Command-ComputerNameServer01-ScriptBlock{Get-ExecutionPolicy} |Set-ExecutionPolicy TheInvoke-Commandcmdlet is executed at the local computer and sends theScriptBlockto the remote computer. TheComputerNameparameter specifies the remote computer,Server01. TheScriptBlockparameter runsGet-Execu...