Search found 145 matches

by ITEngineer
Thu Dec 13, 2018 4:44 am
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 1947

Re: Using PowerShell to detect and remove certain type of software?

PowerShell 2 is no longer supported by Microsoft. It is considered a security problem. You need to upgrade. PS does not support most of the extensions to PS at V3 and later. Just add the "= $true" to the "[Parameter(" statement [Parameter(Mandatory=$true)] Mr. Vierra, Thanks for the update, I can s...
by ITEngineer
Wed Dec 12, 2018 10:45 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 1947

Re: Using PowerShell to detect and remove certain type of software?

Works perfectly for me. You must have damaged the file in some way. Download this again and don't make any changes to the file before running it. Is it because I'm executing it under Windows 7 Test PC: PS C:\Windows\system32> $PSVersionTable Name Value ---- ----- CLRVersion 2.0.50727.8762 BuildVers...
by ITEngineer
Wed Dec 12, 2018 10:01 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 1947

Re: Using PowerShell to detect and remove certain type of software?

Here is a rethink of what you are doing. It can help you to discover your issue. It is tested. I am posting it to help you get an idea of how you have to approach a problem like this. It will not remove anything until you change the "$ShouldProcess" variable. Mr. Vierra, Thanks for the help, howeve...
by ITEngineer
Wed Dec 12, 2018 4:12 am
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 1947

Re: Using PowerShell to detect and remove certain type of software?

As I noted, the code as posted cannot work. It does not do anything you expect from what I see. It attempts to uninstall everything. You try to uninstall everything that matches and doesn't math O365. That includes all software. The following logic includes all things found: if ($uninstall.DisplayN...
by ITEngineer
Tue Dec 11, 2018 6:41 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 1947

Re: Using PowerShell to detect and remove certain type of software?

You have to tell us what doesn't work. What are the errors. The code you have could only have worked under very restrictive circumstances if at all. If you search the MS site you will find the official MS Office cleaner tool which will remove all versions of Office. You cannot call a method on a nu...
by ITEngineer
Tue Dec 11, 2018 6:06 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 1947

Using PowerShell to detect and remove certain type of software?

Hi All, I need some help in modifying the below script that used to be working, but now it is not working. The purpose of this script is to uninstall and remove all Microsoft Office 2010, 2013, 2016 any version (Standard or Professional) 32 and 64 bit. Write it to the log file when failed. $AppDispl...
by ITEngineer
Thu Dec 06, 2018 9:23 pm
Forum: Windows PowerShell
Topic: Running Powershell with no Command Prompt display as logon script?
Replies: 6
Views: 1356

Re: Running Powershell with no Command Prompt display as logon script?

This does not need to be done on every logon. Use you admin account to remove the provisioning package once then remove all users deployment and the problem should be gone. Yes, but that's already too late since the computer has been deployed companywide. Anyway, is there anyu trick or steps to mak...
by ITEngineer
Thu Dec 06, 2018 7:04 pm
Forum: Windows PowerShell
Topic: Running Powershell with no Command Prompt display as logon script?
Replies: 6
Views: 1356

Re: Running Powershell with no Command Prompt display as logon script?

Won't work. Users cannot remove packages for other users. Hi Mr. Vierra, Yes, I have already think about that. I have already created the Group Policy steps to implement Computer Configuration\Administrative Templates\Windows Components\Cloud Content However, This setting only applies to Enterprise...
by ITEngineer
Thu Dec 06, 2018 6:51 pm
Forum: Windows PowerShell
Topic: Running Powershell with no Command Prompt display as logon script?
Replies: 6
Views: 1356

Re: Running Powershell with no Command Prompt display as logon script?

A user cannot remove a package. This can only be done by an administrator. I think you really want to use "Get-AppxPackage". Read the help for both and decide which thing you are trying to do. OK, here's the updated script. $t = '[DllImport("user32.dll")] public static extern bool ShowWindow(int ha...
by ITEngineer
Thu Dec 06, 2018 6:21 am
Forum: Windows PowerShell
Topic: Running Powershell with no Command Prompt display as logon script?
Replies: 6
Views: 1356

Running Powershell with no Command Prompt display as logon script?

Hi, Is there any way to run the below script with some additional checking to skip the uninstallation when the AppX is not even listed? Note: the script is also modified (but failed) to not show anything on the user screen. $t = '[DllImport("user32.dll")] public static extern bool ShowWindow(int han...