Skip to content

Instantly share code, notes, and snippets.

@pishangujeniya
Created May 23, 2019 13:35
Show Gist options
  • Save pishangujeniya/387abfee92b6ca7006e3f359c2e12a99 to your computer and use it in GitHub Desktop.
Save pishangujeniya/387abfee92b6ca7006e3f359c2e12a99 to your computer and use it in GitHub Desktop.
How to connect and manage remote IIS Web Server from another machine without using RDP Remote Desktop Connection

Remotely connect to IIS Web Server.

Whenever you want to perform any tasks related to IIS on server you might be starting mstsc aka Remote Desktop Connection RDP for those tasks, but using the facility of remotely managing IIS from client IIS, no need of RDP now and then.

Follow the simple steps on IIS Server and client IIS machine.

Process on Server IIS

  • Run the following commands in powershell on the remote IIS Server
  • Install-WindowsFeature Web-Server
  • Install-WindowsFeature Web-Mgmt-Service
  • Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WebManagement\Server -Name EnableRemoteManagement -Value 1
  • Net Stop WMSVC
  • Net Start WMSVC

Process on Client IIS

  • Install IIS Remote Connection manager
  • On the Client IIS Restart IIS Manager Window
  • You would see one blue world icon under connections
  • Click Connect to a server
  • Enter ip of server
  • Enter username of server
  • Enter password of server
  • Connect
  • Tick all services
  • If asks then click Run one by one for all prompts
  • At the end you would see that server under the list of IIS

Help

@ashish-harsora
Copy link

ashish-harsora commented May 23, 2019

Thanks, you saved my time

@Atreyu-78
Copy link

Atreyu-78 commented Feb 4, 2024

Hello,
many thanks, this guide made my day! :)

In addition, I'd like to suggest to add a last step on the "Server IIS" side:
get-service WMSVC | Set-Service  -StartupType Automatic

It looks like by default its Startup type is not Automatic when the server starts.

KR,
Pablo

@josueds
Copy link

josueds commented May 13, 2024

Great job.
I'm in doubt, does the user need to be in the Administrators group on the IIS server?
I'm looking for a way to not add the user to the Administrators group. Every help is welcome.

@ruipalmeira
Copy link

ruipalmeira commented Aug 21, 2024

I spent 2 hours on a troubleshooting meeting - today, in 2024 - trying to figure out why remote management wasn't working! Network errors were crossed out, it was either a configuration problem or an out-of-date tool (which, basically is the issue this solves).
Thank you for the perfectly clear instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment