Scripting powershell in Windows 10 not working
Hello All,
I have been racking my brains lately trying to get a script to remove OneNote from Windows 10. However, no matter how hard that I try (even with instructions from Quest), I can't get the script to uninstall OneNote.
Below is the page that I am referencing:
The weird thing is that if I run the powershell script alone on the PC, it works. If it is from KACE, it doesn't work. I am working on the latest version of Windows 10.
Has anyone run into this issue? If so, do you have any tips/tricks to figure it out?
3 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
five.
6 years ago
If you go to inventory - software and find the OneNote in question, does it have an uninstall command? If you run that command does it work? That's usually how handle an uninstall through scripting. Here is an example of a script that uninstalls CiscoMeeting:
I do not have any examples that I've tested using the powershell method on the K1. I have used powershell on the K2 however with no issues. When I look on the K1, there is a script called "K1000 Enable Detailed DDPE Inventory" that has an example of a powershell script. Maybe you have that one and can check out the details of how it works.
I do not have any examples that I've tested using the powershell method on the K1. I have used powershell on the K2 however with no issues. When I look on the K1, there is a script called "K1000 Enable Detailed DDPE Inventory" that has an example of a powershell script. Maybe you have that one and can check out the details of how it works.
Comments:
-
The only information that I can find is uninstalling it via PowerShell. It is one of the store apps and is installed with the installation of Windows 10. OneNote does not show up in installed software. - zgillette 6 years ago
-
That one is ugly. Every user that logs into windows will have it installed. So you need to either set up "Active Setup" or possibly modify your default user in regedit. If the only user that uses the machine is the one logged in, you can run the script as logged-in user. Just know that anyone else that logs in will have it as well. - five. 6 years ago
-
I'm not worried about this with any new computers, as I have the PowerShell run with the K2000 and that one works just fine. Plus, only one user works with a machine for the life of the machine. I am just working with the ones that have already deployed. - zgillette 6 years ago
-
I figured out the issue, for at least one user. You have to run the script as All Logged In Users. Otherwise it won't work.
I spent 5 hours working on ripping apart, removing parts, and adding them back into Windows 10 just to get rid of the OneNote portion on the K2000. For some reason they don't give you the availability to do that with OneDrive as well. Why, I have no clue. - zgillette 6 years ago-
Old post but this one helped. Thanks. Was attempting to remove bundled Win10 apps like Xbox and Mail via PS and running as All Logged in users allowed it to work. - zbowman 5 years ago
I’ll try the batch file and report back. I really prefer to not need to add files to endpoints, even small ones like batch files if I can avoid it. - infinite_e 6 years ago