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

Error: Attempting to Stop Service RmSvc - Radio Management and Airplane Mode Service. #113

Closed ii-batman closed 2 years ago

ii-batman commented 2 years ago

Hi Everyone 🥇 Running via Azure DevOps using AIB Agent deploying W10 2004 21H2 from the Azure Store and I get this error on Radio Management Service:

The problem is that this service is not specified in the services.json file! I don't know where this references is coming from...

[] PACKER OUT azure-arm: VERBOSE: Attempting to Stop Service RmSvc - Radio Management and Airplane Mode Service. [] PACKER OUT azure-arm: Stop-Service : Service 'Radio Management Service (RmSvc)' stop failed. [] PACKER OUT azure-arm: At C:\buildartifacts\Working\Optimize\Virtual-Desktop-Optimization-Tool-main\Win10_VirtualDesktop_Optimize.ps1 [] PACKER OUT azure-arm: :428 char:33 [] PACKER OUT azure-arm: + Stop-Service $Item.Name -Force [] PACKER OUT azure-arm: + ~~~~~~ PACKER OUT azure-arm: + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Stop-Service], S PACKER OUT azure-arm: erviceCommandException [] PACKER OUT azure-arm: + FullyQualifiedErrorId : StopServiceFailed,Microsoft.PowerShell.Commands.StopServiceCommand [] PACKER OUT azure-arm: [] PACKER OUT azure-arm: VERBOSE: Attempting to Disable Service RmSvc - Radio Management and Airplane Mode Service. [] PACKER OUT azure-arm: VERBOSE: Attempting to Stop Service SEMgrSvc - Payments and NFC/SE Manager: manages payments and Near Field [] PACKER OUT azure-arm: Communication (NFC) based secure elements.

Thanks, @tmmuessig @robsmi-msfte @msft-jasonparker

tmmuessig commented 2 years ago

Hey @ii-batman are you sure that you are using the correct version of the config files? I don't see the RmSvc "Radio Management and Airplane Mode Server" in the 2004 configurations, but it is there in the 2009 > ConfigurationFiles > Services.json on line 66.

ii-batman commented 2 years ago

Hi @tmmuessig - apologies for wasting your time on this was using the old [Win10_VirtualDesktop_Optimize.ps1] so I switched to use [Windows_VDOT.ps1] and this worked fine.