Wednesday, February 29, 2012

Quick Notes: SharePoint Solution Deployment Commands - PowerShell

------------Add Snippet-------------------------
"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\SharePoint.ps1"
Add-PSSnapin Microsoft.SharePoint.PowerShell
------------Add Solution-------------------------
Add-SPSolution "E:\SPSolutions\SharePoint. Finance.wsp"
Install-SPSolution –Identity SharePoint.Finance.wsp –WebApplication " http://SPServer:1000/" –GACDeployment -force
------------Update  Solution-------------------------
Update-SPSolution –Identity SharePoint.Finance.wsp –LiteralPath "E:\SPSolutions\SharePoint. Finance.wsp" –GacDeployment
------------Add Feature------------------------
Install-SPFeature Feature1 -force
Enable-SPFeature –Identity Feature1 –url "http://SPServer:1000/sites/Finance/"
------------Remove Feature------------------------
Uninstall-SPFeature Feature1
Disable-SPFeature –Identity Feature1 –url "http://spserver:1000/sites/Finance/"   

Microsoft has provided a tool to design PowerShell commands for SharePoint
Check this...
http://www.microsoft.com/resources/TechNet/en-us/Office/media/WindowsPowerShell/WindowsPowerShellCommandBuilder.html

3 comments:

  1. Thanks Amit..
    Really very helpful for new users

    Regards
    Vishal Wattamwar

    ReplyDelete
  2. Do you understand there's a 12 word sentence you can tell your partner... that will trigger deep emotions of love and impulsive attraction to you deep within his heart?

    Because hidden in these 12 words is a "secret signal" that fuels a man's impulse to love, idolize and care for you with all his heart...

    12 Words That Trigger A Man's Desire Instinct

    This impulse is so built-in to a man's genetics that it will make him work harder than ever before to take care of you.

    In fact, fueling this powerful impulse is so mandatory to achieving the best ever relationship with your man that the second you send your man one of these "Secret Signals"...

    ...You'll instantly notice him open his mind and soul to you in a way he never expressed before and he will recognize you as the one and only woman in the world who has ever truly tempted him.

    ReplyDelete
  3. Nikmati Bonus Menarik Dari Bolavita Sekarang...
    -Nikmati Bous New member 10%
    -Nikmati Bonus Cashback Hingga 10%
    -Nikmati Juga Bonus jackpot Hingga Ratusan juta Rupiah Setiap harinya...

    Info Lengkap Hubungi:
    WA : 0812-2222-995
    Line : cs_bolavita
    Link : www.bolavita1.com

    TERIMA KASIH

    ReplyDelete