“Fix Tech Daily helps you solve real-world IT problems, with daily tips on Windows, Office, networks, and devices.”
Wednesday, August 6, 2025
Enable Application and Virtualization Services on windows servers
🔹 Part 1: Install and Configure Hyper-V for Client VMs
✅ Method A: Using Server Manager (GUI)
-
Open Server Manager
-
Click Manage > Add Roles and Features
-
Choose Role-based or feature-based installation
-
Select your server from the list
-
In Server Roles, check Hyper-V
-
Add required features when prompted
-
On Virtual Switches screen, configure:
-
External switch (connected to NIC)
-
Internal/Private (for isolated networks)
-
-
Proceed and click Install
-
Reboot the server
✅ Method B: Using PowerShell
powershellInstall-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
After reboot:
powershell# Create External Virtual Switch New-VMSwitch -Name "ClientNet" -NetAdapterName "Ethernet" -AllowManagementOS $true
✅ Create and Configure Virtual Machines
-
Open Hyper-V Manager
-
Click New > Virtual Machine
-
Use the wizard to:
-
Name VM (e.g., Client1-VM)
-
Assign generation (Gen 1 or Gen 2)
-
Allocate memory
-
Connect to virtual switch
-
Create new VHD (e.g., 60GB)
-
Mount ISO (Windows Server or Client OS)
-
-
Finish and start the VM
-
Install OS inside the VM
🔹 Part 2: Set Up Remote Desktop Services (RDS)
✅ Method A: Using Server Manager
-
Open Server Manager
-
Go to Manage > Add Roles and Features
-
In Installation Type, choose:
-
Remote Desktop Services Installation
-
-
Choose Quick Start or Standard Deployment
-
Select server to install roles:
-
RD Connection Broker
-
RD Session Host
-
RD Web Access
-
-
Proceed and click Install
-
After install, reboot if prompted
✅ Enable RDP Access for Users
-
Go to System > Remote Desktop Settings
-
Enable Allow remote connections
-
Add specific users under Select users
-
Open Windows Firewall > Inbound Rules:
-
Allow Remote Desktop (TCP-In)
-
✅ Method B: PowerShell Install
powershellInstall-WindowsFeature -Name RDS-RD-Server
Then configure user/group access and firewall rules.
🔹 Part 3: Web Application Hosting (IIS)
✅ Method A: Using Server Manager (Install IIS)
-
Go to Manage > Add Roles and Features
-
In Server Roles, select Web Server (IIS)
-
Add features like:
-
ASP.NET, WebSocket, Management Tools (optional)
-
-
Click Next > Install
✅ Create New Website in IIS
-
Open IIS Manager (
inetmgr
) -
Right-click Sites > Add Website
-
Enter:
-
Site Name:
Client1WebApp
-
Physical Path:
C:\inetpub\Client1
-
Binding:
http
, choose port (default 80 or custom)
-
-
Start the site
✅ Assign Site to Application Pool
-
In IIS Manager, go to Application Pools
-
Create new app pool for each client (e.g.,
Client1AppPool
) -
Assign app pool to corresponding site
🔒 Part 4: Application Isolation & Secure Access
✅ Option A: Use Separate VMs or App Pools Per Client
-
Each client runs in a separate Hyper-V VM
-
Web apps use separate application pools
-
RDS sessions are controlled via GPO or RD Licensing
✅ Option B: Use Firewall Rules for Access Control
Use PowerShell or GUI to restrict access by IP or subnet:
powershellNew-NetFirewallRule -DisplayName "Allow Client1 Access to WebApp" ` -Direction Inbound -Protocol TCP -LocalPort 80 ` -RemoteAddress 192.168.10.0/24 -Action Allow
✅ Option C: Configure User Groups and File Security
-
Create AD Groups:
Client1-WebAdmins
,Client2-RDP-Users
, etc. -
Set folder NTFS and IIS path permissions
-
Use GPOs to restrict RDP access or start-up programs
🛠 Suggested Tools for Management
Task | Tool |
---|---|
VM Management | Hyper-V Manager |
Web Hosting | IIS Manager |
Remote Desktop | RD Licensing & Gateway |
Isolation | GPO, NTFS, Firewall |
Monitoring | Windows Admin Center |