Posts

Showing posts from April, 2023

Enable Remote Desktop and open the firewall for Remote Desktop using psexec

 Sure, here's an example script that you can use to enable Remote Desktop and open the firewall for Remote Desktop using psexec: ``` @echo off set /p hostname="Enter the hostname or IP address of the remote computer: " echo Enabling Remote Desktop... psexec \\%hostname% reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f echo Opening Firewall for Remote Desktop... psexec \\%hostname% netsh advfirewall firewall set rule group="remote desktop" new enable=yes pause ``` To run this script as an administrator, you can do the following: 1. Copy and paste into a Notepad file and save it as Enable_RDP.bat. 2. Right-click on the script file and select "Run as administrator". 2. If you are running the script from the command prompt, you can open an elevated command prompt by right-clicking on the Command Prompt shortcut and selecting "Run as administrator", and then navigate to the direct

Though Remote PowerShell turn on Remote Desktop

#$cred = Get-Credential # Enter credentials for the remote system $session = New-PSSession -ComputerName WDPHL19AVA01 #-Credential $cred Invoke-Command -Session $session -ScriptBlock {     Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name 'fDenyTSConnections' -Value 0     Enable-NetFirewallRule -DisplayGroup 'Remote Desktop' Exit-PSSession}

KMS Keys and Media Creation Tool

  Key Management Services (KMS) client activation and product keys for Windows Server and Windows | Microsoft Learn Windows 11 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43 Windows 10 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43 Notice they are the same. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Download the Media Creation Tool Open PowerShell or CMD with Admin Then use this for CMD- MediaCreationTool(10 or 11).exe /Eula Accept /Retail /MediaArch x64 /MediaLangCode en-US /MediaEdition Enterprise And this for PowerShell- .\MediaCreationTool(10 or 11).exe /Eula Accept /Retail /MediaArch x64 /MediaLangCode en-US /MediaEdition Enterprise