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:
26
DSC-WindowsServices.ps1
Normal file
26
DSC-WindowsServices.ps1
Normal 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
|
||||
Reference in New Issue
Block a user