I have run the below fixlet in the debugger it was successful but when i executed it in Bigfix console, but it fails
Please advise
action uses wow64 redirection false
delete __createfile
// CREATEFILE
createfile until END_OF_FILE
Get-appxprovisionedpackage –online | where-object {{$_.packagename –like ‘Microsoft.WindowsStore’} | remove-appxprovisionedpackage –online
END_OF_FILE
delete store.ps1
move __createfile store.ps1
waithidden { pathname of file ((it as string) of value “Path” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell” of native registry) } -ExecutionPolicy unrestricted -File store.ps1
I believe those PowerShell cmdlets have a parameter to target all users; by default I think they only remove the package from your own profile (i.e. the ‘LocalSystem’ account when run through BigFix).
1 Like
Hi Jason, do we have any fixlets to remove MS Store from the Win 10 machines
action uses wow64 redirection false
// Define PowerShell script to remove the Microsoft Store
delete __createfile
createfile until END_OF_FILE
Get-AppxPackage -allusers Microsoft.WindowsStore | Remove-AppxPackage
END_OF_FILE
// Write PowerShell script to file
delete remove-store.ps1
move __createfile remove-store.ps1
// Execute PowerShell script with unrestricted execution policy
waithidden {pathname of file "powershell.exe"} -ExecutionPolicy Unrestricted -File "remove-store.ps1"
I can’t test right now but this should work.
1 Like