Tagged Questions
1
vote
2answers
859 views
This powershell runs but why is it so slow
I ran this powershell which automates wsp addition, activate, deploy web parts and it runs fine. However, it takes about 3 minutes to go through the whole process. Is this norm?
= = = powershell code ...
4
votes
2answers
1k views
Removing Orphaned WebParts via PowerShell - CheckIn/CheckOut Requirement Loop
A client migrated from 2007 to 2010 doing a database detach/reattach without checking the database for orphaned objects first. I whipped up a PowerShell script to programmatically remove orphaned ...
1
vote
1answer
580 views
SPLimitedWebPartManager throwing “File is not checked out” error on AddWebPart and DeleteWebPart
I'm writing a powershell function to add custom webparts (i.e. not Out Of The Box webparts such as ContentEditor) to publishing pages on a SharePoint Server 2010 site. I encountered a frustrating ...
2
votes
1answer
485 views
Can't save webpart after editing with PowerShell
I'm using the code below to edit the image in a webpart:
$webPartCollection = $web.GetWebPartCollection("default.aspx","Shared")
$imagePart = $webPartCollection | Where-Object { $_.Title -eq "Site ...
0
votes
1answer
378 views
Hide a feature in Site Collection Administration => Features area
I have a feature with webparts that needs to be activated using powershell. I need a way to either hide the feature on the Site Collection Administration => Features (under Site Settings) or to ...
2
votes
1answer
314 views
Can You Add a WebPart to a Wiki Home Page via Powershell?
Salvete! Is it possible to add a webpart to a Wiki Home Page via Powershell? I have 100 sites for which I need to add a web-part to their home-pages. I know this is easily possible with normal ...
1
vote
1answer
310 views
Add Calendar list to WikiPage using Powershell
I have inserted a Calendar list to a page(SitePages/Home.aspx) using a powershell script, But I want to insert it in to a specific location as shown in image. When I insert the calendar list it insert ...
0
votes
1answer
75 views
How to open or access a webpart's XML and rename its namespace Using PowerShell?
We have some web parts deployed in our Sites, which are not working due to Migration from MOSS to SPS2010, and I need to replace the namespace used by power shell by accessing the Webpart's XML..
2
votes
3answers
841 views
SharePoint 2010 - Add WebPart to a Web with PowerShell
I want to add a webpart to a great number of existing pages.
Is there any PowerShell command to add a webpart to a webpart page?
0
votes
0answers
384 views
How to set custom Web Part values through powershell?
I am using a powershell script to initialize several values of a custom webpart and then insert that webpart onto a page. I have been partially successful using the method below:
...
0
votes
1answer
666 views
How to add an instance of a custom webpart to a web page using PowerShell?
I found this article which does a very good job explaining how to add built in web parts (like the content editor webpart). Unfortunately when I tried to add my own I couldn't get it to work. I have ...
1
vote
2answers
520 views
SharePoint 2010 - Find WebPart in WebApplication
I´m searching for an good way to find the ContentQuery WebPart in my WebApplication. My plan is to write a PowerShell script and create a url list.
I found the following possible ways:
SharePoint ...
2
votes
1answer
896 views
SharePoint 2010 - Add WebPart reference to PowerShell script
I want to add a new developed WebPart to a SharePoint site with PowerShell.
How it is possible to add the WebPart reference from my WebPart to the PowerShell script?
$web = Get-SPWeb $urlWeb
...
6
votes
1answer
2k views
Problem installing web part using Powershell
We've developed a custom Visual Web Part using Visual Studio 2010 for Sharepoint 2010 Server.
The webpart gets deployed when executed from VS (F5), so we can add it wherever we want using Sharepoint ...
1
vote
3answers
8k views
Install-SPSolution : This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application
I have a powershell script that deploys about 12 web parts. They have all been created in the manner through visual studio 2010 and are being deployed to sharepoint 2010.
I am getting the following ...