The-Virtual-Desktop-Team / Virtual-Desktop-Optimization-Tool

The script and configuration files in this repository provide an easy method to customize and apply performance related settings to virtual desktop environments.
687 stars 174 forks source link

Access is Denied error #101

Closed jamasten closed 2 years ago

jamasten commented 2 years ago

Hi, I recently updated my Custom Script Extension script to include error handling. In doing this, I set the "ErrorActionPreference" to "Stop". Everything in my script works great except when I run VDOT. When running VDOT against 21h1 evd with Office 365, I get an "Access is denied" error in one of the configuration changes. By stopping at this error, FSLogix then breaks and its a mess to even validate my AVD deployment. Is there any way this error could be resolved or handled differently in VDOT so I do not have to selectively enable error handling? Thanks!

tmmuessig commented 2 years ago

Hi @jamasten - Would it be possible for you to look in the "Virtual Desktop Optimization" event log that is created when VDOT is first run, and look for what specifically is giving you the Access Denied error so we can look into it a little more?

jamasten commented 2 years ago

@tmmuessig, there aren't any error logs under "Virtual Desktop Optimization" in Event Viewer, only info logs. I've attached photos of the PowerShell console output and Event Viewer, highlighting the last log written. vdot_accessdenied_psconsole vdot_accessdenied_eventviewer

jamasten commented 2 years ago

Also, here are the VM details: vdot_accessdenied_vmdetails :

tmmuessig commented 2 years ago

Apparently I have something wrong when it comes to logging the errors... But, lets see if we can get to the bottom of what you are getting access denied on.

Would it be possible for you to run this again on the broken VM, but this time use the -verbose switch? This should list out everything as it is doing it, and possibly lead us to which item is throwing the Access Denied error

jamasten commented 2 years ago

@tmmuessig, here is the verbose output:

