none
Eliminar Bloatware W10 desde SCCM - Scripting RRS feed

  • Pregunta

  • Buenas,

    Actualmente estamos distribuyendo la ultima versión de Windows en nuestras workstations, con la sorpresa de ver todo el bloatware preinstalado en dicho sistema. Por ello hemos credo el siguiente script para eliminarlo, según nuestras necesidades, así como deshabilitar el auto install online en el futuro:

    Get-AppxPackage *3dbuilder* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *bingfinance* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *bingnews* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *bingsports* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *bingweather* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *getstarted* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *Messaging* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *officehub* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *solitairecollection* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *Office.sway* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *skypeapp* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *windowsalarms* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *windowscommunicationsapps* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *windowsmaps* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *windowsphone* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *XboxApp* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *zunemusic* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *zunevideo* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *contactsupport* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *king.com.CandyCrushSodaSaga* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *Twitter* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *Bing* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *Microsoft.WindowsScan* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *Microsoft.Reader* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *BingNews* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *XboxGameOverlay* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *XboxIdentityProvider* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *XboxSpeechToTextOverlay* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *XboxGamingOverlay* -AllUsers | Remove-AppxPackage
    Get-AppxPackage Microsoft.YourPhone -AllUsers | Remove-AppxPackage
    Get-AppxPackage *TCUI* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *MixedReality* -AllUsers | Remove-AppxPackage
    Get-AppxPackage *wallet* -AllUsers | Remove-AppxPackage
    get-appxpackage *feedback* -AllUsers | remove-appxpackage
    get-appxpackage *Print3D* -AllUsers | remove-appxpackage
    get-appxpackage *Microsoft.OneConnect* -AllUsers | remove-appxpackage

    $Applist | WHere-Object {$_.packagename -like “*3DBuilder*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*BingFinance*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*BingNews*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*BingSports*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*BingWeather*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*Getstarted*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*Messaging*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*MicrosoftOfficeHub*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*MicrosoftSolitaireCollection*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*Sway*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*SkypeApp*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*WindowsAlarms*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*windowscommunicationsapps*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*WindowsMaps*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*WindowsPhone*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*XboxApp*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*ZuneMusic*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*ZuneVideo*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*contactsupport*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*king.com.CandyCrushSodaSaga*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*Twitter*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*Bing*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*Microsoft.WindowsScan*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*Microsoft.Reader*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*BingNews*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*XboxGameOverlay*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*XboxIdentityProvider*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*XboxSpeechToTextOverlay*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*XboxGamingOverlay*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “Microsoft.YourPhone”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*TCUI*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*MixedReality*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*wallet*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*feedback*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*Print3D*”} | Remove-AppxProvisionedPackage -online
    $Applist | WHere-Object {$_.packagename -like “*Microsoft.OneConnect*”} | Remove-AppxProvisionedPackage -online

    El problema que estamos teniendo es que para ejecutarlo en un numero grande de maquinas, hemos pensado en distribuirlo en el SCCM 1802 y la ejecución de scripts:

    https://docs.microsoft.com/es-es/sccm/apps/deploy-use/create-deploy-scripts

    Sin embargo, no parece que haga nada en la maquina y no veo nada en el log del SCCM (que sale como ok la ejecución), sin embargo manualmente en las maquinas de prueba ha funcionado tanto en la versión 1809 como las nuevas 1903 de windows.

    Alguna solución, ayuda o consejo para distribuirlo o hacer troubleshooting del proceso del SCCM?

    Voy a postearlo también en el foro de SCCM, no me equivoco de foro.

    Saludos y gracias,


    Gerardo,

    martes, 27 de agosto de 2019 7:55