Comprehensive PowerShell deployment scripts for automated configuration of Windows Server 2025 and Windows 11 systems. These standalone scripts provide complete, production-ready setup for Hyper-V hosts, domain controllers, application servers, and workstations.
IMPORTANT: These scripts are designed exclusively for:
- Windows Server 2025 (21H2 or later)
- Windows 11 (22H2 or later)
The scripts utilize WinGet package manager and modern PowerShell features only available in these versions.
| Script | Purpose | Target System |
|---|---|---|
Setup-HyperVHost-Standalone.ps1 |
Complete Hyper-V host with SET networking | Server 2025 |
Setup-DomainController-Standalone.ps1 |
Domain Controller with AD DS prep | Server 2025 |
Setup-AppServer-Standalone.ps1 |
Application server with IIS/SQL options | Server 2025 |
Setup-BackupServer-Standalone.ps1 |
Backup/DR server with Hyper-V & Storage Spaces | Server 2025 |
Setup-Workstation-Standalone.ps1 |
Windows 11 with debloat and optimization | Windows 11 |
# Basic setup with all defaults
.\Setup-HyperVHost-Standalone.ps1
# Custom setup with specific options
.\Setup-HyperVHost-Standalone.ps1 `
-TeamsOf 4 ` # Create SET teams with 4 NICs each
-AutoNICTeaming ` # Auto-team by PCIe card
-SkipBitLocker ` # Skip BitLocker configuration
-SkipWindowsUpdate # Skip Windows Updates# Basic DC preparation
.\Setup-DomainController-Standalone.ps1
# With AD DS installation
.\Setup-DomainController-Standalone.ps1 `
-InstallADDS ` # Install AD DS role
-DomainName "corp.local" ` # Specify domain name
-NetBIOSName "CORP" # Specify NetBIOS name# Basic app server
.\Setup-AppServer-Standalone.ps1
# Full stack with IIS and SQL
.\Setup-AppServer-Standalone.ps1 `
-InstallIIS ` # Install IIS with all features
-InstallSQL ` # Install SQL Server Express
-InstallDotNet # Install all .NET versions# Basic backup server with Hyper-V and Storage Spaces
.\Setup-BackupServer-Standalone.ps1
# Custom configuration
.\Setup-BackupServer-Standalone.ps1 `
-StorageRedundancy "rrs" ` # Rack-redundant storage
-SkipNetworkTeaming ` # Skip network teaming
-InstallVeeam # Prepare for Veeam installation
# Note: Includes Hyper-V for Instant VM Recovery and testing# Basic workstation setup
.\Setup-Workstation-Standalone.ps1
# Full optimization and debloat
.\Setup-Workstation-Standalone.ps1 `
-RemoveDefaultApps ` # Remove Windows bloatware
-RemoveOneDrive ` # Completely remove OneDrive
-AggressiveDebloat ` # Maximum optimization
-SkipBitLocker # Skip BitLocker-SkipWindowsUpdate- Skip Windows Update installation-LogPath- Custom log file path (default:.\Logs\)
-TeamsOf- Number of NICs per SET team (2 or 4)-AutoNICTeaming- Auto-create teams by PCIe card-SkipNetworkTeaming- Skip SET team configuration-SkipBitLocker- Skip BitLocker configuration
-SkipDebloat- Skip all debloat operations-RemoveDefaultApps- Remove default Windows apps-RemoveOneDrive- Completely remove OneDrive-AggressiveDebloat- Maximum performance optimization
- Intelligent NIC Teaming: PCIe-aware SET team creation with visual port mapping
- Storage Configuration: Automatic partition setup for boot/data separation
- Dell Hardware Support: Auto-installs OpenManage on Dell servers
- Hyper-V Optimization: Configures storage paths and virtual switch settings
- AD DS Preparation: Full Active Directory setup guidance
- DNS Configuration: Automatic DNS role installation
- DHCP Option: Optional DHCP server installation
- Security Baseline: Implements DC security best practices
- IIS Configuration: Complete web server setup with all features
- SQL Server Express: Optional database server installation
- .NET Framework: All versions including 3.5 and 4.8
- Application Directories: Creates standard app deployment structure
- Privacy Protection: Blocks telemetry and tracking
- Performance Optimization: SSD detection and tuning
- Bloatware Removal: Removes unnecessary Windows apps
- Security Hardening: Disables unnecessary services
All scripts use WinGet (Windows Package Manager) for software installation:
# Applications installed via WinGet:
- Mozilla Firefox
- 7-Zip
- Visual Studio Code
- Visual C++ Redistributables
- Google Chrome (workstations)
- Adobe Reader (workstations)
- VLC Media Player (workstations)
- Notepad++ (all systems)
- Git (app servers)For custom applications with hard-coded URLs (Dell tools, etc.), the scripts download directly from vendor URLs.
- Firewall: Scripts disable Windows Firewall - re-enable after configuration
- BitLocker: Optional on all systems (use
-SkipBitLockerto bypass) - Telemetry: Workstation script blocks tracking (can skip with
-SkipDebloat) - Updates: Always install latest updates unless explicitly skipped
All scripts generate detailed logs:
- Default location:
.\Logs\[ScriptName]-Standalone-[Timestamp].log - Custom location: Use
-LogPathparameter - Includes all actions, errors, and warnings
- Color-coded console output for easy monitoring
- Use interactive mode (default) to ensure adjacent ports are teamed
- Connect ports on the same PCIe card for optimal performance
- Create separate teams for management and VM traffic
- Answer "y" for dedicated boot disk if you have separate OS/Data drives
- Script auto-creates D: drive for data/VMs
- Hyper-V VMs automatically stored on D: if available
NIC Teaming Fails
- Ensure Hyper-V role is installed first
- Check that all NICs are on compatible firmware
- Verify network cables are properly connected
WinGet Not Found
- Confirm Windows 11/Server 2025 version
- Run
winget --versionto verify installation - Install App Installer from Microsoft Store if missing
BitLocker Errors
- Verify TPM 2.0 is enabled in BIOS
- Check that drives are not already encrypted
- Use
-SkipBitLockerif TPM unavailable
- v2.0 - Consolidated standalone scripts, WinGet integration
- v1.5 - Enhanced NIC teaming with PCIe detection
- v1.0 - Initial modular script collection
Property of DTC Inc. Internal use only.
For issues or questions:
- Review log files first (
.\Logs\) - Check Windows Event Viewer for system errors
- Ensure you're running as Administrator
- Verify Windows 11/Server 2025 compatibility
Note: These scripts make significant system changes. Always test in a non-production environment first and ensure you have proper backups before running on production systems.