.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

PowerShell script to add/edit ContentEditor webpart on SharePoint 2010

Posted By:      Posted Date: August 30, 2010    Points: 0   Category :SharePoint
 
Hi all, I'm new to PowerShell scripting with SharePoint. Following are the requirements that were given to me. Can any one direct me in the right direction interms of writing the script and how to save and execute the script? I am aware of Cmdlets. 1. Cycle through all sites in site collection 2. For each site, retrieve all document libraries 3. Look for specific CMV document library name (ie value communication, key business drivers, etc)          o add content editor web part if doesn't exist          o add/update appropriate description based on the document library name Thanks in advance...


View Complete Post


More Related Resource Links

how do i create a webpart for sharepoint 2010 that allows users to create their own subsite..

  

hi!

how do i create a webpart for sharepoint 2010 that allows users to create their own subsite..

for e.g..

i create a webpage in vs 2010 which allows users to create their account by specifying username and password..and make it a webpart and after that for that user a subsite should be created under sharepoint 2010 top level site.....how could i achieve that..


Video: SharePoint 2010 Integration with PowerShell

  
Learn about the new PowerShell integration in SharePoint 2010, which brings SharePoint administration in line with other server products such as Exchange. Understanding PowerShell is a must-have skill for SharePoint 2010 developers. (Length: 19:52)

Creating Custom ASP.NET Control for use on a SharePoint 2010 OOTB WebPart

  
I am currently trying to develop a custom asp.net control that can be deployed to SharePoint 2010 and then included on something like a New item form. I have been able to build the control as part of a webpart but it needs to be done as a stand alone control that can be used on various webparts including the out of the box webparts like the WebPartPages:DataFormWebPart. Are there any good examples of building a custom control, deploying it to SharePoint and then using SharePoint designer to add that control to an existing web part?

Cannot access parent site list from subsite in XSLt List View webpart in sharepoint designer 2010

  
Hi    We are using sharepoint 2010  for internet facing sites for our big client in healthcare domain .  I am using XSLT list view webpart in sharepoint designer 2010 for retrieving contents from sharepoint list & displaying it by using XSLT List view webpart in publishing sites. We are having lot of list in rootsite collection, If i am creating pages by using XSLt list view webpart in root site collection I can access the list,View and Display in Pages by XSLT List view webpart. Now the requirement is i have to access the list in roosite collection(parent site) from subsites.  In Sharepoint designer 2010, while i am inserting XSLT list view webpart, i could not find datasource to access the list that exist in rootsite collection(Parent site) from subsite. Below is the the code i am using for accessing the list& view from parent site & creating the pages in parent site by using xslt list view webpart,now i wants to access parent site list from subsite by using XSLT list view webpat in subsite pages.  Pls let me know what i have to change in the code level <WebPartPages:XsltListViewWebPart runat="server" Description="The list for the conditions details" ListDisplayName="" PartOrder="2" Default="FALSE" HelpLink="" AllowRemove="True" IsVisible="True" All

Cannot install Sharepoint 2010 from powershell

  
I have been given the task of installing Sharepoint 2010 onto a Windows Server 2008 fresh OS. I am attempting to do this using Powershell as we will likely have to rebuild this machine later so i want the rebuild to be as quick as possible. I have setup the SPModules in powershell and add the path to to the PSModule variable. When i run the following command: PS C:\Windows\system32> Install-SharePoint -SetupExePath "location of software\setup.exe" -ConfigXML "location of software\Files\SetupFarm\config.xml" -PIDKey "my key" i get the error: Property 'Value' cannot be found on this object; make sure it exists and is settable. At D:\SPModule\spmodule.setup\Install-SharePoint.ps1:373 char:52 +             $CurrentConfigXml.Configuration.PIDKEY. <<<< Value = $PIDKey     + CategoryInfo          : InvalidOperation: (Value:String) [], ParentContainsErrorRecordException     + FullyQualifiedErrorId : PropertyNotFound even though the key is an argument. I then added the key to a copy of the config file and ran following: PS C:\Windows\system32> Install-SharePoint -SetupExePath "location of software\setup.exe" -ConfigXML "location of software\Files\SetupFarm\configpidkey.xml"

How to debug silverlight webpart in sharepoint 2010.?

  
Can i debug the zap in sharepoint.?

Cannot access parent site list from subsite in XSLt List View webpart in sharepoint designer 2010

  
Hi    We are using sharepoint 2010  for internet facing sites for our big client in healthcare domain .  I am using XSLT list view webpart in sharepoint designer 2010 for retrieving contents from sharepoint list & displaying it by using XSLT List view webpart in publishing sites. We are having lot of list in rootsite collection, If i am creating pages by using XSLt list view webpart in root site collection I can access the list,View and Display in Pages by XSLT List view webpart. Now the requirement is i have to access the list in roosite collection(parent site) from subsites.  In Sharepoint designer 2010, while i am inserting XSLT list view webpart, i could not find datasource to access the list that exist in rootsite collection(Parent site) from subsite. Below is the the code i am using for accessing the list& view from parent site & creating the pages in parent site by using xslt list view webpart,now i wants to access parent site list from subsite by using XSLT list view webpat in subsite pages.  Pls let me know what i have to change in the code level <WebPartPages:XsltListViewWebPart runat="server" Description="The list for the conditions details" ListDisplayName="" PartOrder="2" Default="FALSE" HelpLink="" AllowRemove="True" IsVisible="True" All

