- 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.
26 lines
784 B
PowerShell
26 lines
784 B
PowerShell
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 |