Remote uninstall wmi


















Search related threads. Remove From My Forums. Answered by:. Archived Forums. The Official Scripting Guys Forum! If your answer is "yes," you know what to do. Dive in and help somebody! If your answer is "no," welcome to our fun little world!

We'd recommend that you first head over to the Script Center, get your feet wet, and then come back to either ask or answer questions. We can't be everywhere at once we know—shocking! The Microsoft Scripting Guys 0 2. Sign in to vote.

Uninstall Script works fine when run locally. Verify that you have sufficient permissions to access the registry or contact your Information Technology department for assistance. Wednesday, January 28, PM. This blog may be of use to you. Thanks, Adam. Thursday, January 29, AM. You can work around this by scheduling the following command to run on the remote computer: msiexec.

I will take extreme caution in testing these as a few comments above advise against this method. In any event I appreciate your sharing this routine.

Guys, thank you for your feedback. But there are situations when the administrator does not want to use third-party software for financial reasons, or because this is prohibited in the company, etc. And then you have to use standard tools. But here again, everything depends on the administrators. Some of them simply do not want to work with PowerShell and Vbscript and do not want to learn it, because they are used to work with WMIC.

In any case, KB is exploratory in nature and is an alternative to scripts and third-party software. It is also possible that I forgot to mention in this guide that before using any tools and solutions unfamiliar to you, it is absolutely necessary to perform a backup. Learn Windows General Windows. General Windows Best Practices Windows Peter Action1 This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional. Oct 29, 2 Minute Read. Reply 4. Facebook Twitter Reddit LinkedIn. Peter Barnett This person is a verified professional. Peter Action1.

Using the [WMI] type accelerator takes less than one-half of a second. This is more than 10 times faster. By the way, there was not much difference between using the filter to look for Microsoft Silverlight or using the Where-Object.

In the following output, I use the Measure-Object cmdlet to determine the performance of using the Where-Object the? Days : 0. Hours : 0. Minutes : 0. Seconds : 5. Ticks : TotalDays : 6. TotalHours : 0. If you suspect that the problem with the filter is that I used the like operator as opposed to the equality operator, that is not the case.

Here are the results from using the equality operator. The properties and their associated values are shown in the following image. The InstallLocation property points to the location where the software installs. It appears only on instances of the class.

Therefore, it is possible to uninstall software by using the command that is shown here. I invite you to follow me on Twitter and Facebook. If you have any questions, send email to me at scripter microsoft. See you tomorrow. Until then, peace. Comments are closed. Is there a way you can send parameters to the uninstall method? I used this and the computer restarted without warning. Scripting Forums. PowerShell Forums.



0コメント

  • 1000 / 1000