Tagged Questions
0
votes
2answers
77 views
Upload a Web part to All Site Collections
We have designed a custom Content editor web part and we exported the dwp file and added it in an site collection (Web part gallery ) and the web part is working fine when we add in any sub site in ...
0
votes
2answers
148 views
How to get all the SharePoint web parts that are there inside a page and not inside a web part zone
I need some C# or powershell script where I need to list down all the web parts that are defined inside a page and not inside a web part zone.
I tried with GetLimitedWebPartManager, but that API, ...
1
vote
1answer
1k 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 ...
0
votes
1answer
499 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 ...
4
votes
2answers
2k 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 ...
2
votes
1answer
391 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
370 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
78 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
1answer
527 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 ...
1
vote
2answers
948 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 ...
0
votes
0answers
439 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
835 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
569 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
964 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
...
2
votes
3answers
1k 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?