Get , remove and install the spusersolution again using powershell if solution exists already

hi,
i want to know how can i write in my powershell script:
if spusersolution exists on the soutions gallery in my site collec , i want to uninstall this and re-install again
$solutionIS = $sandboxSite | Get-SPUserSolution | where-object {$_.Name -eq $solutionName}
aftre this, how can i check whether this exists , if exists i want to remove and install and activate this again.
else if it doenst exists, i want to deploy directly.

Hi, You can use the following. Please let me know how that goes:
if([bool($solutionIS = $sandboxSite | Get-SPUserSolution | where-object {$_.Name -eq $solutionName}))
#It exists, so remove it
Remove-SPUserSolution $solutionIS
#install the solution again.
Install-SPUserSolution "some solution"
i
Nico Martens
SharePoint/Office365/Azure Consultant

Similar Messages

  • Why can`t I download and instal the osx lion in brazil if I have already bought it?

    First of all, sorry for my english, but i`m not so good in it.
    Well, i`m trying to download and install the osx 10.7 in my 2009 macbook,
    i have already bought and used it before in my macbook,
    after installing the osx 10.8, i didn`t like and decided to go back to Snow Leopard.
    Now, i`m trying to download and instal but i can`t because they say that this osx isn`t available for my country.
    i think that if i have paid for this osx, i have the right to download and instal it again, can you help me?
    Tks.
    Gabriel
    Belo Horizonte
    Brazil.

    Not really sure but go to settings/itunes & app store on you phone and make sure you are logged in there with your Apple ID

  • I get the following message on my laptop Upon opening the following message appears : C:usersdadappDatalocalTemppropsys.dll is either not designed to run on windows or it contains an error. Try installing the program again using the original installation

    Is this an app problem?

    Don't think so ... most references I can find online to that message suggest it's associated with Microsoft Office installs.
    Is your Office attempting to do a repair install when you open your computer?

  • How can I install the programms again after a system restore?

    After my system went down, right after installation of the programms with the Adobe Applicaton Manager, I had to restore the system. Of course by then all the installed applications weren't working.
    I will have to reinstall them. But unfortunately I can't download and install the applications again because AAM thinks they are allready installed. Thus far nothing works. Who can help me?

    Run the Cleaner tool to remove all the Adobe Software and then check in the AAM.
    To download the Cleaner tool :- www.adobe.com/support/contact/cscleanertool.html

  • When starting iTunes I continually get an error message " The registry Settings used by the iTunes drivers for importing and burning CDs and DVDs are missing.  This can happen as a result of installing other CD burning software. Please reinstall iTunes."

    When starting iTunes I continually get an error message " The registry Settings used by the iTunes drivers for importing and burning CDs and DVDs are missing.  This can happen as a result of installing other CD burning software. Please reinstall iTunes."  I have unistalled and reinstalled iTunes several times and have cleaned up the registry using a 3rd party Windows utility.  Any tips on removing this error message for good?

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?

    I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?
    i tryed with download mavericks but finally its saying a error message like cant conect to istore like that its saying and every thing is clear like internet and other stuf i tryed with 3times no progress same error pls help.. i bought this lap for my bro with his apple id only we use it now he got a new mac book pro so he gave to me so i formated and use it i use my apple id is that problem come because of changing apple id ? pls eplain

    Firstly, what is the source of the 10.6.4 disc? Is it the original installation disc for your MacBook, or one 'borrowed' from another computer?
    It isn't the retail version, because that's 10.6.3.
    Assuming it's the correct disc (i.e. the one that shipped with your Mac), you need to boot from it again.
    OK the language page.
    From the installer screen, ignore the continue button, go to the menu bar and choose Disk Utility from the Utilities menu.
    In DU, select your internal drive in the sidebar (the top item with the makers name and serial no.).
    Run Repair Disk. If that comes up as disk OK, click the partition tab. Select the partiton from the drop-down above the graphic; 1 partiton is all you need.
    Go to the options button and ensure that the partition scheme is GUID and the file system to Mac OS Extended (Journalled). Name the partiton (usually Macintosh HD), click Apply.
    When the Macintosh HD volume appears below the drive name, quit DU and see if you can then install.
    If the screen after the language screen doesn't show the menu bar, it may be necessary to use another Mac to do the job with the MB in Firewire Target Disc Mode. If it won't boot in TDM, or the MB doesn't have FireWire then it's getting very difficult.

  • HT1349 Trying to download and install the latest version of itunes but at install i get"older version of Bonjour connot be removed" then asks me to contact tech support and download is stopped.

    Trying to download and install the latest version of itunes but at install i get"older version of Bonjour connot be removed" then asks me to contact tech support and download is stopped.

    Download the Windows Installer CleanUp utility from the following page (use one of the links under the thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another install. Does it go through this time?

  • Recently moved and installed ATT DLS - I use their wireless router and connectted my airport express - Now I'm getting the Blue ? on some images

    Recently moved and installed ATT DLS - I use their wireless router and connectted my airport express - Now I'm getting the Blue ? on some images - and at times - videos don't load.  I've increased / deleted Cache.  Suggestions? Misconfig?  Could it be possible my configuration from MacBook to router isn't correct?
    Thanks!

    JG,
    Thanks for the info.
    Couple of questions. I found an apple support document on this topic that opened with this line:
    "AirPort Express and all AirPort Extreme base stations can use WDS. Earlier AirPort base stations can't."
    If the TC is an airport extreme base station, why can't this work to extend the network? I think I misunderstand. Here is the full article:
    http://support.apple.com/kb/HT2044?viewlocale=en_US
    If I buy a new airport extreme, set it to wireless-n only as my main router, am I correct that my existing time capsule could be used as a bridge if plugged in upstairs?
    Final question (and that should do it), could I take this old airport express, plug it in upstairs using the ethernet connection, and just create a separate wireless network to use with a different name?
    I'd like to keep one network if possible but just kicking around short term solutions.
    Thanks again.

  • Got error message this Ipod cannot be used because the required software is not installed. Run the Itunes installer to remove Itunes and install the 64-bit version and already have latest version and 64

    Got error message :"This this Ipod cannot be used because the required software is not installed. Run the Itunes installer to remove Itunes and install the 64-bit version"   This is on a new macbook.  I already have the latest version installed and 64 bit.  Help.

    Did you do what the message said?
    Also try using the Win 7/Vista link in the following:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP

  • Hello i have a imac and i want to install cs6 photoshop and i keep getting installation failed indicating i have a conflicting version must be removed before installing the current media. I have deleted everything related to above and previous photo shop

    hello i have a imac and i want to install cs6 photoshop and i keep getting installation failed indicating i have a conflicting version must be removed before installing the current media. I have deleted everything related to above and previous photo shop files i could think of, could you please help out with this. thanks

    teddyscroggins wrote:
    …have deleted everything related to above and previous photo shop files i could think of, could you please help out with this. thanks
    That is precisely the WRONG thing to do. You should never delete, but uninstall.
    Now you need to look for, download and run the Adobe CS Cleaner tool.

  • HT201210 I was in the middle of installing the new update using the wifi at a local restaurant when I lost the wifi signal and my iPhone shut down, and now I can't get into the phone. I only get the iTunes logo with the cable pic. What are my options now?

    I was in the middle of installing the new update using the wifi at a local restaurant when I lost the wifi signal and my iPhone shut down, and now I can't get into the phone. I only get the iTunes logo with the cable pic. What are my options now?

    Your only option is to connect your iPhone to your computer via USB (as the diagram indicates) and restore using iTunes.

  • For some reason I cannot download and install the latest version of iTunes. 11.0.2. Could you help please? Each time I try, I get a command box saying 'The feature you are trying to download is on a network resource that is unavailable. Click Ok to try ag

    For some reason I cannot download and install the latest version of iTunes. 11.0.2. Could you help please? Each time I try, I get a command box saying 'The feature you are trying to download is on a network resource that is unavailable. Click Ok to try again or enter an alternate path to a folder containing the installation package iTunes.ms in the box below.
    Please help!
    Many thanks in advance
    Ben Bentley
    West Midlands
    UK

    (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 am trying to unistall firefox 20 and install the newest firefox version but it won't unistall. It remembers all my data if I install again.

    I am trying to uninstall Firefox 20 and get the newest version which I think is version 21? It will not let me unistall it when I go to the start menu and hit on unistall a program and then choose Firefox. It shows, " Please wait while firefox is unistalling," but it never uninstalls. The green bar never moves. I tried to uninstall it manually and then install firefox 21 but then firefox 20 came back up (after I installed the new version) with all my saved data. It looked like it did before I uninstalled it manually, or thought I did.
    I don't want any of my data. Just a fresh page!
    I just want the firefox startpage, no google, yahoo, etc... I can't figure this out. Apparently, i am more technically challenged than previously thought!
    If anyone can help, please let me now. I run Windows 7 pavilion notebook.

    #Before Uninstall take backup of your Firefox Profile.
    #*http://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    #*http://kb.mozillazine.org/Profile_backup
    #After Firefox File > Quit
    #Uninstall and Reinstall your Firefox
    #Restore your Profile.
    #*http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox <br>
    _______________________________________________________________________________ <br>
    *Clean Reinstall
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • How to get and install the new MSI Bluetooth Software Package 1.4.3.3.

    How to get and install the new MSI Bluetooth Software Package 1.4.3.3.
    This little FAQ will only cover the new version of MSI Bluetooth Software Package.
    First thing too do is unistall any older version of the MSI Bluetooth Software.
    Do this through the Add/Remove program applet in your control panel.
    There seams too be only through Live update you could get the new version of MSI Bluetooth Software Package.
    If you can't see any enter for MSI Bluetooth Software in the Live driver section of Live update then you have too enter the following too your registry.
    Create following code in Notepad and save it as MSILD.reg, then run the file.
    ;-->Code start
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\MSI\Drivers\MSI Bluetooth Software]
    "DrvSetup"="1"
    "Version"="1.4.2.10"
    ;-->Code end
    Rerun the Live update and hopefully you will now see a entry for MSI Bluetooth Software in Live driver section.
    Install the new version of MSI Bluetooth Software and reboot your computer. Even if the setup program doesnt told you too doit.
    After rebooting the computer you will see the Bluetooth icon in the taskbar. If it's Red then try too start the Bluetooth services by right click on the try icon and the only alternetiv there is.
    If the Bluetooth services is asking for a valid licens.dat then you should do the following.
    Surf to Jon's Bluetooth guide http://www.jonsguides.com./bluetooth/prepare.html and download the patcher from the link there.
    Unzip the the patcher and then run the BTWPatcher.exe program.
    Now the Bluetooth services will start and you will bee able too configure your own settings for the Bluetooth services.
    If nothing of this work you could try the complete Bluetooth solution at Jon's gudie and install the IBM version of the same program. I havent test this solution and will not do soo.

    I have the MS-6968 device and i want to use driver 1.4.x or 3.0.x. I found the driver 1.4.2.10 but i cannot find any WIDCOMMSecurity code.
    So, can anyone give me a link for BTWPatcher.exe???
    It cannot be found here (Jon's Bluetooth ) anymore.
    Thanks

  • This field contains duplicate values. Remove all duplicate values and try the operation again.

    Greetings Everyone,
    I am getting the follow up errors: "This field contains duplicate values. Remove all duplicate values and try the operation again."
    when I tried to make the field "Claim Number" from the list in site collection library. See the screen below:
    1- I selected on the "List" and I clicked on the list name
    "Claim Tracking Report"
    2- After I clicked on the list name then I went to the ribbon and selected list setting to choose Enforce Unique for the Field Column
    "Claim Number"
    3- Then I went down and selected
    "Yes" to Enforced the Unique for the Field Column "Claim Number".
    4- Then after I clicked "Yes" I got the error
    "Sorry, something went wrong. This field contains duplicate values. Remove all duplicate values and try the operation again."  But I don't have any duplicates values Items, because I had them removed before I tried
    to Enforce the field column values to Unique. Can someone help or provide me a suggestions on how I can solve this issue please. Thank you
    FYI: I am using a Nintex Workflow

    Hope this is a list, how many total items are there?
    Please try to open this list as access(link in IE) and run this query in access
    SELECT Claim.[Claim Number], Count(*) AS Expr1
    FROM Claim
    GROUP BY Claim.[Claim Number]
    HAVING (((Count(*))>1));
    Hope it will show something! if this does not show you dups then better to create a separate list and migrate items after configuring unique column.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

Maybe you are looking for

  • How do I make a photo box

    When insert my photos into theme preset photo boxes my photos don't fit the proportions of the box and get cropped. Part of the photo cannot be seen. I see how one can make a text box in Keynote, but how can one make a photo box that is different the

  • Selection of data based on condition

    Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code Nothing remains, so locked. Rob Edited by: Rob Burbank on Mar 12, 2010 10:56 AM

  • How to convert/restore data from SO_DOCUMENT_READ_API1 in a file ?

    Hi all, I have succeed in finding where my attachment data were stored thanks to the SO_DOCUMENT_READ_API1. But how could I convert/restore those data in the original file ? (data seems to be in a RAW format store in table Object_Content) If I want m

  • FND_USER_PKG.CreateUser - ORA-20001: Custom user name validation

    Hi, I created a user IDM in Oracle ERP instance (R12.1.2). I gave execute privilege on FND_USER_PKG to IDM. I also created synonym IDM.FND_USER_PKG for APPS.FND_USER_PKG; I logged in to SQLPLUS as IDM and executed the below and got an error - ORA-200

  • Text read confirmation

    Is there any way to know when the recipient has read their text message? I have a 6133