Uninstall software from remote computer

Hi All,
I confirmed that windows remote management is enable...
I wanted to create a script to remove software to one of the machine in AD environment but after run my script is nothing happen...
My scrip as below:
Import-Module ActiveDirectory
$Compt= Read-Host "Please enter the Computer Name/ IP Address that need software uninstall"
$compt1= Get-ADcomputer -filter 'name -like $compt' | select -expand name
$compt1
$soft = Read-Host "Please provide the software name you wanted to uninstall (example: Winzip)"
$soft2= "*$soft*"
$soft3= Get-WmiObject -Class win32_product -comp $Compt| Where {$_.Name -like "$soft2"}
$soft4= $soft3 | FL Name, Vendor,version, LocalPackage
"Please confirm the software you wanted to uninstall:"
$soft4
$confirmed= Read-Host "Please copy (right click -> mark -> enter to copy) and paste the local package to proceed uninstallation"
$arguments = '/x' + $confirmed + "/passive"
$uninstall= Invoke-expression "msiexec $arguments"
Invoke-command -computername $compt1 -scriptblock {$uninstall}
If I remove last 3 line and replace by below command that it works on my own machine but won't work on other remote machine:
msiexec /x $confirmed /passive
Please feel free to contact me at [email protected]

Use the uninstall method for the Win32_Product object.
$soft3= Get-WmiObject -Class win32_product -comp $Compt| Where {$_.Name -like "$soft2"}
$soft3.Uninstall()

