Enable-HcsRemoteManagement
Enable-HcsRemoteManagement
Enables remote Windows PowerShell management.
Syntax
Parameter Set: Default
Enable-HcsRemoteManagement [-AllowHttp] [-Force] [ <CommonParameters>]
Detailed Description
The Enable-HcsRemoteManagement cmdlet enables remote Windows PowerShell® management for this device. You can manage remotely by using the SSAdmin console session configuration and the Support session configuration. By default, the cmdlet enables remote management over HTTPS only. Specify the AllowHttp parameter to enable remote management over HTTP as well.
To obtain the required certificate for connecting by using HTTPS, use the Get-HcsRemoteManagementCert cmdlet.
For more information about how to run remote commands in Windows PowerShell, type Get-Help about_Remote.
Parameters
-AllowHttp
Indicates that the cmdlet enables remote management over HTTP as well as HTTPS.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Force
Forces the command to run without asking for user confirmation.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
- This cmdlet does not generate any output.
Examples
Example 1: Enable remote management
This command enables remote management for this device. You can manage the device by using HTTP or HTTPS.
PS C:\> Enable-HcsRemoteManagement -AllowHttp