VERBOSE: GET https://github.com/The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool/archive/refs/heads/main.zip with 0-byte payload VERBOSE: received -1-byte response of content type application/zip VERBOSE: Preparing to expand... VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main.gitignore'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\AppxPackages.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\Autologgers.Json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\DefaultUserSettings.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\LanManWorkstation.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\ScheduledTasks.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\Services.json'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\Backup.xml'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\Bkupinfo.xml'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol\'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol\GPO\'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol\GPO\Machine\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol\GPO\Machine\registry.pol'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol\GPO\User\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol\GPO\User\registry.pol'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LICENSE'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\AppxPackages.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\Autologgers.Json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\DefaultUserSettings.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\LanManWorkstation.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\ScheduledTasks.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\Services.json'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\Backup.xml'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\Bkupinfo.xml'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\Machine\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\Machine\lgpo_parsed_machine_settings .txt'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\Machine\registry.pol'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\User\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\User\lgpo_parsed_user_settings.txt'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\User\registry.pol'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LICENSE'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\AppxPackages.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\Autologgers.Json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\DefaultUserSettings.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\LanManWorkstation.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\PolicyRegSettings.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\ScheduledTasks.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\Services.json'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\Backup.xml'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\Bkupinfo.xml'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol\'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol\GPO\'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol\GPO\Machine\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol\GPO\Machine\registry.pol'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol\GPO\User\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol\GPO\User\registry.pol'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LICENSE'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\AppxPackages.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\Autologgers.Json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\DefaultUserSettings.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\LanManWorkstation.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\ScheduledTasks.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\Services.json'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\LGPO\'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\LGPO\Machine\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\LGPO\Machine\Registry.pol'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\LGPO\User\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\LGPO\User\Registry.pol'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\Build_JSON_Files.ps1'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\EULA.txt'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\LGPO\'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\LGPO\LGPO.exe'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\README.md'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\Win10_VirtualDesktop_Optimize.ps1'. [VDI Optimize] Disable / Remove Windows Media Player VERBOSE: Exporting cmdlet 'Add-WindowsPackage'. VERBOSE: Exporting cmdlet 'Remove-WindowsPackage'. VERBOSE: Exporting cmdlet 'Get-WindowsPackage'. VERBOSE: Exporting cmdlet 'Enable-WindowsOptionalFeature'. VERBOSE: Exporting cmdlet 'Disable-WindowsOptionalFeature'. VERBOSE: Exporting cmdlet 'Get-WindowsOptionalFeature'. VERBOSE: Exporting cmdlet 'Repair-WindowsImage'. VERBOSE: Exporting cmdlet 'Get-WindowsCapability'. VERBOSE: Exporting cmdlet 'Export-WindowsCapabilitySource'. VERBOSE: Exporting cmdlet 'Add-WindowsCapability'. VERBOSE: Exporting cmdlet 'Remove-WindowsCapability'. VERBOSE: Exporting cmdlet 'Get-WindowsReservedStorageState'. VERBOSE: Exporting cmdlet 'Set-WindowsReservedStorageState'. VERBOSE: Exporting cmdlet 'Get-WindowsDriver'. VERBOSE: Exporting cmdlet 'Remove-WindowsDriver'. VERBOSE: Exporting cmdlet 'Add-WindowsDriver'. VERBOSE: Exporting cmdlet 'Export-WindowsDriver'. VERBOSE: Exporting cmdlet 'Get-AppxProvisionedPackage'. VERBOSE: Exporting cmdlet 'Remove-AppxProvisionedPackage'. VERBOSE: Exporting cmdlet 'Add-AppxProvisionedPackage'. VERBOSE: Exporting cmdlet 'Set-AppXProvisionedDataFile'. VERBOSE: Exporting cmdlet 'Optimize-AppXProvisionedPackages'. VERBOSE: Exporting cmdlet 'Set-NonRemovableAppsPolicy'. VERBOSE: Exporting cmdlet 'Get-NonRemovableAppsPolicy'. VERBOSE: Exporting cmdlet 'Get-WindowsImage'. VERBOSE: Exporting cmdlet 'Mount-WindowsImage'. VERBOSE: Exporting cmdlet 'Save-WindowsImage'. VERBOSE: Exporting cmdlet 'Dismount-WindowsImage'. VERBOSE: Exporting cmdlet 'Clear-WindowsCorruptMountPoint'. VERBOSE: Exporting cmdlet 'Remove-WindowsImage'. VERBOSE: Exporting cmdlet 'Split-WindowsImage'. VERBOSE: Exporting cmdlet 'New-WindowsImage'. VERBOSE: Exporting cmdlet 'Add-WindowsImage'. VERBOSE: Exporting cmdlet 'Expand-WindowsImage'. VERBOSE: Exporting cmdlet 'Export-WindowsImage'. VERBOSE: Exporting cmdlet 'Get-WindowsImageContent'. VERBOSE: Exporting cmdlet 'New-WindowsCustomImage'. VERBOSE: Exporting cmdlet 'Update-WIMBootEntry'. VERBOSE: Exporting cmdlet 'Get-WIMBootEntry'. VERBOSE: Exporting cmdlet 'Expand-WindowsCustomDataImage'. VERBOSE: Exporting cmdlet 'Get-WindowsEdition'. VERBOSE: Exporting cmdlet 'Set-WindowsEdition'. VERBOSE: Exporting cmdlet 'Set-WindowsProductKey'. VERBOSE: Exporting cmdlet 'Optimize-WindowsImage'. VERBOSE: Exporting cmdlet 'Use-WindowsUnattend'. VERBOSE: Exporting cmdlet 'Start-OSUninstall'. VERBOSE: Exporting alias 'Apply-WindowsUnattend'. VERBOSE: Exporting alias 'Add-ProvisionedAppxPackage'. VERBOSE: Exporting alias 'Remove-ProvisionedAppxPackage'. VERBOSE: Exporting alias 'Get-ProvisionedAppxPackage'. VERBOSE: Exporting alias 'Optimize-ProvisionedAppxPackages'. VERBOSE: Exporting alias 'Set-ProvisionedAppXDataFile'. VERBOSE: Exporting alias 'Add-AppProvisionedPackage'. VERBOSE: Exporting alias 'Remove-AppProvisionedPackage'. VERBOSE: Exporting alias 'Get-AppProvisionedPackage'. VERBOSE: Exporting alias 'Optimize-AppProvisionedPackages'. VERBOSE: Exporting alias 'Set-AppPackageProvisionedDataFile'. VERBOSE: Exporting alias 'Add-ProvisionedAppPackage'. VERBOSE: Exporting alias 'Remove-ProvisionedAppPackage'. VERBOSE: Exporting alias 'Get-ProvisionedAppPackage'. VERBOSE: Exporting alias 'Optimize-ProvisionedAppPackages'. VERBOSE: Exporting alias 'Set-ProvisionedAppPackageDataFile'. VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 [VDI Optimize] Removing Appx Packages VERBOSE: Removing Provisioned Package Microsoft.OneConnect VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.OneConnect - Microsoft Mobile Plans app VERBOSE: Exporting function 'Get-AppxLastError'. VERBOSE: Exporting function 'Get-AppxLog'. VERBOSE: Exporting alias 'Add-AppPackage'. VERBOSE: Exporting alias 'Get-AppPackage'. VERBOSE: Exporting alias 'Get-AppPackageManifest'. VERBOSE: Exporting alias 'Remove-AppPackage'. VERBOSE: Exporting alias 'Get-AppPackageVolume'. VERBOSE: Exporting alias 'Add-AppPackageVolume'. VERBOSE: Exporting alias 'Remove-AppPackageVolume'. VERBOSE: Exporting alias 'Mount-AppPackageVolume'. VERBOSE: Exporting alias 'Dismount-AppPackageVolume'. VERBOSE: Exporting alias 'Move-AppPackage'. VERBOSE: Exporting alias 'Get-AppPacakgeDefaultVolume'. VERBOSE: Exporting alias 'Set-AppPackageDefaultVolume'. VERBOSE: Exporting alias 'Get-AppPackageLastError'. VERBOSE: Exporting alias 'Get-AppPackageLog'. VERBOSE: Attempting to remove Microsoft.OneConnect - Microsoft Mobile Plans app VERBOSE: Removing Provisioned Package Microsoft.MSPaint VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MSPaint - Paint 3D VERBOSE: Attempting to remove Microsoft.MSPaint - Paint 3D VERBOSE: Removing Provisioned Package Microsoft.BingWeather VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.BingWeather - MSN Weather app VERBOSE: Attempting to remove Microsoft.BingWeather - MSN Weather app VERBOSE: Removing Provisioned Package Microsoft.GetHelp VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.GetHelp - App that facilitates free support for Microsoft products VERBOSE: Attempting to remove Microsoft.GetHelp - App that facilitates free support for Microsoft products VERBOSE: Removing Provisioned Package Microsoft.Getstarted VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Getstarted - Windows 10 tips app VERBOSE: Attempting to remove Microsoft.Getstarted - Windows 10 tips app VERBOSE: Removing Provisioned Package Microsoft.Messaging VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Messaging - Enables, SMS, MMS and RCS messaging from your device VERBOSE: Attempting to remove Microsoft.Messaging - Enables, SMS, MMS and RCS messaging from your device VERBOSE: Removing Provisioned Package Microsoft.MicrosoftOfficeHub VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MicrosoftOfficeHub - Office UWP app suite VERBOSE: Attempting to remove Microsoft.MicrosoftOfficeHub - Office UWP app suite VERBOSE: Removing Provisioned Package Microsoft.MicrosoftSolitaireCollection VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MicrosoftSolitaireCollection - Solitaire suite of games VERBOSE: Attempting to remove Microsoft.MicrosoftSolitaireCollection - Solitaire suite of games VERBOSE: Removing Provisioned Package Microsoft.Office.OneNote VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Office.OneNote - OneNote UWP app VERBOSE: Attempting to remove Microsoft.Office.OneNote - OneNote UWP app VERBOSE: Removing Provisioned Package Microsoft.People VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.People - Contact management app VERBOSE: Attempting to remove Microsoft.People - Contact management app VERBOSE: Removing Provisioned Package Microsoft.Print3D VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Print3D - Print 3D app to prepare objects for 3D printing on your device VERBOSE: Attempting to remove Microsoft.Print3D - Print 3D app to prepare objects for 3D printing on your device VERBOSE: Removing Provisioned Package Microsoft.SkypeApp VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.SkypeApp - Instant message, voice or video call app VERBOSE: Attempting to remove Microsoft.SkypeApp - Instant message, voice or video call app VERBOSE: Removing Provisioned Package Microsoft.Wallet VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Wallet - (Microsoft Pay) for Edge browswer on certain devices VERBOSE: Attempting to remove Microsoft.Wallet - (Microsoft Pay) for Edge browswer on certain devices VERBOSE: Removing Provisioned Package Microsoft.Windows.Photos VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Windows.Photos - Photo and video editor VERBOSE: Attempting to remove Microsoft.Windows.Photos - Photo and video editor VERBOSE: Removing Provisioned Package Microsoft.WindowsAlarms VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsAlarms - A combination app, of alarm clock, world clock, timer, and stopwatch. VERBOSE: Attempting to remove Microsoft.WindowsAlarms - A combination app, of alarm clock, world clock, timer, and stopwatch. VERBOSE: Removing Provisioned Package Microsoft.WindowsCalculator VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsCalculator - Microsoft Calculator app VERBOSE: Attempting to remove Microsoft.WindowsCalculator - Microsoft Calculator app VERBOSE: Removing Provisioned Package Microsoft.WindowsCamera VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsCamera - Camera app to manage photos and video VERBOSE: Attempting to remove Microsoft.WindowsCamera - Camera app to manage photos and video VERBOSE: Removing Provisioned Package microsoft.windowscommunicationsapps VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] microsoft.windowscommunicationsapps - Mail & Calendar apps VERBOSE: Attempting to remove microsoft.windowscommunicationsapps - Mail & Calendar apps VERBOSE: Removing Provisioned Package Microsoft.WindowsFeedbackHub VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsFeedbackHub - App to provide Feedback on Windows and apps to Microsoft VERBOSE: Attempting to remove Microsoft.WindowsFeedbackHub - App to provide Feedback on Windows and apps to Microsoft VERBOSE: Removing Provisioned Package Microsoft.WindowsMaps VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsMaps - Microsoft Maps app VERBOSE: Attempting to remove Microsoft.WindowsMaps - Microsoft Maps app VERBOSE: Removing Provisioned Package Microsoft.Xbox.TCUI VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Xbox.TCUI - XBox Title Callable UI (TCUI) enables your game code to call pre-defined user interface displays VERBOSE: Attempting to remove Microsoft.Xbox.TCUI - XBox Title Callable UI (TCUI) enables your game code to call pre-defined user interface displays VERBOSE: Removing Provisioned Package Microsoft.XboxApp VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxApp - Xbox 'Console Companion' app (games, friends, etc.) VERBOSE: Attempting to remove Microsoft.XboxApp - Xbox 'Console Companion' app (games, friends, etc.) VERBOSE: Removing Provisioned Package Microsoft.XboxGameOverlay VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxGameOverlay - Xbox Game Bar extensible overlay VERBOSE: Attempting to remove Microsoft.XboxGameOverlay - Xbox Game Bar extensible overlay VERBOSE: Removing Provisioned Package Microsoft.XboxGamingOverlay VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxGamingOverlay - Xbox Game Bar extensible overlay VERBOSE: Attempting to remove Microsoft.XboxGamingOverlay - Xbox Game Bar extensible overlay VERBOSE: Removing Provisioned Package Microsoft.XboxIdentityProvider VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxIdentityProvider - A system app that enables PC games to connect to Xbox Live. VERBOSE: Attempting to remove Microsoft.XboxIdentityProvider - A system app that enables PC games to connect to Xbox Live. VERBOSE: Removing Provisioned Package Microsoft.XboxSpeechToTextOverlay VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxSpeechToTextOverlay - Xbox game transcription overlay VERBOSE: Attempting to remove Microsoft.XboxSpeechToTextOverlay - Xbox game transcription overlay VERBOSE: Removing Provisioned Package Microsoft.YourPhone VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.YourPhone - Android phone to PC device interface app VERBOSE: Attempting to remove Microsoft.YourPhone - Android phone to PC device interface app VERBOSE: Removing Provisioned Package Microsoft.ZuneMusic VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.ZuneMusic - Groove Music app VERBOSE: Attempting to remove Microsoft.ZuneMusic - Groove Music app VERBOSE: Removing Provisioned Package Microsoft.ZuneVideo VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.ZuneVideo - Movies and TV app VERBOSE: Attempting to remove Microsoft.ZuneVideo - Movies and TV app VERBOSE: Removing Provisioned Package Microsoft.WindowsSoundRecorder VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsSoundRecorder - (Voice recorder) VERBOSE: Attempting to remove Microsoft.WindowsSoundRecorder - (Voice recorder) VERBOSE: Removing Provisioned Package Microsoft.ScreenSketch VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.ScreenSketch - Snip and Sketch app VERBOSE: Attempting to remove Microsoft.ScreenSketch - Snip and Sketch app VERBOSE: Removing Provisioned Package Microsoft.MixedReality.Portal VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MixedReality.Portal - The app that facilitates Windows Mixed Reality setup, and serves as the comman d center for mixed reality experiences VERBOSE: Attempting to remove Microsoft.MixedReality.Portal - The app that facilitates Windows Mixed Reality setup, and serves as the command center for mixed reality experiences VERBOSE: Removing Provisioned Package Microsoft.Microsoft3DViewer VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Microsoft3DViewer - App to view common 3D file types VERBOSE: Attempting to remove Microsoft.Microsoft3DViewer - App to view common 3D file types [VDI Optimize] Disable Scheduled Tasks VERBOSE: Exporting function 'Get-ScheduledTask'. VERBOSE: Exporting function 'Unregister-ScheduledTask'. VERBOSE: Exporting function 'Disable-ScheduledTask'. VERBOSE: Exporting function 'Enable-ScheduledTask'. VERBOSE: Exporting function 'Export-ScheduledTask'. VERBOSE: Exporting function 'Get-ScheduledTaskInfo'. VERBOSE: Exporting function 'New-ScheduledTask'. VERBOSE: Exporting function 'New-ScheduledTaskAction'. VERBOSE: Exporting function 'New-ScheduledTaskPrincipal'. VERBOSE: Exporting function 'New-ScheduledTaskSettingsSet'. VERBOSE: Exporting function 'New-ScheduledTaskTrigger'. VERBOSE: Exporting function 'Register-ScheduledTask'. VERBOSE: Exporting function 'Set-ScheduledTask'. VERBOSE: Exporting function 'Start-ScheduledTask'. VERBOSE: Exporting function 'Stop-ScheduledTask'. VERBOSE: Exporting function 'Get-ClusteredScheduledTask'. VERBOSE: Exporting function 'Register-ClusteredScheduledTask'. VERBOSE: Exporting function 'Set-ClusteredScheduledTask'. VERBOSE: Exporting function 'Unregister-ClusteredScheduledTask'. VERBOSE: Attempting to disable Scheduled Task: AnalyzeSystem VERBOSE: Attempting to disable Scheduled Task: Cellular VERBOSE: Attempting to disable Scheduled Task: Consolidator VERBOSE: Attempting to disable Scheduled Task: Diagnostics VERBOSE: Attempting to disable Scheduled Task: FamilySafetyMonitor VERBOSE: Attempting to disable Scheduled Task: FamilySafetyRefreshTask VERBOSE: Attempting to disable Scheduled Task: MapsToastTask VERBOSE: Attempting to disable Scheduled Task: Microsoft Compatibility Appraiser VERBOSE: Attempting to disable Scheduled Task: Microsoft-Windows-DiskDiagnosticDataCollector VERBOSE: Attempting to disable Scheduled Task: MNO Metadata Parser VERBOSE: Attempting to disable Scheduled Task: NotificationTask VERBOSE: Attempting to disable Scheduled Task: ProcessMemoryDiagnosticEvents VERBOSE: Attempting to disable Scheduled Task: Proxy VERBOSE: Attempting to disable Scheduled Task: QueueReporting VERBOSE: Attempting to disable Scheduled Task: RecommendedTroubleshootingScanner VERBOSE: Attempting to disable Scheduled Task: RegIdleBackup VERBOSE: Attempting to disable Scheduled Task: RunFullMemoryDiagnostic VERBOSE: Attempting to disable Scheduled Task: Scheduled VERBOSE: Attempting to disable Scheduled Task: ScheduledDefrag VERBOSE: Attempting to disable Scheduled Task: SilentCleanup VERBOSE: Attempting to disable Scheduled Task: SpeechModelDownloadTask VERBOSE: Attempting to disable Scheduled Task: Sqm-Tasks VERBOSE: Attempting to disable Scheduled Task: SR VERBOSE: Attempting to disable Scheduled Task: StartComponentCleanup VERBOSE: Attempting to disable Scheduled Task: StartupAppTask VERBOSE: Attempting to disable Scheduled Task: WindowsActionDialog VERBOSE: Attempting to disable Scheduled Task: WinSAT VERBOSE: Attempting to disable Scheduled Task: XblGameSaveTask [VDI Optimize] Set Default User Settings VERBOSE: Processing Default User Settings (Registry Keys) VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer - ShellState VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - IconsOnly VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ListviewAlphaSelect VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ListviewShadow VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ShowCompColor VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ShowInfoTip VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - TaskbarAnimations VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\DWM - EnableAeroPeek VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\DWM - AlwaysHiberNateThumbnails VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop - DragFullWindows VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop - FontSmoothing VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop - UserPreferencesMask VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop\WindowMetrics - MinAnimate VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338393Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338393Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-353696Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338388Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338389Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SystemPaneSuggestionsEnabled VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\International\User Profile - HttpAcceptLanguageOptOut VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_8wekyb3d8bbwe - DisabledB yUser VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.SkypeApp_kzf8qxf38zg5c - DisabledByUser VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.YourPhone_8wekyb3d8bbwe - DisabledByUser VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.MicrosoftEdge_8wekyb3d8bbwe - DisabledBy User VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.549981C3F5F10_8wekyb3d8bbwe - DisabledBy User VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization - RestrictImplicitInkCollection VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization - RestrictImplicitTextCollection VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization\TrainedDataStore - HarvestContacts VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Personalization\Settings - AcceptedPrivacyPolicy VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\SearchSettings - IsDeviceSearchHistoryEnabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\SearchSettings - IsMSACloudSearchEnabled

