Hey folks,
Our team has been trying to remove the Microsoft store on our windows devices. They have created the following PowerShell script.
1 2 3 4 5 6 7 8 9 |
#Get the package full name of the Microsoft Store app $msStorePackage = Get-AppxPackage -Name "Microsoft.WindowsStore" # Check and remove the app if the package was found if ($msStorePackage) { Remove-AppxPackage -Package $msStorePackage.PackageFullName Write-Output "Microsoft Store has been removed successfully." } else { Write-Output "Microsoft Store is not installed on this device." } |
The script seems to work perfectly on the device itself when executed through Command Prompt. For some unknown reason, we aren’t able to execute it properly from the Hexnode console. The action history shows that the script execution was successful, and we even get the message ‘Microsoft Store has been removed successfully.’ But the app is untouched on the device.
Has anyone else faced the same issue with Windows script execution through Hexnode?