Add DSC configurations for user interface, Windows features, and services; implement app installation and removal scripts

- Created `DSC-UserInterfaceConfiguration.ps1` to manage user interface settings via registry changes.
- Developed `DSC-WindowsFeatures.ps1` to install OpenSSH Client and enable NFS Client features.
- Implemented `DSC-WindowsServices.ps1` to ensure Terminal Services are running and set to automatic startup.
- Added `PS-InstallApps.ps1` to manage app installations and remove the msstore source if it exists.
- Created `PS-RemoveApps.ps1` to remove unwanted apps, provisioned packages, and handle Office applications via winget.
This commit is contained in:
2025-09-28 11:59:28 -05:00
parent 7e9ad6b9eb
commit 79df17763a
11 changed files with 1842 additions and 360 deletions

26
DSC-WindowsServices.ps1 Normal file
View File

@@ -0,0 +1,26 @@
Configuration WindowsServices {
Import-DscResource -ModuleName PSDesiredStateConfiguration
Node localhost {
# === REMOTE DESKTOP SERVICES ===
# Enable Terminal Services (Remote Desktop)
Service TerminalServices {
Name = "TermService"
State = "Running"
StartupType = "Automatic"
}
# === ADDITIONAL SERVICES CONFIGURATION ===
# Note: Other services from the registry.csv could be added here
# if they were service-related rather than registry-based
}
}
# Generate the MOF file
WindowsServices -OutputPath "\temp\DSC\WindowsServices"
# Apply the configuration
Start-DscConfiguration -Path "\temp\DSC\WindowsServices" -Wait -Verbose -Force