This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Commands to allow/disallow through Windows Firewall | |
| # NETSH | |
| netsh firewall set service type = remotedesktop mode = enable | |
| # Registry | |
| REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f | |
| # PowerShell | |
| $FireWall = New-Object -comObject HNetCfg.FwPolicy2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sc query state=all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CMD | |
| ver | |
| # .Net Library - OSVersion property of the System.Environment class | |
| [System.Environment]::OSVersion.Version | |
| # .Net Library - OSVersion property of the Environment class | |
| [Environment]::OSVersion | |
| # Check Registry |
NewerOlder