Answered by:
Adding SharePoint 2007 cmdlets to PowerShell 2.0

Question
-
Never used PowerShell with MOSS 2007. How do I add the standard SharePoint cmdlets (e.g. Get-SPWeb) for MOSS 2007?
- Edited by Mike Walsh FIN Wednesday, August 31, 2011 6:33 AM SP 2010 reference off-topic
Tuesday, August 30, 2011 3:56 PM
Answers
-
Hi Josh JB,
some cmdlet code are deploy in sharepoint 2007 (named stsadm command). see this article about sharepoint 2007 command:
- Marked as answer by Qiao WeiModerator Tuesday, September 6, 2011 6:39 AM
Tuesday, August 30, 2011 5:23 PM -
Just to let you know, there weren't any PowerShell CMDLETs shipped by Microsoft for SharePoint 2007.. You're either going to have to create your own using STSADM or the SharePoint Object Model, or look for community-provided CMDLETs (luckily there's quite a few out there).
If you want to go the community route, Alireza has provided you with a link to the gold standard source for community-provided CMDLETs, MVP Gary Lapointe. The other places I'd recommend looking would be searching on Codeplex.com, the TechNet Scripting Center (http://technet.microsoft.com/en-us/scriptcenter/bb410849), and PoshCode.org.
John
MCITP and MCTS: SharePoint, Virtualization, Project Server 2007
My books on Amazon: The SharePoint 2010 Disaster Recovery Guide and The SharePoint 2007 Disaster Recovery Guide.
My blog: My Central Admin.- Edited by Mike Walsh FIN Wednesday, August 31, 2011 6:34 AM SP 2010 reference removed
- Marked as answer by Qiao WeiModerator Tuesday, September 6, 2011 6:39 AM
Tuesday, August 30, 2011 6:03 PM
All replies
-
Hi Josh JB,
some cmdlet code are deploy in sharepoint 2007 (named stsadm command). see this article about sharepoint 2007 command:
- Marked as answer by Qiao WeiModerator Tuesday, September 6, 2011 6:39 AM
Tuesday, August 30, 2011 5:23 PM -
Just to let you know, there weren't any PowerShell CMDLETs shipped by Microsoft for SharePoint 2007.. You're either going to have to create your own using STSADM or the SharePoint Object Model, or look for community-provided CMDLETs (luckily there's quite a few out there).
If you want to go the community route, Alireza has provided you with a link to the gold standard source for community-provided CMDLETs, MVP Gary Lapointe. The other places I'd recommend looking would be searching on Codeplex.com, the TechNet Scripting Center (http://technet.microsoft.com/en-us/scriptcenter/bb410849), and PoshCode.org.
John
MCITP and MCTS: SharePoint, Virtualization, Project Server 2007
My books on Amazon: The SharePoint 2010 Disaster Recovery Guide and The SharePoint 2007 Disaster Recovery Guide.
My blog: My Central Admin.- Edited by Mike Walsh FIN Wednesday, August 31, 2011 6:34 AM SP 2010 reference removed
- Marked as answer by Qiao WeiModerator Tuesday, September 6, 2011 6:39 AM
Tuesday, August 30, 2011 6:03 PM