{"id":41,"date":"2010-10-30T01:48:19","date_gmt":"2010-10-30T01:48:19","guid":{"rendered":"http:\/\/aceplaza.com\/?p=41"},"modified":"2011-07-12T00:26:02","modified_gmt":"2011-07-12T00:26:02","slug":"using-powershell-instead-of-stsadm","status":"publish","type":"post","link":"https:\/\/blog.aceplaza.com\/?p=41","title":{"rendered":"Using PowerShell instead of STSADM"},"content":{"rendered":"<p>Since <a title=\"http:\/\/technet.microsoft.com\/en-us\/library\/ff607713.aspx\" href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ff607713.aspx\" target=\"_blank\">Microsoft is deprecating STSADM<\/a>, I decided to do deploy a solution using PowerShell (which I like a lot). Microsoft has a nifty STSADM to PowerShell mapping guide, located <a title=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee906565.aspx\" href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee906565.aspxhttp:\/\/technet.microsoft.com\/en-us\/library\/ee906565.aspx\" target=\"_blank\">here<\/a> (until the link dies).<!--more--><\/p>\n<p>So for example, to deploy a solution using STSADM, you typically do the following:<\/p>\n<pre lang=\"text\">Stsadm -o deploysolution -name Microsoft.TeamFoundation.SharePoint.wsp -local -force<\/pre>\n<p>To do the same thing using PowerShell cmdlets you&#8217;d do the following:<\/p>\n<pre lang=\"text\">Install-SPSolution -Identity tswawebpartcollection.wsp -WebApplication http:\/\/sharepointsitename -local -force<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Since Microsoft is deprecating STSADM, I decided to do deploy a solution using PowerShell (which I like a lot). Microsoft has a nifty STSADM to PowerShell mapping guide, located here (until the link dies).<\/p>\n","protected":false},"author":721,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,4],"tags":[26,21],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-powershell","category-sharepoint","tag-powershell","tag-sharepoint"],"_links":{"self":[{"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/users\/721"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":10,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":103,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions\/103"}],"wp:attachment":[{"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}