| Posted by: DogMan - 07 July 2026 11:03:52 |
|---|
| After reboot server is not listening for RDP for remote admin anymore - how can I reawaken with powershell remotely? |
| Posted by: sirclesadmin - 07 July 2026 11:05:23 |
|---|
|
If the server is still pingable and responsive on the network but just rejecting RDP connections, you can use PowerShell from your local machine to check the registry, fix the RDP service, and flip the switch to allow connections again. Here is how to get it back online remotely, assuming you have administrative rights over the network. Step 1: Establish a Remote SessionOpen PowerShell as an Administrator on your local machine and target the remote server.
Step 2: Fix the RDP Service and Registry SettingsRun this block to connect via WinRM, ensure the Remote Desktop services are actually running, and force the registry to allow remote connections.
Step 3: Check the Windows FirewallIf the registry was already fine, a firewall profile might have flipped to "Public" on reboot, blocking port 3389. Run this to explicitly open the gates for RDP:
What if WinRM / PSSession is also blocked?If
|
| Posted by: sirclesadmin - 07 July 2026 14:28:17 |
|---|
|
Good catch! The issue isn't a missing parenthesis, but a classic PowerShell quoting trap: inside the script block, the single quotes around the registry paths Here is the exact code cleaned up into a single, cohesive script using standard double quotes for consistency. I have also added an automated check at the end so it explicitly tells you if it succeeded. Just change
|
| Posted by: andrewt2m - 07 July 2026 14:33:37 |
|---|
| It was because the DCs some up later in our case: [code=markup]Log Name: System Source: Microsoft-Windows-TerminalServices-RemoteConnectionManager Date: 06/07/2026 23:32:26 Event ID: 1067 Task Category: None Level: Warning Keywords: Classic User: N/A Computer: SRV2.domain.local Description: The RD Session Host server cannot register 'TERMSRV' Service Principal Name to be used for server authentication. The following error occured: The specified domain either does not exist or could not be contacted. . Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Microsoft-Windows-TerminalServices-RemoteConnectionManager" Guid="{C76BAA63-AE81-421C-B425-340B4B24157F}" EventSourceName="TermService" /> <EventID Qualifiers="49152">1067</EventID> <Version>0</Version> <Level>3</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2026-07-06T22:32:26.5638363Z" /> <EventRecordID>421422</EventRecordID> <Correlation /> <Execution ProcessID="0" ThreadID="0" /> <Channel>System</Channel> <Computer>SRV2.domain.local</Computer> <Security /> </System> <EventData> <Data>The specified domain either does not exist or could not be contacted. </Data> </EventData> </Event>[/code] |