14 posts in this topic
Remove Windows Apps for All Users
I have messed with this time to time, but recently decided to go ahead and push it out because I have so many people having the default reader app take over adobe and since they are not admins they cant easily change the default program to adobe for their profile.
To remove the app for the current user I use.
get-appxpackage | where name -like '*reader*' | remove-appxpackage If it is a new computer build I can remove the app from the system so it does not install for any new users with this.
get-provisionedappxpackage -online | where displayname -like '*reader*' | remove-appxprovisionedpackage -online So where I am stuck is getting it off existing accounts on computers in the field. Every article, document, etc I can find says all you need to do is add the -allusers flag.
If I add the flag to the get package part it does show the package for each user, but when I pipe it into the remove-package cmdlet I get an error that the package is not installed for the current user and it does not uninstall it for any other account.
This is what I have tried:
get-appxpackage -allusers | where name -like '*reader*' | remove-appxpackage Also a revision of it
get-appxpackage -allusers *reader* | remove-appxpackage As far as I can tell, this is correct but simply is not working.
Any ideas or anybody know what the key issue that I am overlooking is?
Can I user AutoIT as a front-end to Powershell?
I have a rather heady PowerShell script that requires a few inputs that I would like to present as pick lists/pull down lists. I've fiddled with doing this using Windows API calls and frankly it's pretty ugly and non-productive. What I'd like to accomplish is to present the user with a refined UI that will force them to color between the lines and catch any error putput and display it to them in an organized fashion.
Has anyone done this? I'd like to have an AutoIT based solution as my current client didn't plan on any extra time or budget to accomplish this task.
There is a great tool called ninite (www.ninite.com)
The only problem is that it is not really 'silent'
So I wrote this little script to make it silent (like /S or /Silent or /quiet)
Just rename the downloaded 'Ninite ....... exe' into 'Ninite.exe' and place it into the same folder as the Ninite-silent.exe (my AutoIt prg) Run it and that's it !
Link to my au3 and zip files here
Also available here
EDIT: Change link website!
(almoast) Silent Ninite visite ninite.com
Put the ninite.exe file into the same folder as the silent-ninite.exe.
Run 'silent-ninite.exe' and 'See' the beauty!!! :-)