SharePoint 2010 - "My Inbox"(OWA) webpart not working with Exchange 2010

  
Hi, I'm trying to setup the webpart "My Inbox" (OWA) in SharePoint 2010. It works when connecting to OWA running exchange 2007, but failes with error 400 not found when connecting to OWA running Exchange 2010. The error appears after logging in.  I'm using this url: https://<exchangeserver>/owa I assume that this should be supported by Exchange 2010, but it seems to fail using this parameter /?cmd=contents. Any suggestions?   Best regards, Petter

SharePoint 2010 Calendar Webpart not showing overlays

  
I have made 4 overlays on one calendar and I figured I could add that calendar webpart to the homepage and it would show all the overlays, but it isn't doing that.  Is there a way to show all the overlay calendars in the calendar webpart? Thanks!

Powerhsell script in SharePoint 2010

  
Hi , Can you please let  me know in which article can I find the use of powershell script commandlets to look up into the web application and access all the subsites in SharePoint 2010.

create task edit form issues for sharepoint 2010 workflow using visual studio 2010

  
I use infopath 2007 created a task edit form and I use VS 2010 to create a sequential workflow.I want to use the custom tash edit form in the workflow.The problem I got is the InfoPath form doesn't get deployed to sharepoint. I'm able to upload the infopath form to sharepoint though central admin app. here is the element.xml :<Elements xmlns="http://schemas.microsoft.com/sharepoint/">  <Workflow     Name="WorkflowProject4 - Workflow1"     Description="My SharePoint Workflow"     Id="e6aa6cdb-667f-456a-b216-7639a1dcd3c7"     CodeBesideClass="WorkflowProject4.Workflow1.Workflow1"     CodeBesideAssembly="$assemblyname$">    <Categories/>    <MetaData>      <AssociationCategories>List</AssociationCategories>            <Task0_FormURN>urn:schemas-microsoft-com:office:infopath:TaskForm:-myXSD-2009-12-10T22-33-23</Task0_FormURN>      <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>    </MetaData>  </Workflow></Elements>and here is the feature1.template.xml<Feature xmlns="http://schemas.microsoft.com/sharepoint/">  <Properties>    <Property Key="GloballyAvailable" Value="true" />    <Property Key="RegisterForms" Value="*.xsn"/>  </Properties></Feature>anything

Can SharePoint 2010 Tag Cloud webPart show managed keywords tags only from Document Library

  
Can SharePoint 2010 Tag Cloud webPart show managed keywords tags only from a specified Document Library ? Also can i add multiple document libraries tagged for a single tag cloud webpart?

OOTB Approval Workflow SharePoint 2010 - Blank "Requested By" field appears in Task Item edit/view f

  

Hi,

I am having a simple OOTB  approval worflow associated to the simple document library. Task is created when an document is uploaded to the library.  When I click the task item in task list, I see a blank field "Requested By"  right below the "Status" column and I am unable to understand from where this field is coming and how to populate this field. Any help would be great...


Sharepoint 2010, Constant prompt for credentials to edit office documents in a fqdn setup

  

Is there a solution to resolve the constant "Prompts" For user id's and passwords when a person tries to open/launch/edit office documents from sharepoint 2010.

My setup: sharepoint fqdn in the domain sp.domainname.local, The sharepoint server is a member of this internal domain. In dns I have local zone of sp.domainname.com with a cname that points to the internal sharepoint server. There is no issue in users accessing the server both internal and external, The issue arises when Office documents are launched from SP2010.

In central admin I have configured the alternate access mappings to be http://sp

I have also tried putting the fqdn dns name of the sharepoint server in IE8 trusted zone but
no luck, I still get credential prompts.

I think the issue might be that Office does not see that the files are coming from the fqdn of sp.domainname.com so hence the prompts.

Trying to fix this as right now its a total pita. I found some previous posts on this issue with SP2007 but found nothing that really addresses this in SP2010.

Thanks Paul


Sharepoint 2010 add/edit form: Insert link from sharepoint disabled

  

Hello!

 

I have a list with enhanced rich textbox field. I can click on Insert link, "from addres" is enabled, but "from Sharepoint" is disabled.

Is there a reason why is this button disabled? Field is enhanced rich textbox... Paste button is also disabled.

 

Thanks


Secure Sharepoint 2010 with Silverlight Webpart not communicating with CRM.

  

We have a SharePoint 2010 Enterprise site using SSL. I have modified a webpart that uses Silverlight to connect to crm and output data from there.

The project works when I debug the Silverlight project. This was only after I implemented a clientaccesspolicy.xml on the CRM site. The problem I have is that when I try moving it to the SharePoint site or debugging the project that wraps the webpart, I get the same cross domain error. The error is as follows.

Unhandled Error in Silverlight 2 Application An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at CRMSLParts.CrmSdk.ExecuteCompletedEventArgs.get_Result()
   at CRMSLParts.AccountManager.service_ExecuteCompleted(Object sender, ExecuteCompletedEventArgs e)
   at CRMSLParts.CrmSdk.CrmServiceSoapClient.OnExecuteCompleted(Object state)
<my site here>
Line 0

This error when debugged in Visual Studio 2010 is as follows.

An error occurred while trying to make a request to URI 'http://<myCRMsiteHere>/MSCrmServices/2007/CrmService.asmx'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is

I am not able to integrate my webpart into sharepoint 2010

  

Hi,

I have created a  web part and Build and depoyed it.

I have cliked Edit  page ,webpart and In categories List Box I don't have the  Custom option in sharepoint2010

                   Thanks in advance

With Best Regards,

Gopi


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend