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:
13
PS-InstallApps.ps1
Normal file
13
PS-InstallApps.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
# Check if msstore source exists before trying to remove it
|
||||
$msstoreSource = winget source list | Select-String "msstore"
|
||||
if ($msstoreSource) {
|
||||
Write-Host "Removing msstore source..." -ForegroundColor Yellow
|
||||
winget source remove msstore
|
||||
} else {
|
||||
Write-Host "msstore source is already removed or not found." -ForegroundColor Green
|
||||
}
|
||||
|
||||
winget import -i .\winget.json
|
||||
winget pin add Discord.Discord
|
||||
winget pin add Brave.Brave
|
||||
|
||||
Reference in New Issue
Block a user