PSMessageDetails : Exception : System.Management.Automation.RemoteException: ERROR: Access is denied. TargetObject : ERROR: Access is denied. CategoryInfo : NotSpecified: (ERROR: Access is denied.:String) [], RemoteException FullyQualifiedErrorId : NativeCommandError ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at , C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\Win10_VirtualDesktop_Optimize.ps1: line 331 at , : line 12 PipelineIterationInfo : {}

RaamsdonkAJ commented 2 years ago

Hi guys,

Same issue, same location. Deployment via Azure Image Builder, packer log:

[…] [8b1407ef-4f9f-41c9-937f-6444b339d0b9] PACKER OUT azure-arm: VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization - RestrictImplicitInkCollection [8b1407ef-4f9f-41c9-937f-6444b339d0b9] PACKER OUT azure-arm: VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization - RestrictImplicitTextCollection [8b1407ef-4f9f-41c9-937f-6444b339d0b9] PACKER OUT azure-arm: VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization\TrainedDataStore - HarvestContacts [8b1407ef-4f9f-41c9-937f-6444b339d0b9] PACKER OUT azure-arm: VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Personalization\Settings - AcceptedPrivacyPolicy [8b1407ef-4f9f-41c9-937f-6444b339d0b9] PACKER OUT azure-arm: VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\SearchSettings - IsDeviceSearchHistoryEnabled [8b1407ef-4f9f-41c9-937f-6444b339d0b9] PACKER OUT azure-arm: VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\SearchSettings - IsMSACloudSearchEnabled [8b1407ef-4f9f-41c9-937f-6444b339d0b9] PACKER OUT azure-arm: ERROR: Access is denied. [8b1407ef-4f9f-41c9-937f-6444b339d0b9] PACKER OUT azure-arm: [8b1407ef-4f9f-41c9-937f-6444b339d0b9] PACKER OUT azure-arm: [VDI Optimize] Disable Autologgers [8b1407ef-4f9f-41c9-937f-6444b339d0b9] PACKER OUT azure-arm: VERBOSE: Processing Autologger Configuration File

This causes AIB to fail. Exit code 1 instead of 0.

Met vriendelijke groet / Best regards / Mit freundlichen Grüßen,

Arnoud van Raamsdonk IT Architect

@.***

