Benutzer mit den meisten Antworten
Powershell Skript funktiniert nur bei manueller Ausführung

Frage
-
Guten Tag!
Ich habe ein für mich nicht verständliches Fehlerbild:
Ich führe ein PowerShell Skript als Benutzer aus, alles klappt. Ich führe es automatisiert per Startskript aus - Fehler Fehler Fehler.
Gestartet wird per bat:
call powershell \\server\skripts\appentfernengezielt.ps1 >> c:\ec\logs\computerstart_appsentfernen.txt -noninteractive
Dieses Skript:
Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Bing*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*3DViewer*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*MicrosoftSolitaireCollection*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Feedback*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*ppip*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*sway*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*SkypeApp*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*fitne*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*support*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*soundre*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*readinglist*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*windowscommunicationsapps*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Messaging_*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*OfficeHub*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Music*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*StickyNotes*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*OneNote*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*OneConnect*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*People_*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*SkypeApp*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Wallet_*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*WindowsFeedbackHub*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Xbox*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Zune*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Maps*"} | remove-appxprovisionedpackage –online Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*WindowsPhone*"} | remove-appxprovisionedpackage –online
Starte ich die BAT aus dem CMD läuft alles richtig, starte ich die BAT über GPO Startupskripts habe ich folgendes in der Ausgabedatei:
Get-appxprovisionedpackage : Fehler bei "DismOpenSession". Fehlercode: 0x80040154 In \\server\skripts\appentfernengezielt.ps1:1 Zeichen:1 + Get-appxprovisionedpackage -online | where-object {$_.packagename -li ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-AppxProvisionedPackage], COMException + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetAppxProvisionedPackag eCommand Get-appxprovisionedpackage : Fehler bei "DismOpenSession". Fehlercode: 0x80040154 In \\server\skripts\appentfernengezielt.ps1:2 Zeichen:1 + Get-appxprovisionedpackage -online | where-object {$_.packagename -li ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-AppxProvisionedPackage], COMException + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetAppxProvisionedPackag eCommand
ich verstehe es nicht und bitte um Hilfe!
Antworten
-
Hallo Daniel,
leider kann ich die Fehlermeldung nicht wirklich nachvollziehen, aber versuch es mal bitte wie folgt:
Im GPO unter "Richtlinien --> Windows-Einstellungen --> Scripts --> Anmelden" anstelle des direkten Befehls eine .cmd/.bat eintragen.
In die .cmd/.bat schreibst Du folgendes:
start powershell.exe -ExecutionPolicy Bypass -Command "\\FQDN\netlogon\Deine.ps1"
MfG, Jannik
- Als Antwort markiert Yavor TanevMicrosoft contingent staff Donnerstag, 7. September 2017 08:31
Alle Antworten
-
Hallo Daniel Schmatz 1,
Du musst erst das ausführen von Skripten erlauben.
Hier eine gute Anleitung die mir auch sehr geholfen hat:
Das Problem ist das die eigens Erstellten Scripte natürlich noch nicht von Microsoft Signiert wurden also muss du die Berechtigungen bearbeiten oder du musst das Script signieren.
-
Danke für die Antwort!
Das mit den Rechten habe ich mitbekommen, nur: es WIRD ja ausgeführt, sonst würde ja keine Powershellmeldung die "get...." als nicht deklariert ausgibt kommen? - und es läuft ja auch mehrere Minuten im Hintergrund.
Ich werde testweise alle Skripte erlauben und melde mich wieder....
-
Hallo nochmal: nein, an den Berechtigungen scheitert es nicht - auch wenn NORESTRICTION definiere bleibt das Problem gleich.
Fehler:
Get-appxprovisionedpackage : Fehler bei "DismOpenSession". Fehlercode: 0x80040154 In \\server\skripts\appentfernengezielt.ps1:1 Zeichen:1 + Get-appxprovisionedpackage -online | where-object {$_.packagename -li ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-AppxProvisionedPackage], COMException + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetAppxProvisionedPackag eCommand
- Bearbeitet Daniel Schmatz 1 Donnerstag, 31. August 2017 16:15
-
Hallo Daniel,
leider kann ich die Fehlermeldung nicht wirklich nachvollziehen, aber versuch es mal bitte wie folgt:
Im GPO unter "Richtlinien --> Windows-Einstellungen --> Scripts --> Anmelden" anstelle des direkten Befehls eine .cmd/.bat eintragen.
In die .cmd/.bat schreibst Du folgendes:
start powershell.exe -ExecutionPolicy Bypass -Command "\\FQDN\netlogon\Deine.ps1"
MfG, Jannik
- Als Antwort markiert Yavor TanevMicrosoft contingent staff Donnerstag, 7. September 2017 08:31
-
Hi, ich versuche das gleiche wie Daniel, nämlich ne App-Deinstallation beim Starten von Windows. Ich rufe bereits das ps1 mit ner bat auf, um exakt wie von dir beschrieben die ExecutionPolicy herabzusetzen. Leider komme ich trotzdem nicht weiter, der PC hängt beim Hochfahren an exakt diesem Punkt. Das erzeugte Log sagt mir ebenfalls DismOpenSession Fehlercode 0x80040154. Ich hab jetzt schon woanders gelesen dass es daran liegt, dass DISM noch gar nicht geladen ist an diesem Punkt oder ein für diesen Vorgang benötigter Dienst noch nicht läuft, aber ne richtige Lösung konnte ich auch noch nicht auftun.
Hat noch jemand ne Idee?
-
Hallo!
Ich möchte rückmelden:
a) witzig dass hier bei MS immer Beiträge als Antwort markiert werden und finde es spannend dass das Antwort markieren nicht VOM ERSTELLER des ersten Beitrags geschehen muss. Das ist ähnlich sonderbar wie der Umgang mit dem ganzen Appsystem.
b) es ist bedenklich, dass man viele Apps nicht normal entfernen kann - zB dass einem XBOX mit Windows 10 aufgezwungen wird sehr bedenklich - Windows bewegt sich zunehmend weg vom "arbeitenden" Kunden hin zum "Enduserschmarrn" - Schade - ich fand das Konzept "Windows 2000" wo man Server und Client zeitgleich veröffentlichte sehr gut und das hat damals echt funktioniert (von Elsa Treibern abgesehen)
zurück zum Thema:
c) für alle die sich freundlicher Weise konstruktiv beteiligen möchte ich das auch wieder versuchen:
Da wir Schulbedingt jetzt im Produktivbetrieb sind, muss ich mit meinen Versuchen vorsichtig sein. Derzeit verfolge ich mehrere Ansätze die spannender Weise Benutzer und Rechnerabhängig manchmal funktionieren und manchmal nicht - es sei erwähnt dass eigentlich vor einem Monat alle Rechner von 2 Images geklont wurden und sich 65 Rechner sehr unterschiedlich verhalten. Einziges was ich NICHT auf allen Maschinen genau gleich gemacht habe, waren die Versuche das Startmenü per Layout zu definieren - ich denke damit haben auch schon mehrere hier Ihre Erfahrungen gemacht.
Derzeit mache ich das beim Rechnerstart per Skript in der GPO:
in der BAT Datei die aufgerufen wird mit Prüfung und Infoordnererstellung damit es pro Rechner nur 1x läuft:
:: ############### PowerShell Skirpt dass unerwünschte Apps am Rechner entfernt ANFANG :: ACHTUNG: Das Skript läuft bis zu 2 Stunden! :Appentfernung if exist "c:\ec\appsentfernt20170830" GOTO Appende rem call powershell \\server\skripts\appentfernen_pc.ps1 -noninteractive >> c:\ec\logs\appentfernen_pc.ps1.txt start powershell.exe -ExecutionPolicy Bypass "\\server\skripts\appentfernen_pc.ps1" rd "c:\ec\appsentfernt20170829" md "c:\ec\appsentfernt20170830" :Appende :: ############### PowerShell Skirpt dass unerwünschte Apps am Rechner entfernt ENDE
in der appentfernen_pc.ps1 mache ich das:
Get-appxpackage -allusers *3dbuilder* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*3dbuilder*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *windowsalarms* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*windowsalarms*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *Appconnector* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Appconnector*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *Asphalt8Airborne* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Asphalt8Airborne*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *windowscommunicationsapps* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*windowscommunicationsapps*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *CandyCrushSodaSaga* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*CandyCrushSodaSaga*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *DrawboardPDF* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*DrawboardPDF*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *Facebook* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Facebook*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *FarmVille2CountryEscape* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*FarmVille2CountryEscape*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *WindowsFeedbackHub* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*WindowsFeedbackHub*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *officehub* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*officehub*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *skypeapp* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*skypeapp*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *getstarted* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*getstarted*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *zunemusic* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*zunemusic*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *windowscommunicationsapps* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*windowscommunicationsapps*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *windowsmaps* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*windowsmaps*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *Messaging* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Messaging*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *solitairecollection* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*solitairecollection*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *Wallet* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Wallet*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *ConnectivityStore* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*ConnectivityStore*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *MinecraftUWP* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*MinecraftUWP*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *bingfinance* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*bingfinance*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *zunevideo* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*zunevideo*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *Netflix* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Netflix*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *bingnews* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*bingnews*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *onenote* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*onenote*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *OneConnect* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*OneConnect*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *PandoraMediaInc* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*PandoraMediaInc*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *people* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*people*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *CommsPhone* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*CommsPhone*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *windowsphone* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*windowsphone*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *photos* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*photos*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *SkypeApp* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*SkypeApp*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *bingsports* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*bingsports*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *MicrosoftStickyNotes* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*MicrosoftStickyNotes*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *Office.Sway* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Office.Sway*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *getstarted* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*getstarted*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *Twitter* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Twitter*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *Microsoft3DViewer* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*Microsoft3DViewer*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *soundrecorder* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*soundrecorder*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *bingweather* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*bingweather*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *ppip* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*ppip*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *holographic* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*holographic*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *contactsupport* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*contactsupport*"} | remove-appxprovisionedpackage –online Get-appxpackage -allusers *xbox* | Remove-AppxPackage Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*xbo*"} | remove-appxprovisionedpackage –online
Pro Benutzer mache ich das per Startskript in der GPO (ersteres setzt die Apps Paint3D und Calculater zurück da wir die verwenden und die bei jedem neuen Benutzer nicht funktionieren):
:: ############### PowerShell Skirpt dass unsere Apps für User reparieren soll ANFANG call powershell "\\server\skripts\appreparatur_user.ps1" -noninteractive >> "c:\ec\logs\appreparatur_user.ps1.txt" rem start powershell.exe -ExecutionPolicy Bypass "\\server\skripts\appreparatur_user.ps1" :: ############### PowerShell Skirpt dass unsere Apps für User reparieren soll ANFANG :: ############### PowerShell Skirpt dass unsere Apps für User entfernt ANFANG call powershell "\\server\skripts\appentfernen_user.ps1" -noninteractive >> "c:\ec\logs\appentfernen_user.ps1.txt" rem start powershell.exe -ExecutionPolicy Bypass "\\server\skripts\appentfernen_user.ps1" :: ############### PowerShell Skirpt dass unsere Apps für User entfernt ENDE
das mache ich in der appreparatur_user.ps1
Get-AppXPackage *calculator* | Foreach {Add-AppxPackage -DisableDevelopmentMode -ForceApplicationShutdown -Register "$($_.InstallLocation)\AppXManifest.xml"} Get-AppXPackage *paint* | Foreach {Add-AppxPackage -DisableDevelopmentMode -ForceApplicationShutdown -Register "$($_.InstallLocation)\AppXManifest.xml"} Get-AppXPackage *photos* | Foreach {Add-AppxPackage -DisableDevelopmentMode -ForceApplicationShutdown -Register "$($_.InstallLocation)\AppXManifest.xml"} Get-AppXPackage *camera* | Foreach {Add-AppxPackage -DisableDevelopmentMode -ForceApplicationShutdown -Register "$($_.InstallLocation)\AppXManifest.xml"}
und das - ich glaube das wichtigste - in der appentfernen_user.ps1
Get-AppxPackage *Microsoft3DViewer* | Remove-AppxPackage Get-AppxPackage *WindowsAlarms* | Remove-AppxPackage Get-AppxPackage *Appconnector* | Remove-AppxPackage Get-AppxPackage *Asphalt8Airborne* | Remove-AppxPackage Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage Get-AppxPackage *CandyCrushSodaSaga* | Remove-AppxPackage Get-AppxPackage *DrawboardPDF* | Remove-AppxPackage Get-AppxPackage *Facebook* | Remove-AppxPackage Get-AppxPackage *FarmVille2CountryEscape* | Remove-AppxPackage Get-AppxPackage *WindowsFeedbackHub* | Remove-AppxPackage Get-AppxPackage *officehub* | Remove-AppxPackage Get-AppxPackage *Microsoft.SkypeApp* | Remove-AppxPackage Get-AppxPackage *Getstarted* | Remove-AppxPackage Get-AppxPackage *ZuneMusic* | Remove-AppxPackage Get-AppxPackage *WindowsMaps* | Remove-AppxPackage Get-AppxPackage *Messaging* | Remove-AppxPackage Get-AppxPackage *MicrosoftSolitaireCollection* | Remove-AppxPackage Get-AppxPackage *Wallet* | Remove-AppxPackage Get-AppxPackage *ConnectivityStore* | Remove-AppxPackage Get-AppxPackage *MinecraftUWP* | Remove-AppxPackage Get-AppxPackage *bingfinance* | Remove-AppxPackage Get-AppxPackage *ZuneVideo* | Remove-AppxPackage Get-AppxPackage *Netflix* | Remove-AppxPackage Get-AppxPackage *BingNews* | Remove-AppxPackage Get-AppxPackage *OneNote* | Remove-AppxPackage Get-AppxPackage *OneConnect* | Remove-AppxPackage Get-AppxPackage *PandoraMediaInc* | Remove-AppxPackage Get-AppxPackage *People* | Remove-AppxPackage Get-AppxPackage *CommsPhone* | Remove-AppxPackage Get-AppxPackage *windowsphone* | Remove-AppxPackage Get-AppxPackage *Photos* | Remove-AppxPackage Get-AppxPackage *SkypeApp* | Remove-AppxPackage Get-AppxPackage *bingsports* | Remove-AppxPackage Get-AppxPackage *MicrosoftStickyNotes* | Remove-AppxPackage Get-AppxPackage *Office.Sway* | Remove-AppxPackage Get-AppxPackage *Getstarted* | Remove-AppxPackage Get-AppxPackage *Twitter* | Remove-AppxPackage Get-AppxPackage *soundrecorder* | Remove-AppxPackage Get-AppxPackage *bingweather* | Remove-AppxPackage Get-AppxPackage *ppip* | Remove-AppxPackage Get-AppxPackage *holographic* | Remove-AppxPackage Get-AppxPackage *contactsupport* | Remove-AppxPackage Get-AppxPackage *Xbox* | Remove-AppxPackage
Folgendes passiert dann wirklich:
- Das Rechner Skript läuft wie oben angemerkt bis zu 2 Stunden im Hintergrund. Deshalb habe ich diesen Datumschalter in das Skript eingebaut damit ich per Datumsänderung das Skript noch einmal bzw neu laufen Lassen kann (Windows Upgrade etc). Ich lasse das meistens Nacht passieren indem ich nach Schulschluss die Rechner per Skirpt alle starte.
- Das Benutzerskript läuft sehr schnell durch. Wenn sich der Benutzer anmeldet finden sich noch alle Apps (ja obwohl die vom Rechner seit Wochen entfernt sind und sowieso nicht funktionieren) meistens im Startmenü. In den nächsten Minuten nach der Anmeldung verschwinden sie dann OFT - nicht IMMER - denn wirklich funktionieren tut die Sache nicht - so wie das Startmenü ja auch.
- Wichtig für mich war, dass der Calculator läuft (nein, ich habe die Windows 7 Version nicht auf die Rechner verteilt - noch nicht?!) und dass tut der jetzt zuverlässig.
Wie geschrieben: keine Expertenlösung. Ich hoffe dass viele große Firmen bei MS darauf bestehen werden dass
a) die GPOs nicht immer weniger werden
b) die GPOs auch wirklich funktionieren und richtig dokumentiert sind (also nicht den selben Text im File haben für aktivieren und deaktivieren)
c) das Startmenü einfach gestaltbar und zuverlässig laufend ist (wozu wir da eine aktive Datenbank gebraucht haben?!)
d) die Apps so verwaltbar sind wie normale Anwendungen
liebe Grüße aus dem Herbst aus Österreich
-
Hallo!
Das kenne ich auch - ist aber eher als Bug einzustufen - wenn sich meine Benutzer abmelden und dann neu an passt es bei uns. Ich habe etwas gelesen, dass man den "shellexpiriencehost" per Skript killen kann und danach das Startmenü neu geladen wird - bitte Bingen - allerdings habe ich das nicht getestet da ich froh bin dass das überhaupt läuft...
Anmerkung: lt MS Whitepaper sollten keine Kacheln für Apps angezeigt werden die nicht vorhanden sind...
mfg ds
-
Hallo!
Der Kollege hatte oben die generellen PS Rechte verlinkt:
Ich habe konkret die Rechte runtergeschraubt mit GPO Regestrieeintrag und GPO Gruppenrichtline für Powershell.
mfg ds