Similar Messages

  • I cannot uninstall itunes from my computer PC. I cannot update itunes on my computer. I get this message." C:\Documents and Settings\Sally-Anne\Local Settings\Application Data\Apple\Apple Software Update\'iTunes.msi' is not a valid installation package

    I cannot uninstall itunes from my computer PC. I cannot update itunes on my computer. I get this message." C:\Documents and Settings\Sally-Anne\Local Settings\Application Data\Apple\Apple Software Update\'iTunes.msi' is not a valid installation package Try to find the installation package itunes.msi in a folder from which you installiTunes."
    I have tried a serach for the file itunes.msi and nothing comes up.
    Help anyone/
    thanks

    I get this message." C:\Documents and Settings\Sally-Anne\Local Settings\Application Data\Apple\Apple Software Update\'iTunes.msi' is not a valid installation package Try to find the installation package itunes.msi in a folder from which you installiTunes."
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I accidentally uninstalled itunes from my computer and when i redownloaded it, it says i need to download my old itunes but i dont remember which one it was?

    i accidentally uninstalled itunes from my computer, when i redownloaded the newer software, it says it wont work and that i need to download the last version of itunes that i had.. but i dont remember which version it was! i need help

    Syncing shouldn't trouch you photos unless you have photos in a Photo Library album.  These would be photos that were synced to your phone from your computer.  If you do have any, you'll need to use an app like PhotoSync to transfer them to your computer prior to syncing.
    If you prefer to backup your camera roll photos prior to syncing, open iTunes and go to Preferences>Devices and check "Prevent...from syncing automatically".  Then connect your phone to your computer and import them as explained here: http://support.apple.com/kb/HT4083.
    Then, to minimize data loss, follow the steps in this user tip: https://discussions.apple.com/docs/DOC-3141.  To follow the steps, first open iTunes and go to View>Show Sidebar.  Also, Transfer Purchases is now located in File>Devices.

  • How can I uninstall ePrint from my computer?

    I downloaded ePrint for Windows 8 and now I cannot print. This is ridiculous! My printer is an HP Laserjet P1006 and when I try to print a document, my printer doesn't even come up as an option. My printer does not support ePrint. I want things back to what they used to be. I am really angry at this and HP for ruining this. Please someone help me. I need to uninstall ePrint from my computer.
    This question was solved.
    View Solution.

    @eprintsucks 
    If HP ePrint is not showing up in your Uninstall a Program window then follow these instructions:
    1. Open devices and printers folder.
    2. Right click on the HP ePrint printer > On the pop up menu, click remove device.
    3. Highlight any other printer in the folder > go to the top task bar > click on Print Server Properties
    4. The Print Server Properties Dialogue box will open up. Click on the Ports Tab.
    5. Click on Change Driver Settings (box at the very bottom left) > find the HP ePrint driver. (screenshot shots both steps)
    5. Click Remove > Remove Driver and Package Dialogue box will open up > Click on Remove Driver and Driver Package.
    This should complete the uninstall process for you.
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

  • Can i uninstall Dreamweaver from one computer and re-install onto another comuter?

    can i uninstall Dreamweaver from one computer and re-install it on another computer?

    Yes, you require an internet connection.
    Launch DW
    Choose Help --> Deactivate
    Uninstall using the Add or Remove Programs system control panel
    Download the installer from the Adobe site directly or using this method
    Install it on the new machine
    Launch it with sufficient user privileges (admin)
    Let the activation go through
    Mylenium

  • Cisco video camera monitoring software from remote location

    Hello
    What is the best way to use the  Cisco video camera monitoring software from remote location.
    I am talking about the AVMS / SWVMS software.
    I am thinking of either a vpn tunnel or Remote Desktop (Terminal Services).
    I would like to use the vpn tunnel, but am afraid that the encryption/decryption of all data will drastically slow down the data throughput.
    THanks,
    Cliff
    CCO: clifford.gormley

    Hi Clifford,
    Thank you for posting. I use the AVMS software remotely and it works good. At first I changed the http ports of each camera and forwarded those ports in the router. I set up the cameras in the remote AVMS software with the WAN IP address and port number. That worked quite well. I then decided to try to reach the cameras through a VPN tunnel. I found that it worked perfectly and I was able to view up to 6 cameras. Your results will vary depending on how much bandwidth you have at each end. The important thing is the upload speed at the camera end of the tunnel. I have anywhere from 3-4 Mbps at any given time for the upload speed at the camera side and 30-40 Mbps download speed at the AVMS server side. I have also used UltraVNC to view the AVMS server through the tunnel and that worked well. Note that if you view the AVMS software using RDP you will see a black screen where the video should be. This is a limitation of RDP, not the software.
    Please reply if you have any questions.

  • How does one uninstall software from macbook pro?

    How does one uninstall software from macbook pro?

    I realized there was a super-easy solution to find the uninstall function to uninstall ProTools. i simply typed in uninstall protools in the internal search field (the one in the top right corner). Viola, there was the uninstall window and click, the software was gone. super easy!

  • Executing powershell script from remote computer using RSAT

    Hi.
    I want to execute powershell script on AD server from remote computer (in the same domain). I installed and tested RSAT - it is working fine. But i cant execute PS from c# code.
    ps.Commands.AddCommand("Import-Module").AddArgument("ActiveDirectory");
    ps.Invoke();
    ps.Commands.AddCommand("Get-ADOrganizationalUnit -Filter 'Name -like \"*\"'");
    var res = ps.Invoke();
     And i get exception:
    An unhandled exception of type 'System.Management.Automation.CommandNotFoundException' occurred in System.Management.Automation.dll
    Additional information: The term 'Get-SBNamespace' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

    Hi
    CapitanPlanet
    For the
    CommandNotFoundException, it means the command cannot be found.
    On the other hand, your issue is about the PowerShell, if you still have the issue, I suggest that you should post it in the
    PowerShell forum for efficient response.
    Here are some useful information, please check
      Powershell
    commands from C# not working (System.Management.Automation.CommandNotFoundException)
    Powershell, Service Bus For Windows Server Programmatically: Command found, module could not be loaded
    https://msdn.microsoft.com/en-us/library/dn282152.aspx
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Re: add-ons. Just a simple question I couldn't find an answer to. Is the term "uninstall" equivalent to "remove the software from the computer"?

    I downloaded a You Tube downloader, and expected an icon to come up when You Tube was playing, according to a friend's advice.
    Since this didn't happen I assumed the download didn't work, or was an old version that doesn't work anymore. I wanted to just get rid of it and try another downloader.
    I went to Tools--> Add-ons--> and clicked on the downloaded software and saw the 2 options [Disable] and [Uninstall]. The terminology is unclear, as I've always thought once software resides on your computer you can install it or uninstall it without erasing it from the computer.
    A simple question that seems obvious except to someone who wants to be very precise and sure. Basically "does [Uninstall] mean erase from the computer"?
    Thanks

    With Firefox extensions (Tools > Add-ons > Extensions) you have two possibilities. You can disable an extension if you do not want to use it now, but want to keep it. Or you can uninstall an extension and remove it from the computer. Note that uninstalling an extension still leaves prefs in about:config (prefs.js) and possibly files in the profile folder that will be reused in case you decide to reinstall an extension at a later time.
    See also http://kb.mozillazine.org/Uninstalling_add-ons

  • How do I uninstall the software from my computer to start the iPhone set up over again, as I have managed to set everything to several different email accounts, and want it all to operate from one?

    I Have managed to set my software to different email accounts as I already had an apple acount to one email address because of my iPod, so I set it so my old email which is full of spam, making it impossible to organise. Therefore I created a new email which I can use efficiently, but how do I reset my account on my iPhone and the software on my computer so it can all operate as one? Please HELP!

    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • Get-DfsrBacklog cmdlet doesn't work from remote computer (pssession)

    Hi there!
    I try to manage our Server 2012 R2 boxes from a Windows 7 remote machine using PowerShell. For some reason the cmdlet "Get-DFSRbacklog" seems not working remotly. The same cmdlet work when logging in locally to the server(s) with the
    same credentials. UAC is turned off on the target machines and i have local admin permissions on this servers using my domain account.
    What i do is:
    Enter-PSSession <servername>
    Get-DfsrBacklog -SourceComputerName <servername> -DestinationComputerName <servername>
    Then i receive the following error:
    Get-DfsrBacklog : Could not retrieve the backlog information. Replication group: "*" Replicated folder: "*" Source
    computer: <servername> Destination computer: <servername> Confirm that you are running in an elevated Windows PowerShell
    session and are a member of the local Administrators group on the destination computer. The destination computer must
    also be accessible over the network, and have the DFSR service running. This cmdlet does not support WMI calls for the
    following or earlier operating systems: Windows Server 2012. Details: WinRM cannot process the request. The following
    error with errorcode 0x8009030e occurred while using Kerberos authentication: A specified logon session does not
    exist. It may already have been terminated.
     Possible causes are:
      -The user name or password specified are invalid.
      -Kerberos is used when no authentication method and no user name are specified.
      -Kerberos accepts domain user names, but not local user names.
      -The Service Principal Name (SPN) for the remote computer name and port does not exist.
      -The client and remote computers are in different domains and there is no trust between the two domains.
     After checking for the above issues, try the following:
      -Check the Event Viewer for events related to authentication.
      -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or
    use HTTPS transport.
     Note that computers in the TrustedHosts list might not be authenticated.
       -For more information about WinRM configuration, run the following command: winrm help config.
        + CategoryInfo          : ProtocolError: (zursf1003:String) [Get-DfsrBacklog], DfsrException
        + FullyQualifiedErrorId : Get-DfsrBacklog.CimException,Microsoft.DistributedFileSystemReplication.Commands.GetDfsr
       BacklogCommand
    Any ideas?

    This article
    suggests that you're logged into your Win7 management machine with local credentials. You should try the Get-DfsrBacklog command with domain credentials:
    Client is in a domain: Attempting to connect to a remote server by using implicit credentials that are the local administrator's credentials on the client. Instead, use domain credentials that are recognized by the domain of the target server, or right-click
    the server entry in the Servers tile, click Manage As, and then specify credentials of an administrator on the target server.
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • How can I uninstall mozilla from my computer I can not do it from my uninstall program

    When I signed on to my computer Mozilla Fire Fox will not come up therefore not able to get into my favorites or anything. I do not know what happened and I can not uninstall from my computer and need to get it off so hopefully I can reinstall and get it to work.

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    See also:
    *http://kb.mozillazine.org/Browser_will_not_start_up

  • HT1473 How can I move my iTunes software from one computer to another?

    I purchased a new PC.  I tried copying my iTunes software to the new computer, but it wouldn't open.  So I downloaded a new copy of iTunes to the new computer.  When I tried to sync my iPhone to the new iTunes, it wouldn't allow me to put the music on my iPhone into the iTunes library because my new PC wasn't "Authorized".
    How to I move the iTunes software from my old PC to the new PC so I won't have this sync problem?

    See this migrate iTunes library post for moving your library across.
    You don't generally copy installed programs, but rather use their installers on each machine.
    You can authorize the new computer from the Store menu. The menu bar is initially hidden but can be revealed with CTRL+B.
    tt2

  • How do i get my old firefox profile back after uninstalling it from my computer

    I uninstalled firefox by accident because I was on another user account on my laptop and I didn't realize that it would uninstall it from my programs. how do I get all my bookmarks back after reinstalling firefox from scratch?

    You will have to do this the hard way.
    Open the file browser / explorer on your computer.
    Depending on your system, you need to find this folder;
    '''C:\Users\'''=<User Name>='''\AppData\Roaming\Mozilla\Firefox\Profiles'''
    The profile with the newest date should be the new profile. Look for the
    profile with the next newest date. That is likely the one you are looking for.

  • Cannot log into T61 from remote computer with wired network and Windows Explorer.

    Hi,
    I am using a T61 7662-cto with Windows 7 Professional
    When the T61 is connected on the home network with the wired network, I am not able to log into it remotely from another computer. On my second computer, I see the T61 with Windows Explorer but instead of getting the login window, it appears a Network Error with the message:
    “Check the spelling of the name. Otherwise, there might be a problem with your network.” With a error code 0x80070035, “The network path was not found.” I tried the “Diagnose” button but it doesn’t give solution.
    When the T61 is wireless connected, there is no problem. I can access it from my second computer.
    I never have problem to connect to the second computer from the T61 with any connection type . I just updated the Intel Wireless LAN (bg, abg, abgn) for Windows 7 – ThinkPad, with the drivers required but it changes nothing.
    http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-73611
    Do you have a hint for this issue why the wired network gives problem?
    Thanks

    Open this post, go to the flagged message. On its right is a button
    to turn off the flag.
    I went to the site. The only problem I had was one has to sign in
    to see anything. Even the main page had a very large ''Please
    Sign In'' covering the window.
    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences'''<Enter> in the address bar.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.

Maybe you are looking for