From: Jason Masten @.> Sent: vrijdag 29 oktober 2021 15:01 To: The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool @.> Cc: Subscribed @.***> Subject: Re: [The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool] Access is Denied error (Issue #101)

https://github.com/tmmuessig

Dit bericht is afkomstig van een externe afzender. Wees voorzichtig met het beantwoorden van berichten of openen van bijlage(n) / links van afzenders die je niet kent. https://github.com/tmmuessig

https://github.com/tmmuessig https://github.com/tmmuessig


@tmmuessighttps://github.com/tmmuessig, here is the verbose output:

VERBOSE: GET https://github.com/The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool/archive/refs/heads/main.ziphttps://github.com/The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool/archive/refs/heads/main.zip with 0-byte payload VERBOSE: received -1-byte response of content type application/zip VERBOSE: Preparing to expand... VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main.gitignore'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\AppxPackages.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\Autologgers.Json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\DefaultUserSettings.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\LanManWorkstation.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\ScheduledTasks.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\ConfigurationFiles\Services.json'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\Backup.xml'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\Bkupinfo.xml'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol\GPO'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol\GPO\Machine'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol\GPO\Machine\registry.pol'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol\GPO\User'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LGPO\DomainSysvol\GPO\User\registry.pol'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\1909\LICENSE'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\AppxPackages.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\Autologgers.Json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\DefaultUserSettings.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\LanManWorkstation.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\ScheduledTasks.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\ConfigurationFiles\Services.json'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\Backup.xml'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\Bkupinfo.xml'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\Machine'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\Machine\lgpo_parsed_machine_settings .txt'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\Machine\registry.pol'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\User'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\User\lgpo_parsed_user_settings.txt'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LGPO\DomainSysvol\GPO\User\registry.pol'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2004\LICENSE'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\AppxPackages.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\Autologgers.Json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\DefaultUserSettings.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\LanManWorkstation.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\PolicyRegSettings.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\ScheduledTasks.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\ConfigurationFiles\Services.json'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\Backup.xml'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\Bkupinfo.xml'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol\GPO'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol\GPO\Machine'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol\GPO\Machine\registry.pol'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol\GPO\User'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LGPO\DomainSysvol\GPO\User\registry.pol'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\2009\LICENSE'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\AppxPackages.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\Autologgers.Json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\DefaultUserSettings.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\LanManWorkstation.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\ScheduledTasks.json'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\ConfigurationFiles\Services.json'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\LGPO'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\LGPO\Machine'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\LGPO\Machine\Registry.pol'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\LGPO\User'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\21H2\LGPO\User\Registry.pol'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\Build_JSON_Files.ps1'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\EULA.txt'. VERBOSE: Adding 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\LGPO'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\LGPO\LGPO.exe'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\README.md'. VERBOSE: Created 'C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\Win10_VirtualDesktop_Optimize.ps1'. [VDI Optimize] Disable / Remove Windows Media Player VERBOSE: Exporting cmdlet 'Add-WindowsPackage'. VERBOSE: Exporting cmdlet 'Remove-WindowsPackage'. VERBOSE: Exporting cmdlet 'Get-WindowsPackage'. VERBOSE: Exporting cmdlet 'Enable-WindowsOptionalFeature'. VERBOSE: Exporting cmdlet 'Disable-WindowsOptionalFeature'. VERBOSE: Exporting cmdlet 'Get-WindowsOptionalFeature'. VERBOSE: Exporting cmdlet 'Repair-WindowsImage'. VERBOSE: Exporting cmdlet 'Get-WindowsCapability'. VERBOSE: Exporting cmdlet 'Export-WindowsCapabilitySource'. VERBOSE: Exporting cmdlet 'Add-WindowsCapability'. VERBOSE: Exporting cmdlet 'Remove-WindowsCapability'. VERBOSE: Exporting cmdlet 'Get-WindowsReservedStorageState'. VERBOSE: Exporting cmdlet 'Set-WindowsReservedStorageState'. VERBOSE: Exporting cmdlet 'Get-WindowsDriver'. VERBOSE: Exporting cmdlet 'Remove-WindowsDriver'. VERBOSE: Exporting cmdlet 'Add-WindowsDriver'. VERBOSE: Exporting cmdlet 'Export-WindowsDriver'. VERBOSE: Exporting cmdlet 'Get-AppxProvisionedPackage'. VERBOSE: Exporting cmdlet 'Remove-AppxProvisionedPackage'. VERBOSE: Exporting cmdlet 'Add-AppxProvisionedPackage'. VERBOSE: Exporting cmdlet 'Set-AppXProvisionedDataFile'. VERBOSE: Exporting cmdlet 'Optimize-AppXProvisionedPackages'. VERBOSE: Exporting cmdlet 'Set-NonRemovableAppsPolicy'. VERBOSE: Exporting cmdlet 'Get-NonRemovableAppsPolicy'. VERBOSE: Exporting cmdlet 'Get-WindowsImage'. VERBOSE: Exporting cmdlet 'Mount-WindowsImage'. VERBOSE: Exporting cmdlet 'Save-WindowsImage'. VERBOSE: Exporting cmdlet 'Dismount-WindowsImage'. VERBOSE: Exporting cmdlet 'Clear-WindowsCorruptMountPoint'. VERBOSE: Exporting cmdlet 'Remove-WindowsImage'. VERBOSE: Exporting cmdlet 'Split-WindowsImage'. VERBOSE: Exporting cmdlet 'New-WindowsImage'. VERBOSE: Exporting cmdlet 'Add-WindowsImage'. VERBOSE: Exporting cmdlet 'Expand-WindowsImage'. VERBOSE: Exporting cmdlet 'Export-WindowsImage'. VERBOSE: Exporting cmdlet 'Get-WindowsImageContent'. VERBOSE: Exporting cmdlet 'New-WindowsCustomImage'. VERBOSE: Exporting cmdlet 'Update-WIMBootEntry'. VERBOSE: Exporting cmdlet 'Get-WIMBootEntry'. VERBOSE: Exporting cmdlet 'Expand-WindowsCustomDataImage'. VERBOSE: Exporting cmdlet 'Get-WindowsEdition'. VERBOSE: Exporting cmdlet 'Set-WindowsEdition'. VERBOSE: Exporting cmdlet 'Set-WindowsProductKey'. VERBOSE: Exporting cmdlet 'Optimize-WindowsImage'. VERBOSE: Exporting cmdlet 'Use-WindowsUnattend'. VERBOSE: Exporting cmdlet 'Start-OSUninstall'. VERBOSE: Exporting alias 'Apply-WindowsUnattend'. VERBOSE: Exporting alias 'Add-ProvisionedAppxPackage'. VERBOSE: Exporting alias 'Remove-ProvisionedAppxPackage'. VERBOSE: Exporting alias 'Get-ProvisionedAppxPackage'. VERBOSE: Exporting alias 'Optimize-ProvisionedAppxPackages'. VERBOSE: Exporting alias 'Set-ProvisionedAppXDataFile'. VERBOSE: Exporting alias 'Add-AppProvisionedPackage'. VERBOSE: Exporting alias 'Remove-AppProvisionedPackage'. VERBOSE: Exporting alias 'Get-AppProvisionedPackage'. VERBOSE: Exporting alias 'Optimize-AppProvisionedPackages'. VERBOSE: Exporting alias 'Set-AppPackageProvisionedDataFile'. VERBOSE: Exporting alias 'Add-ProvisionedAppPackage'. VERBOSE: Exporting alias 'Remove-ProvisionedAppPackage'. VERBOSE: Exporting alias 'Get-ProvisionedAppPackage'. VERBOSE: Exporting alias 'Optimize-ProvisionedAppPackages'. VERBOSE: Exporting alias 'Set-ProvisionedAppPackageDataFile'. VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 [VDI Optimize] Removing Appx Packages VERBOSE: Removing Provisioned Package Microsoft.OneConnect VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.OneConnect - Microsoft Mobile Plans app VERBOSE: Exporting function 'Get-AppxLastError'. VERBOSE: Exporting function 'Get-AppxLog'. VERBOSE: Exporting alias 'Add-AppPackage'. VERBOSE: Exporting alias 'Get-AppPackage'. VERBOSE: Exporting alias 'Get-AppPackageManifest'. VERBOSE: Exporting alias 'Remove-AppPackage'. VERBOSE: Exporting alias 'Get-AppPackageVolume'. VERBOSE: Exporting alias 'Add-AppPackageVolume'. VERBOSE: Exporting alias 'Remove-AppPackageVolume'. VERBOSE: Exporting alias 'Mount-AppPackageVolume'. VERBOSE: Exporting alias 'Dismount-AppPackageVolume'. VERBOSE: Exporting alias 'Move-AppPackage'. VERBOSE: Exporting alias 'Get-AppPacakgeDefaultVolume'. VERBOSE: Exporting alias 'Set-AppPackageDefaultVolume'. VERBOSE: Exporting alias 'Get-AppPackageLastError'. VERBOSE: Exporting alias 'Get-AppPackageLog'. VERBOSE: Attempting to remove Microsoft.OneConnect - Microsoft Mobile Plans app VERBOSE: Removing Provisioned Package Microsoft.MSPaint VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MSPaint - Paint 3D VERBOSE: Attempting to remove Microsoft.MSPaint - Paint 3D VERBOSE: Removing Provisioned Package Microsoft.BingWeather VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.BingWeather - MSN Weather app VERBOSE: Attempting to remove Microsoft.BingWeather - MSN Weather app VERBOSE: Removing Provisioned Package Microsoft.GetHelp VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.GetHelp - App that facilitates free support for Microsoft products VERBOSE: Attempting to remove Microsoft.GetHelp - App that facilitates free support for Microsoft products VERBOSE: Removing Provisioned Package Microsoft.Getstarted VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Getstarted - Windows 10 tips app VERBOSE: Attempting to remove Microsoft.Getstarted - Windows 10 tips app VERBOSE: Removing Provisioned Package Microsoft.Messaging VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Messaging - Enables, SMS, MMS and RCS messaging from your device VERBOSE: Attempting to remove Microsoft.Messaging - Enables, SMS, MMS and RCS messaging from your device VERBOSE: Removing Provisioned Package Microsoft.MicrosoftOfficeHub VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MicrosoftOfficeHub - Office UWP app suite VERBOSE: Attempting to remove Microsoft.MicrosoftOfficeHub - Office UWP app suite VERBOSE: Removing Provisioned Package Microsoft.MicrosoftSolitaireCollection VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MicrosoftSolitaireCollection - Solitaire suite of games VERBOSE: Attempting to remove Microsoft.MicrosoftSolitaireCollection - Solitaire suite of games VERBOSE: Removing Provisioned Package Microsoft.Office.OneNote VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Office.OneNote - OneNote UWP app VERBOSE: Attempting to remove Microsoft.Office.OneNote - OneNote UWP app VERBOSE: Removing Provisioned Package Microsoft.People VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.People - Contact management app VERBOSE: Attempting to remove Microsoft.People - Contact management app VERBOSE: Removing Provisioned Package Microsoft.Print3D VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Print3D - Print 3D app to prepare objects for 3D printing on your device VERBOSE: Attempting to remove Microsoft.Print3D - Print 3D app to prepare objects for 3D printing on your device VERBOSE: Removing Provisioned Package Microsoft.SkypeApp VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.SkypeApp - Instant message, voice or video call app VERBOSE: Attempting to remove Microsoft.SkypeApp - Instant message, voice or video call app VERBOSE: Removing Provisioned Package Microsoft.Wallet VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Wallet - (Microsoft Pay) for Edge browswer on certain devices VERBOSE: Attempting to remove Microsoft.Wallet - (Microsoft Pay) for Edge browswer on certain devices VERBOSE: Removing Provisioned Package Microsoft.Windows.Photos VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Windows.Photos - Photo and video editor VERBOSE: Attempting to remove Microsoft.Windows.Photos - Photo and video editor VERBOSE: Removing Provisioned Package Microsoft.WindowsAlarms VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsAlarms - A combination app, of alarm clock, world clock, timer, and stopwatch. VERBOSE: Attempting to remove Microsoft.WindowsAlarms - A combination app, of alarm clock, world clock, timer, and stopwatch. VERBOSE: Removing Provisioned Package Microsoft.WindowsCalculator VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsCalculator - Microsoft Calculator app VERBOSE: Attempting to remove Microsoft.WindowsCalculator - Microsoft Calculator app VERBOSE: Removing Provisioned Package Microsoft.WindowsCamera VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsCamera - Camera app to manage photos and video VERBOSE: Attempting to remove Microsoft.WindowsCamera - Camera app to manage photos and video VERBOSE: Removing Provisioned Package microsoft.windowscommunicationsapps VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] microsoft.windowscommunicationsapps - Mail & Calendar apps VERBOSE: Attempting to remove microsoft.windowscommunicationsapps - Mail & Calendar apps VERBOSE: Removing Provisioned Package Microsoft.WindowsFeedbackHub VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsFeedbackHub - App to provide Feedback on Windows and apps to Microsoft VERBOSE: Attempting to remove Microsoft.WindowsFeedbackHub - App to provide Feedback on Windows and apps to Microsoft VERBOSE: Removing Provisioned Package Microsoft.WindowsMaps VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsMaps - Microsoft Maps app VERBOSE: Attempting to remove Microsoft.WindowsMaps - Microsoft Maps app VERBOSE: Removing Provisioned Package Microsoft.Xbox.TCUI VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Xbox.TCUI - XBox Title Callable UI (TCUI) enables your game code to call pre-defined user interface displays VERBOSE: Attempting to remove Microsoft.Xbox.TCUI - XBox Title Callable UI (TCUI) enables your game code to call pre-defined user interface displays VERBOSE: Removing Provisioned Package Microsoft.XboxApp VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxApp - Xbox 'Console Companion' app (games, friends, etc.) VERBOSE: Attempting to remove Microsoft.XboxApp - Xbox 'Console Companion' app (games, friends, etc.) VERBOSE: Removing Provisioned Package Microsoft.XboxGameOverlay VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxGameOverlay - Xbox Game Bar extensible overlay VERBOSE: Attempting to remove Microsoft.XboxGameOverlay - Xbox Game Bar extensible overlay VERBOSE: Removing Provisioned Package Microsoft.XboxGamingOverlay VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxGamingOverlay - Xbox Game Bar extensible overlay VERBOSE: Attempting to remove Microsoft.XboxGamingOverlay - Xbox Game Bar extensible overlay VERBOSE: Removing Provisioned Package Microsoft.XboxIdentityProvider VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxIdentityProvider - A system app that enables PC games to connect to Xbox Live. VERBOSE: Attempting to remove Microsoft.XboxIdentityProvider - A system app that enables PC games to connect to Xbox Live. VERBOSE: Removing Provisioned Package Microsoft.XboxSpeechToTextOverlay VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxSpeechToTextOverlay - Xbox game transcription overlay VERBOSE: Attempting to remove Microsoft.XboxSpeechToTextOverlay - Xbox game transcription overlay VERBOSE: Removing Provisioned Package Microsoft.YourPhone VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.YourPhone - Android phone to PC device interface app VERBOSE: Attempting to remove Microsoft.YourPhone - Android phone to PC device interface app VERBOSE: Removing Provisioned Package Microsoft.ZuneMusic VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.ZuneMusic - Groove Music app VERBOSE: Attempting to remove Microsoft.ZuneMusic - Groove Music app VERBOSE: Removing Provisioned Package Microsoft.ZuneVideo VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.ZuneVideo - Movies and TV app VERBOSE: Attempting to remove Microsoft.ZuneVideo - Movies and TV app VERBOSE: Removing Provisioned Package Microsoft.WindowsSoundRecorder VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsSoundRecorder - (Voice recorder) VERBOSE: Attempting to remove Microsoft.WindowsSoundRecorder - (Voice recorder) VERBOSE: Removing Provisioned Package Microsoft.ScreenSketch VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.ScreenSketch - Snip and Sketch app VERBOSE: Attempting to remove Microsoft.ScreenSketch - Snip and Sketch app VERBOSE: Removing Provisioned Package Microsoft.MixedReality.Portal VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MixedReality.Portal - The app that facilitates Windows Mixed Reality setup, and serves as the comman d center for mixed reality experiences VERBOSE: Attempting to remove Microsoft.MixedReality.Portal - The app that facilitates Windows Mixed Reality setup, and serves as the command center for mixed reality experiences VERBOSE: Removing Provisioned Package Microsoft.Microsoft3DViewer VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Microsoft3DViewer - App to view common 3D file types VERBOSE: Attempting to remove Microsoft.Microsoft3DViewer - App to view common 3D file types [VDI Optimize] Disable Scheduled Tasks VERBOSE: Exporting function 'Get-ScheduledTask'. VERBOSE: Exporting function 'Unregister-ScheduledTask'. VERBOSE: Exporting function 'Disable-ScheduledTask'. VERBOSE: Exporting function 'Enable-ScheduledTask'. VERBOSE: Exporting function 'Export-ScheduledTask'. VERBOSE: Exporting function 'Get-ScheduledTaskInfo'. VERBOSE: Exporting function 'New-ScheduledTask'. VERBOSE: Exporting function 'New-ScheduledTaskAction'. VERBOSE: Exporting function 'New-ScheduledTaskPrincipal'. VERBOSE: Exporting function 'New-ScheduledTaskSettingsSet'. VERBOSE: Exporting function 'New-ScheduledTaskTrigger'. VERBOSE: Exporting function 'Register-ScheduledTask'. VERBOSE: Exporting function 'Set-ScheduledTask'. VERBOSE: Exporting function 'Start-ScheduledTask'. VERBOSE: Exporting function 'Stop-ScheduledTask'. VERBOSE: Exporting function 'Get-ClusteredScheduledTask'. VERBOSE: Exporting function 'Register-ClusteredScheduledTask'. VERBOSE: Exporting function 'Set-ClusteredScheduledTask'. VERBOSE: Exporting function 'Unregister-ClusteredScheduledTask'. VERBOSE: Attempting to disable Scheduled Task: AnalyzeSystem VERBOSE: Attempting to disable Scheduled Task: Cellular VERBOSE: Attempting to disable Scheduled Task: Consolidator VERBOSE: Attempting to disable Scheduled Task: Diagnostics VERBOSE: Attempting to disable Scheduled Task: FamilySafetyMonitor VERBOSE: Attempting to disable Scheduled Task: FamilySafetyRefreshTask VERBOSE: Attempting to disable Scheduled Task: MapsToastTask VERBOSE: Attempting to disable Scheduled Task: Microsoft Compatibility Appraiser VERBOSE: Attempting to disable Scheduled Task: Microsoft-Windows-DiskDiagnosticDataCollector VERBOSE: Attempting to disable Scheduled Task: MNO Metadata Parser VERBOSE: Attempting to disable Scheduled Task: NotificationTask VERBOSE: Attempting to disable Scheduled Task: ProcessMemoryDiagnosticEvents VERBOSE: Attempting to disable Scheduled Task: Proxy VERBOSE: Attempting to disable Scheduled Task: QueueReporting VERBOSE: Attempting to disable Scheduled Task: RecommendedTroubleshootingScanner VERBOSE: Attempting to disable Scheduled Task: RegIdleBackup VERBOSE: Attempting to disable Scheduled Task: RunFullMemoryDiagnostic VERBOSE: Attempting to disable Scheduled Task: Scheduled VERBOSE: Attempting to disable Scheduled Task: ScheduledDefrag VERBOSE: Attempting to disable Scheduled Task: SilentCleanup VERBOSE: Attempting to disable Scheduled Task: SpeechModelDownloadTask VERBOSE: Attempting to disable Scheduled Task: Sqm-Tasks VERBOSE: Attempting to disable Scheduled Task: SR VERBOSE: Attempting to disable Scheduled Task: StartComponentCleanup VERBOSE: Attempting to disable Scheduled Task: StartupAppTask VERBOSE: Attempting to disable Scheduled Task: WindowsActionDialog VERBOSE: Attempting to disable Scheduled Task: WinSAT VERBOSE: Attempting to disable Scheduled Task: XblGameSaveTask [VDI Optimize] Set Default User Settings VERBOSE: Processing Default User Settings (Registry Keys) VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer - ShellState VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - IconsOnly VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ListviewAlphaSelect VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ListviewShadow VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ShowCompColor VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ShowInfoTip VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - TaskbarAnimations VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\DWM - EnableAeroPeek VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\DWM - AlwaysHiberNateThumbnails VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop - DragFullWindows VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop - FontSmoothing VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop - UserPreferencesMask VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop\WindowMetrics - MinAnimate VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338393Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338393Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-353696Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338388Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338389Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SystemPaneSuggestionsEnabled VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\International\User Profile - HttpAcceptLanguageOptOut VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_8wekyb3d8bbwe - DisabledB yUser VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.SkypeApp_kzf8qxf38zg5c - DisabledByUser VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.YourPhone_8wekyb3d8bbwe - DisabledByUser VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.MicrosoftEdge_8wekyb3d8bbwe - DisabledBy User VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.549981C3F5F10_8wekyb3d8bbwe - DisabledBy User VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization - RestrictImplicitInkCollection VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization - RestrictImplicitTextCollection VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization\TrainedDataStore - HarvestContacts VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Personalization\Settings - AcceptedPrivacyPolicy VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\SearchSettings - IsDeviceSearchHistoryEnabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\SearchSettings - IsMSACloudSearchEnabled

PSMessageDetails : Exception : System.Management.Automation.RemoteException: ERROR: Access is denied. TargetObject : ERROR: Access is denied. CategoryInfo : NotSpecified: (ERROR: Access is denied.:String) [], RemoteException FullyQualifiedErrorId : NativeCommandError ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at , C:\Users\rebukem\Downloads\VDOT\Virtual-Desktop-Optimization-Tool-main\Win10_VirtualDesktop_Optimize.ps1: line 331 at , : line 12 PipelineIterationInfo : {}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool/issues/101#issuecomment-954724623, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANNEKAU3M4LPVPGHB6P3ST3UJKLJDANCNFSM5G54GE3Q.

https://eng.mazars.nl/Home/About-us/Mazars-in-the-Netherlands

tmmuessig commented 2 years ago

From the folder 2009> ConfigurationFiles can you open DefaultUserSettings.json and remove the following item (should be the last item on the list) and then test again?

{ "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\SearchSettings", "KeyName": "IsMSACloudSearchEnabled", "PropertyType": "DWORD", "PropertyValue": 0, "SetProperty": "True" }

jamasten commented 2 years ago

@tmmuessig, I deployed a new VM and ran VDOT on it, minus the "IsMSACloudSearchEnabled" object in 2009> ConfigurationFiles > DefaultUserSettings.json. Based on both test results, it seems like whatever is happening after the DefaultUserSettings.json configuration is throwing the error.

[VDI Optimize] Disable / Remove Windows Media Player VERBOSE: Exporting cmdlet 'Add-WindowsPackage'. VERBOSE: Exporting cmdlet 'Remove-WindowsPackage'. VERBOSE: Exporting cmdlet 'Get-WindowsPackage'. VERBOSE: Exporting cmdlet 'Enable-WindowsOptionalFeature'. VERBOSE: Exporting cmdlet 'Disable-WindowsOptionalFeature'. VERBOSE: Exporting cmdlet 'Get-WindowsOptionalFeature'. VERBOSE: Exporting cmdlet 'Repair-WindowsImage'. VERBOSE: Exporting cmdlet 'Get-WindowsCapability'. VERBOSE: Exporting cmdlet 'Export-WindowsCapabilitySource'. VERBOSE: Exporting cmdlet 'Add-WindowsCapability'. VERBOSE: Exporting cmdlet 'Remove-WindowsCapability'. VERBOSE: Exporting cmdlet 'Get-WindowsReservedStorageState'. VERBOSE: Exporting cmdlet 'Set-WindowsReservedStorageState'. VERBOSE: Exporting cmdlet 'Get-WindowsDriver'. VERBOSE: Exporting cmdlet 'Remove-WindowsDriver'. VERBOSE: Exporting cmdlet 'Add-WindowsDriver'. VERBOSE: Exporting cmdlet 'Export-WindowsDriver'. VERBOSE: Exporting cmdlet 'Get-AppxProvisionedPackage'. VERBOSE: Exporting cmdlet 'Remove-AppxProvisionedPackage'. VERBOSE: Exporting cmdlet 'Add-AppxProvisionedPackage'. VERBOSE: Exporting cmdlet 'Set-AppXProvisionedDataFile'. VERBOSE: Exporting cmdlet 'Optimize-AppXProvisionedPackages'. VERBOSE: Exporting cmdlet 'Set-NonRemovableAppsPolicy'. VERBOSE: Exporting cmdlet 'Get-NonRemovableAppsPolicy'. VERBOSE: Exporting cmdlet 'Get-WindowsImage'. VERBOSE: Exporting cmdlet 'Mount-WindowsImage'. VERBOSE: Exporting cmdlet 'Save-WindowsImage'. VERBOSE: Exporting cmdlet 'Dismount-WindowsImage'. VERBOSE: Exporting cmdlet 'Clear-WindowsCorruptMountPoint'. VERBOSE: Exporting cmdlet 'Remove-WindowsImage'. VERBOSE: Exporting cmdlet 'Split-WindowsImage'. VERBOSE: Exporting cmdlet 'New-WindowsImage'. VERBOSE: Exporting cmdlet 'Add-WindowsImage'. VERBOSE: Exporting cmdlet 'Expand-WindowsImage'. VERBOSE: Exporting cmdlet 'Export-WindowsImage'. VERBOSE: Exporting cmdlet 'Get-WindowsImageContent'. VERBOSE: Exporting cmdlet 'New-WindowsCustomImage'. VERBOSE: Exporting cmdlet 'Update-WIMBootEntry'. VERBOSE: Exporting cmdlet 'Get-WIMBootEntry'. VERBOSE: Exporting cmdlet 'Expand-WindowsCustomDataImage'. VERBOSE: Exporting cmdlet 'Get-WindowsEdition'. VERBOSE: Exporting cmdlet 'Set-WindowsEdition'. VERBOSE: Exporting cmdlet 'Set-WindowsProductKey'. VERBOSE: Exporting cmdlet 'Optimize-WindowsImage'. VERBOSE: Exporting cmdlet 'Use-WindowsUnattend'. VERBOSE: Exporting cmdlet 'Start-OSUninstall'. VERBOSE: Exporting alias 'Apply-WindowsUnattend'. VERBOSE: Exporting alias 'Add-ProvisionedAppxPackage'. VERBOSE: Exporting alias 'Remove-ProvisionedAppxPackage'. VERBOSE: Exporting alias 'Get-ProvisionedAppxPackage'. VERBOSE: Exporting alias 'Optimize-ProvisionedAppxPackages'. VERBOSE: Exporting alias 'Set-ProvisionedAppXDataFile'. VERBOSE: Exporting alias 'Add-AppProvisionedPackage'. VERBOSE: Exporting alias 'Remove-AppProvisionedPackage'. VERBOSE: Exporting alias 'Get-AppProvisionedPackage'. VERBOSE: Exporting alias 'Optimize-AppProvisionedPackages'. VERBOSE: Exporting alias 'Set-AppPackageProvisionedDataFile'. VERBOSE: Exporting alias 'Add-ProvisionedAppPackage'. VERBOSE: Exporting alias 'Remove-ProvisionedAppPackage'. VERBOSE: Exporting alias 'Get-ProvisionedAppPackage'. VERBOSE: Exporting alias 'Optimize-ProvisionedAppPackages'. VERBOSE: Exporting alias 'Set-ProvisionedAppPackageDataFile'. VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 [VDI Optimize] Removing Appx Packages VERBOSE: Removing Provisioned Package Microsoft.OneConnect VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.OneConnect - Microsoft Mobile Plans app VERBOSE: Exporting function 'Get-AppxLastError'. VERBOSE: Exporting function 'Get-AppxLog'. VERBOSE: Exporting alias 'Add-AppPackage'. VERBOSE: Exporting alias 'Get-AppPackage'. VERBOSE: Exporting alias 'Get-AppPackageManifest'. VERBOSE: Exporting alias 'Remove-AppPackage'. VERBOSE: Exporting alias 'Get-AppPackageVolume'. VERBOSE: Exporting alias 'Add-AppPackageVolume'. VERBOSE: Exporting alias 'Remove-AppPackageVolume'. VERBOSE: Exporting alias 'Mount-AppPackageVolume'. VERBOSE: Exporting alias 'Dismount-AppPackageVolume'. VERBOSE: Exporting alias 'Move-AppPackage'. VERBOSE: Exporting alias 'Get-AppPacakgeDefaultVolume'. VERBOSE: Exporting alias 'Set-AppPackageDefaultVolume'. VERBOSE: Exporting alias 'Get-AppPackageLastError'. VERBOSE: Exporting alias 'Get-AppPackageLog'. VERBOSE: Attempting to remove Microsoft.OneConnect - Microsoft Mobile Plans app VERBOSE: Removing Provisioned Package Microsoft.MSPaint VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MSPaint - Paint 3D VERBOSE: Attempting to remove Microsoft.MSPaint - Paint 3D VERBOSE: Removing Provisioned Package Microsoft.BingWeather VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.BingWeather - MSN Weather app VERBOSE: Attempting to remove Microsoft.BingWeather - MSN Weather app VERBOSE: Removing Provisioned Package Microsoft.GetHelp VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.GetHelp - App that facilitates free support for Microsoft products VERBOSE: Attempting to remove Microsoft.GetHelp - App that facilitates free support for Microsoft products VERBOSE: Removing Provisioned Package Microsoft.Getstarted VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Getstarted - Windows 10 tips app VERBOSE: Attempting to remove Microsoft.Getstarted - Windows 10 tips app VERBOSE: Removing Provisioned Package Microsoft.Messaging VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Messaging - Enables, SMS, MMS and RCS messaging from your device VERBOSE: Attempting to remove Microsoft.Messaging - Enables, SMS, MMS and RCS messaging from your device VERBOSE: Removing Provisioned Package Microsoft.MicrosoftOfficeHub VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MicrosoftOfficeHub - Office UWP app suite VERBOSE: Attempting to remove Microsoft.MicrosoftOfficeHub - Office UWP app suite VERBOSE: Removing Provisioned Package Microsoft.MicrosoftSolitaireCollection VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MicrosoftSolitaireCollection - Solitaire suite of games VERBOSE: Attempting to remove Microsoft.MicrosoftSolitaireCollection - Solitaire suite of games VERBOSE: Removing Provisioned Package Microsoft.Office.OneNote VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Office.OneNote - OneNote UWP app VERBOSE: Attempting to remove Microsoft.Office.OneNote - OneNote UWP app VERBOSE: Removing Provisioned Package Microsoft.People VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.People - Contact management app VERBOSE: Attempting to remove Microsoft.People - Contact management app VERBOSE: Removing Provisioned Package Microsoft.Print3D VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Print3D - Print 3D app to prepare objects for 3D printing on your device VERBOSE: Attempting to remove Microsoft.Print3D - Print 3D app to prepare objects for 3D printing on your device VERBOSE: Removing Provisioned Package Microsoft.SkypeApp VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.SkypeApp - Instant message, voice or video call app VERBOSE: Attempting to remove Microsoft.SkypeApp - Instant message, voice or video call app VERBOSE: Removing Provisioned Package Microsoft.Wallet VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Wallet - (Microsoft Pay) for Edge browswer on certain devices VERBOSE: Attempting to remove Microsoft.Wallet - (Microsoft Pay) for Edge browswer on certain devices VERBOSE: Removing Provisioned Package Microsoft.Windows.Photos VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Windows.Photos - Photo and video editor VERBOSE: Attempting to remove Microsoft.Windows.Photos - Photo and video editor VERBOSE: Removing Provisioned Package Microsoft.WindowsAlarms VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsAlarms - A combination app, of alarm clock, world clock, timer, and stopwatch. VERBOSE: Attempting to remove Microsoft.WindowsAlarms - A combination app, of alarm clock, world clock, timer, and stopwatch. VERBOSE: Removing Provisioned Package Microsoft.WindowsCalculator VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsCalculator - Microsoft Calculator app VERBOSE: Attempting to remove Microsoft.WindowsCalculator - Microsoft Calculator app VERBOSE: Removing Provisioned Package Microsoft.WindowsCamera VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsCamera - Camera app to manage photos and video VERBOSE: Attempting to remove Microsoft.WindowsCamera - Camera app to manage photos and video VERBOSE: Removing Provisioned Package microsoft.windowscommunicationsapps VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] microsoft.windowscommunicationsapps - Mail & Calendar apps VERBOSE: Attempting to remove microsoft.windowscommunicationsapps - Mail & Calendar apps VERBOSE: Removing Provisioned Package Microsoft.WindowsFeedbackHub VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsFeedbackHub - App to provide Feedback on Windows and apps to Microsoft VERBOSE: Attempting to remove Microsoft.WindowsFeedbackHub - App to provide Feedback on Windows and apps to Microsoft VERBOSE: Removing Provisioned Package Microsoft.WindowsMaps VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsMaps - Microsoft Maps app VERBOSE: Attempting to remove Microsoft.WindowsMaps - Microsoft Maps app VERBOSE: Removing Provisioned Package Microsoft.Xbox.TCUI VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Xbox.TCUI - XBox Title Callable UI (TCUI) enables your game code to call pre-defined user interface displ ays VERBOSE: Attempting to remove Microsoft.Xbox.TCUI - XBox Title Callable UI (TCUI) enables your game code to call pre-defined user interface displays VERBOSE: Removing Provisioned Package Microsoft.XboxApp VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxApp - Xbox 'Console Companion' app (games, friends, etc.) VERBOSE: Attempting to remove Microsoft.XboxApp - Xbox 'Console Companion' app (games, friends, etc.) VERBOSE: Removing Provisioned Package Microsoft.XboxGameOverlay VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxGameOverlay - Xbox Game Bar extensible overlay VERBOSE: Attempting to remove Microsoft.XboxGameOverlay - Xbox Game Bar extensible overlay VERBOSE: Removing Provisioned Package Microsoft.XboxGamingOverlay VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxGamingOverlay - Xbox Game Bar extensible overlay VERBOSE: Attempting to remove Microsoft.XboxGamingOverlay - Xbox Game Bar extensible overlay VERBOSE: Removing Provisioned Package Microsoft.XboxIdentityProvider VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxIdentityProvider - A system app that enables PC games to connect to Xbox Live. VERBOSE: Attempting to remove Microsoft.XboxIdentityProvider - A system app that enables PC games to connect to Xbox Live. VERBOSE: Removing Provisioned Package Microsoft.XboxSpeechToTextOverlay VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.XboxSpeechToTextOverlay - Xbox game transcription overlay VERBOSE: Attempting to remove Microsoft.XboxSpeechToTextOverlay - Xbox game transcription overlay VERBOSE: Removing Provisioned Package Microsoft.YourPhone VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.YourPhone - Android phone to PC device interface app VERBOSE: Attempting to remove Microsoft.YourPhone - Android phone to PC device interface app VERBOSE: Removing Provisioned Package Microsoft.ZuneMusic VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.ZuneMusic - Groove Music app VERBOSE: Attempting to remove Microsoft.ZuneMusic - Groove Music app VERBOSE: Removing Provisioned Package Microsoft.ZuneVideo VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.ZuneVideo - Movies and TV app VERBOSE: Attempting to remove Microsoft.ZuneVideo - Movies and TV app VERBOSE: Removing Provisioned Package Microsoft.WindowsSoundRecorder VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.WindowsSoundRecorder - (Voice recorder) VERBOSE: Attempting to remove Microsoft.WindowsSoundRecorder - (Voice recorder) VERBOSE: Removing Provisioned Package Microsoft.ScreenSketch VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.ScreenSketch - Snip and Sketch app VERBOSE: Attempting to remove Microsoft.ScreenSketch - Snip and Sketch app VERBOSE: Removing Provisioned Package Microsoft.MixedReality.Portal VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.MixedReality.Portal - The app that facilitates Windows Mixed Reality setup, and serves as the command cen ter for mixed reality experiences VERBOSE: Attempting to remove Microsoft.MixedReality.Portal - The app that facilitates Windows Mixed Reality setup, and serves as the command center for mixe d reality experiences VERBOSE: Removing Provisioned Package Microsoft.Microsoft3DViewer VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Target Image Version 10.0.19043.1288 VERBOSE: Attempting to remove [All Users] Microsoft.Microsoft3DViewer - App to view common 3D file types VERBOSE: Attempting to remove Microsoft.Microsoft3DViewer - App to view common 3D file types [VDI Optimize] Disable Scheduled Tasks VERBOSE: Exporting function 'Get-ScheduledTask'. VERBOSE: Exporting function 'Unregister-ScheduledTask'. VERBOSE: Exporting function 'Disable-ScheduledTask'. VERBOSE: Exporting function 'Enable-ScheduledTask'. VERBOSE: Exporting function 'Export-ScheduledTask'. VERBOSE: Exporting function 'Get-ScheduledTaskInfo'. VERBOSE: Exporting function 'New-ScheduledTask'. VERBOSE: Exporting function 'New-ScheduledTaskAction'. VERBOSE: Exporting function 'New-ScheduledTaskPrincipal'. VERBOSE: Exporting function 'New-ScheduledTaskSettingsSet'. VERBOSE: Exporting function 'New-ScheduledTaskTrigger'. VERBOSE: Exporting function 'Register-ScheduledTask'. VERBOSE: Exporting function 'Set-ScheduledTask'. VERBOSE: Exporting function 'Start-ScheduledTask'. VERBOSE: Exporting function 'Stop-ScheduledTask'. VERBOSE: Exporting function 'Get-ClusteredScheduledTask'. VERBOSE: Exporting function 'Register-ClusteredScheduledTask'. VERBOSE: Exporting function 'Set-ClusteredScheduledTask'. VERBOSE: Exporting function 'Unregister-ClusteredScheduledTask'. VERBOSE: Attempting to disable Scheduled Task: AnalyzeSystem VERBOSE: Attempting to disable Scheduled Task: Cellular VERBOSE: Attempting to disable Scheduled Task: Consolidator VERBOSE: Attempting to disable Scheduled Task: Diagnostics VERBOSE: Attempting to disable Scheduled Task: FamilySafetyMonitor VERBOSE: Attempting to disable Scheduled Task: FamilySafetyRefreshTask VERBOSE: Attempting to disable Scheduled Task: MapsToastTask VERBOSE: Attempting to disable Scheduled Task: Microsoft Compatibility Appraiser VERBOSE: Attempting to disable Scheduled Task: Microsoft-Windows-DiskDiagnosticDataCollector VERBOSE: Attempting to disable Scheduled Task: MNO Metadata Parser VERBOSE: Attempting to disable Scheduled Task: NotificationTask VERBOSE: Attempting to disable Scheduled Task: ProcessMemoryDiagnosticEvents VERBOSE: Attempting to disable Scheduled Task: Proxy VERBOSE: Attempting to disable Scheduled Task: QueueReporting VERBOSE: Attempting to disable Scheduled Task: RecommendedTroubleshootingScanner VERBOSE: Attempting to disable Scheduled Task: RegIdleBackup VERBOSE: Attempting to disable Scheduled Task: RunFullMemoryDiagnostic VERBOSE: Attempting to disable Scheduled Task: Scheduled VERBOSE: Attempting to disable Scheduled Task: ScheduledDefrag VERBOSE: Attempting to disable Scheduled Task: SilentCleanup VERBOSE: Attempting to disable Scheduled Task: SpeechModelDownloadTask VERBOSE: Attempting to disable Scheduled Task: Sqm-Tasks VERBOSE: Attempting to disable Scheduled Task: SR VERBOSE: Attempting to disable Scheduled Task: StartComponentCleanup VERBOSE: Attempting to disable Scheduled Task: StartupAppTask VERBOSE: Attempting to disable Scheduled Task: WindowsActionDialog VERBOSE: Attempting to disable Scheduled Task: WinSAT VERBOSE: Attempting to disable Scheduled Task: XblGameSaveTask [VDI Optimize] Set Default User Settings VERBOSE: Processing Default User Settings (Registry Keys) VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer - ShellState VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - IconsOnly VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ListviewAlphaSelect VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ListviewShadow VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ShowCompColor VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - ShowInfoTip VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - TaskbarAnimations VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\DWM - EnableAeroPeek VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\DWM - AlwaysHiberNateThumbnails VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop - DragFullWindows VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop - FontSmoothing VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop - UserPreferencesMask VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\Desktop\WindowMetrics - MinAnimate VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338393Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338393Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-353696Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338388Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SubscribedContent-338389Enabled VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager - SystemPaneSuggestionsEnabled VERBOSE: Found HKLM:\VDOT_TEMP\Control Panel\International\User Profile - HttpAcceptLanguageOptOut VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_8wekyb3d8bbwe - DisabledByUser VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.SkypeApp_kzf8qxf38zg5c - DisabledByUser VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.YourPhone_8wekyb3d8bbwe - DisabledByUser VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.MicrosoftEdge_8wekyb3d8bbwe - DisabledByUser VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.549981C3F5F10_8wekyb3d8bbwe - DisabledByUser VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization - RestrictImplicitInkCollection VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization - RestrictImplicitTextCollection VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\InputPersonalization\TrainedDataStore - HarvestContacts VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Personalization\Settings - AcceptedPrivacyPolicy VERBOSE: Found HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\SearchSettings - IsDeviceSearchHistoryEnabled

