Forum Discussion
OneDrive with FSlogix in an AVD environment how to prevent profile bloat
I use this with the menu/startup script. Runs better if you use fslogix Profiles. I had some troubles with GPO Policies in this environment.
At the GPO Logon Script sometimes the fslogix Profile wasn't loaded already and sometimes at logoff is was allready deloaded when the Script runs.
At least, if you deploy it in the Windows Startup Folder, you can use it in any Clone without the need of an GPO. Just create a Link in "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp"
with the following command
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden -file "C:\Windows\OneDrive-CleanUp.ps1"
and of course don't forgett to put the Powershell Script in the described folder 😉
You can also extend the Script and remove some unwanted Windows Apps for every User like this:
Get-AppxPackage *WindowsAlarms*| Remove-AppxPackage
Get-AppxPackage *windowscommunicationsapps*| Remove-AppxPackage
Get-AppxPackage *officehub*| Remove-AppxPackage
Get-AppxPackage *skype*| Remove-AppxPackage
Get-AppxPackage *xbox*| Remove-AppxPackage
Get-AppxPackage *sol* | Remove-AppxPackage
Get-AppxPackage *real* | Remove-AppxPackage
Get-AppxPackage *weather* | Remove-AppxPackage
Get-AppxPackage *feedback* | Remove-AppxPackage
Get-AppxPackage *zune* | Remove-AppxPackage
Get-AppxPackage *stick* | Remove-AppxPackage