< Back
Set-RDPStatus
Post
NAME Set-RDPStatus
SYNOPSIS
SYNTAX
Set-RDPStatus [-Action] <String> [[-ComputerName] <String[]>] [<CommonParameters>]
DESCRIPTION
The function Set-RDPStatus can enable or disable RDP remotely
PARAMETERS
-Action <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ComputerName <String[]>
Specifies the ComputerName
Required? false
Position? 2
Default value $env:COMPUTERNAME
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-RDPStatus -Action Enable -ComputerName "SRV-01"
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-RDPStatus -Action Enable -ComputerName "SRV-01","SRV-02","SRV-03"
RELATED LINKS
SYNOPSIS
SYNTAX
Set-RDPStatus [-Action] <String> [[-ComputerName] <String[]>] [<CommonParameters>]
DESCRIPTION
The function Set-RDPStatus can enable or disable RDP remotely
PARAMETERS
-Action <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ComputerName <String[]>
Specifies the ComputerName
Required? false
Position? 2
Default value $env:COMPUTERNAME
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-RDPStatus -Action Enable -ComputerName "SRV-01"
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-RDPStatus -Action Enable -ComputerName "SRV-01","SRV-02","SRV-03"
RELATED LINKS