PSMessageDetails : Exception : System.Management.Automation.RemoteException: ERROR: Access is denied. TargetObject : ERROR: Access is denied. CategoryInfo : NotSpecified: (ERROR: Access is denied.:String) [], RemoteException FullyQualifiedErrorId : NativeCommandError ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at , C:\Users\rebukem\VDOT\Virtual-Desktop-Optimization-Tool-main\Win10_VirtualDesktop_Optimize.ps1: line 331 at , : line 4 PipelineIterationInfo : {}

tmmuessig commented 2 years ago

So the next thing that is run is AutoLoggers, and again that is updated some registry. Do you at least get an Event ID of 50 with a message of "Disable AutoLoggers" in the Virtual Desktop Optimization log with a Source of AutoLoggers?

The next thing we can do to try to narrow it down is to only run the scrip only doing the autologgers section

Win10_VirtualDesktop_Optimize.ps1 -Optimizations AutoLoggers -Verbose

ii-batman commented 2 years ago

@tmmuessig @jamasten May I make few a very humble suggestions? Run the script per section so you isolate which section is throwing the error. I noticed that the verbose log is a very fast to update and if a previous command errors out it wont put it in line with the command.

I also had a "Access denied" on my deployments and this entry fixed. I am very new to this game and don't want to say something wrong if this is rubbish then please let me know... M

tmmuessig commented 2 years ago

@ii-batman - That is exactly what I am suggesting is just running the next section.

jamasten commented 2 years ago

@tmmuessig, I tested AutoLoggers first with no issues. AppxPackages worked fine as well. When I specified "DefaultUserSettings", I received the "Access is Denied" error.

jamasten commented 2 years ago

@tmmuessig, I stepped through each config / json object in DefaultUserSettings. It appears this config is the offender: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects", "KeyName": "VisualFXSetting", "PropertyType": "DWORD", "PropertyValue": 3, "SetProperty": "True" },

Well this is the first config that threw an error but I continued testing and received more errors.

jamasten commented 2 years ago

Another offender: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\DWM", "KeyName": "EnableAeroPeek", "PropertyType": "DWORD", "PropertyValue": 0, "SetProperty": "True" }

jamasten commented 2 years ago

03: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy", "KeyName": "01", "PropertyType": "DWORD", "PropertyValue": 0, "SetProperty": "True" }

jamasten commented 2 years ago

Something interesting to note here... all the settings that are failing are changing the console directory to "Virtual-Desktop-Optimization-Tool-main\2009". All the other settings return at the root directory.

jamasten commented 2 years ago

04: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_8wekyb3d8bbwe", "KeyName": "Disabled", "PropertyType": "DWORD", "PropertyValue": 1, "SetProperty": "True" }

jamasten commented 2 years ago

05: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_8wekyb3d8bbwe", "KeyName": "DisabledByUser", "PropertyType": "DWORD", "PropertyValue": 1, "SetProperty": "True" }

jamasten commented 2 years ago

06: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.SkypeApp_kzf8qxf38zg5c", "KeyName": "Disabled", "PropertyType": "DWORD", "PropertyValue": 1, "SetProperty": "True" }

jamasten commented 2 years ago

07: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.SkypeApp_kzf8qxf38zg5c", "KeyName": "DisabledByUser", "PropertyType": "DWORD", "PropertyValue": 1, "SetProperty": "True" }

tmmuessig commented 2 years ago

Something interesting to note here... all the settings that are failing are changing the console directory to "Virtual-Desktop-Optimization-Tool-main\2009". All the other settings return at the root directory.

This is because it is erroring out and the script stops. If the script finished, you are returned to the starting directory. We change to that directory in the background when we start so we know were we are in the path and so we didn't have to hard code things.

jamasten commented 2 years ago

08: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.YourPhone_8wekyb3d8bbwe", "KeyName": "Disabled", "PropertyType": "DWORD", "PropertyValue": 1, "SetProperty": "True" }

tmmuessig commented 2 years ago

@sandude-ms - You did a lot of work on these settings, any insight as to why they are throwing an access denied?

jamasten commented 2 years ago

09: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.549981C3F5F10_8wekyb3d8bbwe", "KeyName": "Disabled", "PropertyType": "DWORD", "PropertyValue": 1, "SetProperty": "True" }

jamasten commented 2 years ago

10: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.549981C3F5F10_8wekyb3d8bbwe", "KeyName": "DisabledByUser", "PropertyType": "DWORD", "PropertyValue": 1, "SetProperty": "True" }

jamasten commented 2 years ago

11: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement", "KeyName": "ScoobeSystemSettingEnabled", "PropertyType": "DWORD", "PropertyValue": 0, "SetProperty": "True" }

jamasten commented 2 years ago

12: { "HivePath": "HKLM:\VDOT_TEMP\Software\Microsoft\Windows\CurrentVersion\SearchSettings", "KeyName": "IsAADCloudSearchEnabled", "PropertyType": "DWORD", "PropertyValue": 0, "SetProperty": "True" }

jamasten commented 2 years ago

@tmmuessig, the 12 configs / objects above, from the DefaultUserSetting.json file, are throwing an "Access is Denied" error. All the other configs in that file were added without an issue.

jamasten commented 2 years ago

The situation is worse now. Since new updates / error handling was added to VDOT, I am no longer able to run the tool. VDOT errors out on its own with the "Access is denied" error message. Previously, I could avoid it by setting the error handling on my end.

ii-batman commented 2 years ago

@jamasten Have you tried this fix ? :)

jamasten commented 2 years ago

ii-batman, what fix? I am running VDOT unattended with the Custom Script Extension. If a customer picks any supported version of Windows 10, the tool should run without error. The JSON files are for customization, not error handling.

Bishop256 commented 2 years ago

I believe I am running into the same problem, and doing some troubleshooting it looks like it could be surrounding the registry unload command. Spinning up a brand new Win10 multisession 21H2 VM, singing in as an admin, and running PowerShell as admin, the default user settings portion ends with an "Access in denied" message.

AVDOptimize1

I can also reproduce this by only running the default user settings optimization. After failing, trying to run the individual command "& REG UNLOAD HKLM\VDOT_TEMP | Out-Null". This tracks with the issue that arises where the NTUSER.DAT file is not able to be accessed on new user creation, leading to blocked sign-in for AVD.

However, if I restart the server after running the script, and just run the default user settings optimization again, it runs without issue.

AVDOptimize2

fbloemhof commented 2 years ago

Seeing the same behavior as @Bishop256 states, first run results in an Access Denied on the REG UNLOAD, second run after reboot finishes without errors.

fbloemhof commented 2 years ago

The reply of @ii-batman wasn't pointing correctly to #70 so I missed the solution from that topic.

I did the same adjustments and it seems that this fixes the Access Denied issue.

Bishop256 commented 2 years ago

Thanks so much @fbloemhof for that call out. I completely missed that as well.

Should be able to close this issue.

ii-batman commented 2 years ago

The reply of @ii-batman wasn't pointing correctly to #70 so I missed the solution from that topic.

I did the same adjustments and it seems that this fixes the Access Denied issue.

Sorry mate, just seen that... hope I could help!

I had to redoo the user region on my script, let me know you are interested.

jamasten commented 2 years ago

This issue was never fixed. From an interactive deployment today:

image

tmmuessig commented 2 years ago

@jamasten - We are looking at this again, and trying to figure out what is going on with it. More to come.

tmmuessig commented 2 years ago

@jamasten - We believe we have fixed this issue by replacing the & reg call for the registry loading and unloading with Start-Process. Can you give it a try when you get a chance and see if you are still having the problem?

jamasten commented 2 years ago

Thanks for your help resolving this issue. I tested on a new session host without any problems:

image