< Back
Disable-d00mRdp
Post
NAME Disable-d00mRdp
SYNOPSIS
Disable RDP connections
SYNTAX
Disable-d00mRdp [-ComputerName] <String[]> [[-Credential] <PSCredential>] [<CommonParameters>]
DESCRIPTION
Configures the registry to disallow any RDP connections and disables the Remote Desktop firewall
rule group
PARAMETERS
-ComputerName <String[]>
Required? true
Position? 1
Default value $env:COMPUTERNAME
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Credential <PSCredential>
Required? false
Position? 2
Default value
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:\\>Disable-d00mRdp
This example will configure the registry to disallow RDP connections and disables the
Remote Desktop firewall rule group on the local computer
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Disable-d00mRdp -ComputerName Computer1, Computer2 -Credential (Get-Credential)
This example will configure the registry to disallow RDP connections and disables the
Remote Desktop firewall rule group on the remote computers, Computer1 and Computer2, using
the supplied credentials
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Read-Content C:\\file.txt | Disable-d00mRdp -Credential (Get-Credential)
This example will configure the registry to disallow RDP connections and disables the
Remote Desktop firewall rule group on the computer names found in the file c:\\file.txt,
using the supplied credentials
RELATED LINKS
SYNOPSIS
Disable RDP connections
SYNTAX
Disable-d00mRdp [-ComputerName] <String[]> [[-Credential] <PSCredential>] [<CommonParameters>]
DESCRIPTION
Configures the registry to disallow any RDP connections and disables the Remote Desktop firewall
rule group
PARAMETERS
-ComputerName <String[]>
Required? true
Position? 1
Default value $env:COMPUTERNAME
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Credential <PSCredential>
Required? false
Position? 2
Default value
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:\\>Disable-d00mRdp
This example will configure the registry to disallow RDP connections and disables the
Remote Desktop firewall rule group on the local computer
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Disable-d00mRdp -ComputerName Computer1, Computer2 -Credential (Get-Credential)
This example will configure the registry to disallow RDP connections and disables the
Remote Desktop firewall rule group on the remote computers, Computer1 and Computer2, using
the supplied credentials
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Read-Content C:\\file.txt | Disable-d00mRdp -Credential (Get-Credential)
This example will configure the registry to disallow RDP connections and disables the
Remote Desktop firewall rule group on the computer names found in the file c:\\file.txt,
using the supplied credentials
RELATED LINKS