PowerShell Scripting ab Windows Win 8.1
Inhalt:
Win 8.1 / 10 Default-Apps im aktuellen Benutzer deinstallieren
Get-AppxPackage -User $env:USERNAME | Where-Object -FilterScript { `
($PSItem.Architecture -cne "neutral") -and `
($PSItem.IsFramework -ne "True") -and `
($PSItem.Name -ne "Microsoft.WindowsStore") -and ` # AppStore
($PSItem.Name -ne "Microsoft.ConnectivityStore") -and ` # AppStore Hilfs-App / unsichtbar in der GUI
($PSItem.Name -ne "Microsoft.Appconnector") -and ` # App-Verbinder
($PSItem.Name -ne "Microsoft.WindowsDVDPlayer") -and ` # Windows DVD-Player
($PSItem.Name -ne "Microsoft.Getstarted") -and ` # Erste Schritte / Get Started
($PSItem.Name -ne "Microsoft.WindowsAlarms") -and ` # Alarm & Uhr
($PSItem.Name -ne "Microsoft.WindowsCamera") -and ` # Kamera
($PSItem.Name -ne "Microsoft.WindowsSoundRecorder") -and ` # Sprachrekorder
($PSItem.Name -ne "Microsoft.WindowsCalculator") ` # Calculator / Taschenrechner
} | Remove-AppxPackage -ErrorAction Continue
Win 8.1 / 10 Default-Apps in ALLEN Profilen und zukünftigen Profilen deinstallieren.
Get-AppxPackage -AllUsers | Where-Object -FilterScript { `
($PSItem.Architecture -cne "neutral") -and `
($PSItem.IsFramework -ne "True") -and `
($PSItem.Name -ne "Microsoft.WindowsStore") -and ` # AppStore
($PSItem.Name -ne "Microsoft.ConnectivityStore") -and ` # AppStore Hilfs-App / unsichtbar in der GUI
($PSItem.Name -ne "Microsoft.Appconnector") -and ` # App-Verbinder
($PSItem.Name -ne "Microsoft.WindowsDVDPlayer") -and ` # Windows DVD-Player
($PSItem.Name -ne "Microsoft.Getstarted") -and ` # Erste Schritte / Get Started
($PSItem.Name -ne "Microsoft.WindowsAlarms") -and ` # Alarm & Uhr
($PSItem.Name -ne "Microsoft.WindowsCamera") -and ` # Kamera
($PSItem.Name -ne "Microsoft.WindowsSoundRecorder") -and ` # Sprachrekorder
($PSItem.Name -ne "Microsoft.WindowsCalculator") ` # Calculator / Taschenrechner
} | Remove-AppxPackage -ErrorAction Continue
Get-AppXProvisionedPackage -online | Where-Object -FilterScript { `
($PSItem.DisplayName -ne "Microsoft.WindowsStore") -and `
($PSItem.DisplayName -ne "Microsoft.ConnectivityStore") -and `
($PSItem.DisplayName -ne "Microsoft.Appconnector") -and `
($PSItem.DisplayName -ne "Microsoft.WindowsDVDPlayer") -and ` # Windows DVD-Player
($PSItem.DisplayName -ne "Microsoft.XboxGameCallableUI") -and `
($PSItem.DisplayName -ne "Microsoft.XboxIdentityProvider") -and `
($PSItem.DisplayName -ne "Microsoft.WindowsAlarms") -and `
($PSItem.DisplayName -ne "Microsoft.WindowsCamera") -and `
($PSItem.DisplayName -ne "Microsoft.WindowsSoundRecorder") -and `
($PSItem.DisplayName -ne "Microsoft.Getstarted") -and`
($PSItem.DisplayName -ne "Microsoft.WindowsCalculator") `
} | Remove-AppxProvisionedPackage -online -ErrorAction Continue