![]() LogOutput " lets uninstall the old version" LogOutput " Windows Store version of Quick Assist is already installed" $InstallAppX = Get-AppxPackage -allusers MicrosoftCorporationII.QuickAssist LogOutput "***This script is used to install the new Quick Assist app that is from the Microsoft Store. "$($LocalComputer) $(get-date -Format 'MM/dd/yyyy HH:mm') $($Message)" | Out-file -FilePath $LogFile -Append -Force $LogFile = "\\Network\Share\QuickAssist\Quick-Assist-install.log" Insure all users have Modify access to this share # Added $LocalComputer to tag the computer name at the begining of every log lines #Switches used are "-install" and "-uninstall" #This script will install the new Quick assist and remove the old version Just update the network paths to your own. ![]() You can compare it side by side to DroidKid’s script if you want to see the 3 minor changes. This is a copy paste of the modified script (sanitized). And as always: TEST BEFORE DEPLOYING TO THE WHOLE ORGANISATION Note that for the GPO, I used it as a user logon script, not computer and used those parameters: -Noninteractive -ExecutionPolicy Bypass -NoprofileĪt the time of typing, this it is still in my test environment but it’s good enough to pass on the knowledge. ![]() I know right, it’s dumb and why didn’t we think of this before? ![]() This allows me to host the package on a network share and pass the script in a GPO. I used the image deployment logic: DISM.EXE instead of Add-AppxProvisionedPackage. So may treads, no solutions to this problem. All I did was some very minor modifications (disabled switches, logging PC name and updating 1 function) I must give massive credit to DroidKid since he took care of all the heavy lifting. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |