Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all 11508 articles
Browse latest View live

Powershell script to count documents in a team site using specific content type

$
0
0

Hi

I am trying to write a script using PowerShell which counts documents in all of our team sites using a specific content type.

I was wondering if there was anyone out there who has wrote a similar script or who could help me write this script?

Thanks!

Adil


Adil Hussain


issues in farm solution deployment

$
0
0

Hi

i try to deploy farm solutions in sharepoint 2010 farm, when i add spsolution from powershell i got error 

PS C:\Users\spfarm> Install-SPSolution -Identity "eServices12.wsp"   -AllWebApplic
ations   -GACDeployment -CASPolicies
Install-SPSolution : This solution contains no resources scoped for a Web appli
cation and cannot be deployed to a particular Web application.
At line:1 char:19
+ Install-SPSolution <<<<  -Identity "eServices.wsp"   -AllWebApplications   -G
ACDeployment -CASPolicies
    + CategoryInfo          : InvalidData: (Microsoft.Share...InstallSolution:
   SPCmdletInstallSolution) [Install-SPSolution], SPException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletInstallS
   olution

and when i try to build and deploy from visual studio i got errror

Error occurred in deployment step 'Activate Features': Feature with Id '2227c19c-e944-438a-b769-e58d48181de8' is not installed in this farm, and cannot be added to this scope.


adil

Sharepoint 2010 Term Store Error

$
0
0

Hello,

When I try open Term Store from SharePoint site I get below error.But when I tried to access term store from central admin the term store its opening.

All the Application pool has been started.

Can anyone please provide some suggestions?



Thanks,

Meenakshi Viswanathan

Cusotm Master Page SPM vs. MS markup elements

$
0
0

I have the following markup in SP 2007 master page which I want to copy over into a SP 2010 master page. I am unable to understand what markup element I need to use SPM or MS?

<a id="cLogo" href='<CustomWebControls:HomeUrlControl runat="server" />'>

I tried using MS markup element and it got converted to:

<!--MS:<a id="cLogo" href='&#60;CustomWebControls:HomeUrlControl runat="server" /&#62;'>-->

And, the page is now broken as the HTML rendered is as follows:

<a id="cLogo" href='/_catalogs/masterpage/<CustomWebControls:HomeUrlControl runat="server" />' abp="209">

What is the correct way to convert these kinds of dynamic elements into 2010 master page?

Get data which have current user from sharepoint list with infopath form

$
0
0

I wrote a formula for get a data from Sharepoint list. I have a list which have user informations. I want to get data from this list which have current user data. My formula is; 

IF(Value[Name = "AccountName"]=user_id, "_x0130_zin_x0020_S_x00fc_resi")

The error is

Expected value type: ,

Actual value: string
IF(xdXDocument:GetDOM("GetUserProfileByName")/dfs:myFields/dfs:dataFields/tns:GetUserProfileByNameResponse/tns:GetUserProfileByNameResult/tns:PropertyData/tns:Values/tns:ValueData/tns:Value[../../../tns:Name = "AccountName"]=xdXDocument:GetDOM("İzin Listesi")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:user_id -->"xdXDocument:GetDOM("<--İzin Listesi")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:_x0130_zin_x0020_S_x00fc_resi")

Where is my wrong?

I can get a data by GetUserProfileByName  service. My question is, I have a list. The list has some special informations. I want to when the form is opened, fields will be auto populate. I have 3 fields. First name, last name and special info. I can get f and l name with GetUserPrrofileByName. Spesical info is in the sharepointlist . I did all connections. My list have 2 columns. First is special info second is Users AccountName. I decided to when form opened if AccountName(with GetUserProfileByName service) equal to Accountname(Which is in the list ) then get data to fields which data  is specail info

Please, help me

Issue in Power Shell script that upload user's photo from a local directory to SharePoint-2010 On premise

$
0
0

Hi Team,

I have  PowerShell script that upload user's photo from a local directory to SharePoint-2010 On premise . I am using below script to upload the photo from local directory to SharePoint-2010 On premise.

Script URL: Upload ImageScript

script generate thumbnails images from those high resolution image file and attach a low resolution image to user's profile in SharePoint.

PowerShell script is not attaching the low resolution image for some users randomly rather it attaches high resolution image and when we look into people directory in SharePoint search the image is going out of image box and page is distorting

Issue : Issue is that images are giving issue randomly for users so what we need for now is a Log File for this script we have to modify this script so that it generates a Log File for each time we run it Log File should have log for each and every steps of this script so that we can pinpoint the issue

Please help me to change this script according to my issue .

Thanks ,

Deepak Chauhan


SharePoint 2010 & 2013 and Office-365 Branding and Front End Customization, UI Design


XML-definition

$
0
0

Hello!

How would do to set some values in the XML-definition element in my Xlistview webpart?. I have a .webpart file on my local disk which serves as a template for web parts which we by automation(scripts) add to wiki pages. I have managed to address the element"ListName" and "Title Url". We simply copy the information from a created library on SharePoint, and set these two elements, before adding the webpart to a page - But I do not manage to address View Name and Url within the Xml definiton. This seems complicated. Any suggestions?

We use powershell scripts for automation.

Have a nice day everyone!

/C.

Custom FBA/Windows Logon to go over SSL?

$
0
0

I have a web part that is working with mixed auth. However, I would like this web part to use SSL (whether an IIS site or another site collection that is SSL). The issue is I have a ton of different domains. I do not want an SSL cert per domain (as we are not IIS 8 to do the SNI option, and we do not have enough IP blocks to tie a SSL Cert to each domain.) So the thought I had was to have one Cert and tie that to a site, then have the webpart use that site for authentication; but redirect to the site where the user was trying to authenticate.

The end goal is I will have my web part using open auth, FBA, and ADFS options. I need the SSL for the FBA provider.

Any thoughts on this? Is there another way to achieve secure logon across all web apps in one farm without having to do individual certs, SNI, etc.?

thanks for any ideas on this!


FBA User management and Site Owners verses site collection admins

$
0
0
Is there a way to give site owners access to the FBA user management - even through a custom application?

How to create a 'Link to a Document' Item in a SharePoint Document Library using power shell?

$
0
0

Hi,

I have a document library with "Link to a document" content type. And, I have to add some links into that library using powershell. I have searched enough regarding approachs for adding a link into the library in powershell but i did not get anything yet. Please provide some approaches and code samples to solve this problem.

Thanks,

Lalit Kumar Mishra 

SharePoint 2010 Gurus, step up and be known!

$
0
0

August Gurus step up and show us your knowledge on the latest and the greatest technologies Microsoft have to offer!

And for your efforts, eminent leaders in your technology will evaluate your contributions and award real virtual medals!

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

Below are June's mighty winners and contenders!

 BizTalk Technical Guru – June 2016 
Gold Award Winner

SMSVikasKHow to Re-create BizTalk Server Project Artifacts from a DLL or an Assembly from an existing projectEd Price: “Great detail! Great job walking us through the images! Glad to have the code download link! As Shashidharan wrote in the comments, “Nice Article Vikas. Very helpful :)” Great job on this!”
Sandro Pereira: “Nice article, very useful! This problem happens more often that you can imagine. Another option will be BizTalk NoS add-in but is great to know other ways!”
SW: “Very useful and informative article.”
Silver Award Winner

Johns-305BizTalk Server: Sending Control Messages to Long Running ProcessesSW: “Excellent article!!!”
Ed Price: “Strong introduction and great use of images! Great to have the sample on MSDN Gallery! It could use a See Also section (links to other Wiki articles) and References.”
Sandro Pereira: “Great article.”
Bronze Award Winner

SMSVikasKBizTalk Custom Pipeline Component to Add, Update, Remove Target Namespace, Qualified Prefix for every elementSandro Pereira: “Again very useful article. This is a common problem and you will find several examples of pipelines to change the target namespace but I think this is the first time I see all 3 operations combined. However, I will follow a different approach and set a property to specify the operation in the pipeline for better clarification”
Ed Price: “Good job on this article. Good use of images and formatted code. Great to have the source code downloadable!”
SW: “Very useful and informative article.”

Guru Award Microsoft Azure Technical Guru – June 2016 
Gold Award Winner

Dileepa KariyawasamUse Azure Active Directory to Custom Brand Your Office 365 Sign In Page – Step by StepEd Price: “This is an incredibly valuable scenario that’s executed well! It could be improved with a TOC and References and See Also sections at the end.”
Silver Award Winner

ChervineSchedule PowerShell Scripts to Manage Azure Virtual MachinesAS: “The article represents good overview of the Azure Automation service. However it is suggested best practice to use service principals in Azure AD instead of a regular users. And use certificate to authenticate the service principal.”
Ed Price: “Wow! Fantastic solution, great write-up, good use of headers/sections, formatting, a diagram, images, code formatting, and a solid References section! As AS mentions, this could be improved with the Azure AD perspective. Great article!”
Bronze Award Winner

Michel JatobáConfiguring Client VPN PowerShell on Microsoft Azure (ARM)Ed Price: “Good job on this. The Introduction, “Configuring VPN Certificate” section, and use of images… really stand out. This article is similar to an Azure doc one (https://azure.microsoft.com/en-us/documentation/articles/vpn-gateway-howto-point-to-site-rm-ps/), but it’s done a little differently, and the images help. It could be improved with See Also and References sections at the end, as well, as little more refinement on the code formatting (which admittedly, should be easier to do). Good job on this. “

Guru Award Miscellaneous Technical Guru – June 2016 
Gold Award Winner

SYED SHANUMVC Dashboard with Chart using AngularJS and WEB APIPhilippe Levesque: “Excellent ! The use of animated gif is really good”
Richard Mueller: “Lots of well thought out code. Grammar needs work.”
Ed Price: “Powerful article with a great use of code! The images won’t show for me. I love the Download section at the end for the MSDN Gallery item!”
Silver Award Winner

Santhakumar MunuswamyDisqus Integration in Asp.Net MVCEd Price: “Beautiful job with the structure, images, and code. Good to have the reference link. ”
Richard Mueller: “Good images. We need more references.”
Philippe Levesque: “”
Bronze Award Winner

Dileepa KariyawasamOffice 365 Journaling Workaround – How to GuideRichard Mueller: “Interesting solution. I like that this is not first person or personalized. Could there be references?”
Philippe Levesque: “”
Ed Price: “Also a good topic. This could be improved with section headers, and with See Also and References sections. Great use of images!”

Guru Award SharePoint 2010 / 2013 Technical Guru – June 2016 
Gold Award Winner

Waqas SarwarSharePoint 2016 Site Use Confirmation and Deletion( real world example)Hezequias Vasconcelos: “It is an excellent content for file management. Helps administrators manage and better optimize disk space in the database.”
TN: “That’s ok to be published even it’s a very basic article”
John Naguib: “Good one”
Silver Award Winner

Waqas SarwarSharePoint 2016: Checklist for Successful InstallationJohn Naguib: “Good CheckList, it is better to upload as excel ”
Hezequias Vasconcelos: “It is an excellent content for SharePoint 2016 installation management I miss about updates to the SQL, and Windows SharePoint and Language packs that are important also in the installation of products. Reference: https://technet.microsoft.com/en-us/library/mt715807(v=office.16).aspx”
TN: “That’s ok to be published even it’s a very basic article”
Bronze Award Winner

Waqas SarwarSharePoint 2016 Managing Registered Accounts and Shell Admin access( Real World Example)John Naguib: “Nice article”
Hezequias Vasconcelos: “Perfect maintenance and account management in SharePoint 2016. Good Job.”
TN: “That’s ok to be published even it’s a very basic article”

Guru Award Small Basic Technical Guru – June 2016 
Gold Award Winner

Nonki TakahashiSmall Basic: MouseEd Price: “I love this series! Nonki takes us end to end on using the mouse in Small Basic. I love the definition! Very strong See Also section.”
Michiel Van Hoorn: “Nonki again delivered a great article on a SB function (MOUSE). Very useful if you want to interact with mouse”
Carmelo La Monica: “I don’t know small basic, but this is good point to learn. Congrats.”
Alan Carlos: “”
Silver Award Winner

DevaSmall Basic VideosCarmelo La Monica: “Very good videos, good fo to learn Small Basic. Congrats for all videos.”
Alan Carlos: “Good guidance, very helpful!”
Michiel Van Hoorn: “Nice overview of available videos”
Ed Price: “Great to have this list on the Wiki! Thanks!”

Guru Award SQL BI and Power BI Technical Guru – June 2016 
Gold Award Winner

Thomas LeBlancAnalysis Services: Solving Hierarchy Errors of UniquenessPT: “Thanks for the article, Thomas. You’ve explained the use case and steps for creating a hierarchy very plainly. This is a good piece.”
Ed Price: “Great scenario and use of images! It could be improved with headers and a TOC, and with References and See Also sections at the end. This is a powerful topic.”
Silver Award Winner

Sudeep RajIntegration Services: Using DB Mail to send HTML format mailPT: “Thank you for explaining this technique; simple and effective.”
Ed Price: “Fantastic topic from Sudeep, with solid colouring on the code formatting! Could be improved with References and See Also sections.”
Bronze Award Winner

Jens VestergaardExtracting SSAS MD Database(s) XMLA w/ PowerShellPT: “This is a useful script that I’ll probably use in the future. This is a good start but the post could use a little more structure to be complete; an introduction, objective statement and conclusion. Thanks for your contribution.”
Ed Price: “Good PowerShell solution. Could benefit from more of a breakdown of the code. “

Guru Award SQL Server General and Database Engine Technical Guru – June 2016 
Gold Award Winner

Hezequias VasconcelosSQL 2016 – Install SSMS Management StudioUR: “Why is an installation instruction of an “old” version of SSMS in June a WIKI? The latest version isn’t a preview anymore. An installation step by step isn’t worth a WIKI entry. I would have seen more details about the differences between SSMS 2016 previous version. What are the differences? What will work better? What (and there is a lot!) is not working good?”
Ronen Ariely: “A great subject for article. Screenshot images of each step helps simplify the instructions, makes the article more useful for new users. There is some room for improvement. See article comment section.”
Silver Award Winner

FLaufferSQL Server Troubleshooting: How to remove a bad execution plan from plan cacheRonen Ariely: “A nice article of a simple case study and a solution. It’s very short and has potential to be even better with a bit more expansion”
UR: “I am missing a more detailed explanation WHY a plan can go wrong. Basically it is more “story around DBCC FREEPROCCACHE”.”

Guru Award System Center Technical Guru – June 2016 
Gold Award Winner

Digvijay S RajawatSCVMM 2012 R2 & Hyper-V: Storage Migration in Microsoft Private CloudEd Price: “Wow! Great formatting and sections. Very good use of tables. Could use a See Also section (to link to other Wiki articles). The processes are very clear and incredibly detailed. Fantastic article!”
Carmelo La Monica: “Fantastic topic, very nice in all parts, good images explain in all parts. Good”
Alan Carlos: “Nice article! Congratulations!”
Silver Award Winner

C Sharp ConnerSCORCH – Custom Activity OIP Limitations – C# EditionCarmelo La Monica: “I read this article, i don’t know System center, but is very detailed in all part.”
Alan Carlos: “”
Ed Price: “Good list of limitations. It would have been good to get into the code too. Another good topic!”
Bronze Award Winner

C Sharp ConnerSolution – Install Fresh Data Warehouse on Post UR Updated SCSM EnvironmentEd Price: “A lot of great detail! This could be improved with sections. Great topic!”
Carmelo La Monica: “Good explain, good work. Congrats.”
Alan Carlos: “”

Guru Award Universal Windows Apps Technical Guru – June 2016 
Gold Award Winner

Carmelo La MonicaSerial Class for UWP Part oneEd Price: “Great article! Good topic, well-written, great breakdown of sections/headers/TOC, good use of images and code, and good requirements sections! It could use a See Also section at the end with links to related Wiki articles.”
Silver Award Winner

Santhakumar MunuswamyUnderstanding AppBar and CommandBar in UWPEd Price: “Great topic. Good write-up. Good use of images and code! It could be improved with sections/headers/TOC and with See Also and References sections at the end to link to other articles.”
Bronze Award Winner

Damien AllanLaunch your App Differently from Secondary Live TilesEd Price: “Short and sweet. Good use of code and reference links. Could use improved formatting and sections/headers.”

Guru Award Visual Basic Technical Guru – June 2016 
Gold Award Winner

.paul.VB.Net – QR Code CreatorEd Price: “I love the QR Code creator! Incredibly valuable. Great job with the code, formatting, and download!”
MR: “Nice and easy! Would love to know how to generate a QR code from scratch!”
Richard Mueller: “Very useful. Simple but effective code.”

Guru Award Visual C# Technical Guru – June 2016 
Gold Award Winner

Emiliano MussoEntity Framework Introduction using C#, part II – Code-First and MigrationsRonen Ariely: “Excellent article! I loved the idea of writing series of articles. Moreover, the author translated the articles into another language. Great use of the capabilities of the TechNet WIKI.”
Ed Price: “Wow. This is an amazing article! It has it all… a great topic, fantastic formatting with headers, great code formatting, good descriptions, screenshots, references, a link to the MSDN code gallery to download the code, and an Italian version! This is a high-quality article! Other writers (including myself) should look at this one for ideas of how to achieve quality!”
Jaliya Udagedara: “Now this is a fantastic article. Well explained, filled with images, code snippets and the full sample code is available in MSDN Code gallery. Awesome job!”
Silver Award Winner

Sabah ShariqSearching data in Elasticsearch using C#Ronen Ariely: “Great article. I really enjoyed to read it. posting the code ready for download is very useful.”
Ed Price: “Great job breaking down the sections and explaining the code! Could be improved with References and See Also sections. ”
Jaliya Udagedara: “Haven’t used Elastic search before and this article contains instructions for everything that you need to get started. Nice!”
Bronze Award Winner

Sibeesh VenuWorking with API help page controller action description in Web APIEd Price: “A good topic with solid code, but it would be good to breakdown the code more and explain it in chunks.”
Jaliya Udagedara: “If you are having trouble showing descriptions in Web API help pages, this article should help you out.”

Guru Award Wiki and Portals Technical Guru – June 2016 
Gold Award Winner

Carsten SiemensTranslation Wiki: Getting startedRonen Ariely: “This article gave me new information regarding the Translation Wiki Community. This information should be published in any communication channel we have. This is a “must to know” in my opinion.”
Ed Price: “I love it. This is a great process. Thanks to Carsten for building it and Peter for compiling, editing, and publishing!”
Richard Mueller: “Very informative. The images are good, but I had to zoom them. This must have required some research. Perhaps there should be a link to the blog site.”
Silver Award Winner

Peter GeelenWiki: Before you post your article – Quick check listRichard Mueller: “Great use of Wiki guidelines. An excellent guide for all Wiki authors with great advice. I like the emphasis on researching the topic, collecting links for references, and preparing offline.”
Ronen Ariely: “Very useful, very important, and most of all: I love the way it’s organized as a check list”
Ed Price: “This is a fantastic check list to go through before you get started! It will up the quality if we use this!”
Bronze Award Winner

Peter GeelenMicrosoft Security Compliance Manager (SCM) PortalRonen Ariely: “The TechNet WIKI based on portals as an index to navigate the website. This is nice list of articles that act as portal to the Microsoft Security Compliance Manager ”
Ed Price: “Great portal. Good job getting all these links compiled for us!”
Richard Mueller: “Great links. Maybe a few words would be useful.”

Guru Award Windows PowerShell Technical Guru – June 2016 
Gold Award Winner

Richard MuellerPowerShell: Problems with the -ne Operator in Active Directory CmdletsPG: “Nice article, good quality and nice to read. Great!”
Ed Price: “Wow! I love the quality here. You get a ton of explanation for each code excerpt. Plus the Return to Top links provide easy navigation. And it ends with immersive See Also and Other Resources sections!”
Silver Award Winner

Prashanth JayaramPowerShell-List-and-Export-Installed-Program(s)-Local/Remote-system(s)PG: “Except for some introduction, the scripts need more in depth explanation.”
Ed Price: “Love the sections! It would be good to break the code down more and activate the References links at the bottom.”
Bronze Award Winner

Digvijay S RajawatUse PowerShell to Create an Azure VM report with nice lookPG: “Nice quick tip, but please keep in mind that TNWiki is not a personal blog. Better remove the personalisation.”
Ed Price: “Good topic, but it could use more explanations. Good formatting on this article!”

Guru Award Windows Server Technical Guru – June 2016 
Gold Award Winner

Ryen TangNano Server: Deploying MySQL Database ServerMark Parris: “Nice compact article on the new technology that is Nano Server.”
Philippe Levesque: “Excellent article, easy to follow step and well-written!”
JM: “This is a great article on deploying MySQL on Nano, thanks for your contribution!”
Richard Mueller: “Good use of Wiki guidelines, with code, images, and references. Good to have detailed steps.”



#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!

Approach to add records to a document library having content type 'Link to Document ' through powershel

$
0
0
I am trying add records to a document library having content type 'Link to Document' through powershell. I am using the approach mentioned in the below link.

https://social.msdn.microsoft.com/Forums/office/en-US/9e164cf7-bebe-4b37-819b-d0aa01e55d35/how-to-create-a-link-to-a-document-item-in-a-sharepoint-document-library-using-power-shell?forum=sharepointdevelopmentprevious&prof=required


it need to use a template which downloaded from a manually added record. However the type does not point to the corresponding document type mentioned in the URL. it works fine if I add directly from front end. (Type icon should get update with corresponding document type mentioned in the url).

I could see below line in template  aspx file I used. 

<mso:IconOverlay msdt:dt="string">|docx|linkoverlay.gif</mso:IconOverlay>

But once  after the upload, it changes as below.

<mso:IconOverlay msdt:dt="string"></mso:IconOverlay>

Do you have any suggestion on this issue? Also is there any better approach to add records to a document library having content type 'Link to Document Library' through powershell?

sanmm


SharePoint 2013 vlabs

$
0
0
I don't find any vlabs available currently for SharePoint 2013/2010. Did Microsoft discontinued  this provision for SharePoint?

Scheduled PowerShell Wont Write to Text File (SharePoint 2010)

$
0
0

Hi All,

My PowerShell script runs fine from the PS shell and shows the web applications details for the SharePoint Farm.

But It doesn't work from Task Scheduler, either from the scheduled time or just from the Task Scheduler list and right-clicking and selected Run. It creates the log file from Task Scheduler However, doesn’t write back the web application details in the log file.

Note: It writes the 'Hello' string using Write-OutPut in the text log file.

Here is the PowerShell Log Output:

Here is PowerShell Script:

In Task Scheduler, I have the "Actions" set to Start a program, PowerShell.exe.

Has anyone come across this issue and let me know what I am missing?

I really appreciate your help. Thank you.


Cheers, Badal Ratra MCTS

Sharepoint Blog Default.aspx page and Post.aspx Page

$
0
0

Hi ,

I have created Blog Site In that i have added 3-4 blogs . When i clicked on any blog Title it is not redirect to Post.aspx page. It is redirect to Same Dafault.aspx Page.

Any Help?

Thanks,

Machindra Salunkhe

 


Remove Hyperlink column description in a sharepoint 2010 list

$
0
0

Hii,

In SharePoint 2010 , when i add a column of Hyperlink , its automatically add description column also.But when we enter the values of respective fields its shows the description data in URL column.

So, please give some suggestions how to remove this problem.

Best Regards

Mohit Sharma

Concert Word to PDF in sharepoint 2010

$
0
0

Hi Team,

Can you please help me to achieve the convert word to pdf in sharepoint 2010.

Regards,

Jithendar

Does SharePoint Designer 2013 support adding external column in list (similar adding to list column)

$
0
0

Does SharePoint Designer 2013 support adding external column in list (similar to adding to list column).

We can add from front end( website)

Powershell Script exporting Document Library files problem

$
0
0

Hi, I have a powershell script that runs inside of a .Net program that exports certain Document Library files (and the folder structure) into files on the server (where they are then zipped and put on a CD). This script has been working fine until we updated some of the libraries to allow Link To Document in the library. When we link to a document, that document is not included in the output of this script, but we need it to be. I don't use powershell that often, and I can't figure out why the linked documents wouldn't be pulled in (wouldn't the item url property that I'm using in the script point to the actual location of the document so that it can be included in the appropriate library?).  I'm not sure what I can change in this script to enable the linked documents in some of the libraries to be included in the export.  Thanks for any help/ideas! Gist of the script is listed below:


$eLibraryUrl = [Microsoft.SharePoint.Administration.SPFarm]::Local.Properties.Item("MyLibrary")
$spWeb = Get-SPWeb -Identity $eLibraryUrl

Export-SPWeb $eLibraryUrl -Path "E:\E\siteexport.cab" -IncludeVersions 2 -CompressionSize 1024

[System.Reflection.Assembly]::LoadWithPartialName("System.Xml")

get-childitem *.cab | foreach-object {
 
 expand -r $_.Name -f:* "E:\E"
 $manifestXml = get-content ".\manifest.xml"

 $nameTable = new-object System.Xml.NameTable
 $xnm = new-object System.Xml.XmlNamespaceManager -argumentList $nameTable

 $xnm.AddNamespace("sp", "urn:deployment-manifest-schema")

 $manifest = new-object System.Xml.XmlDocument
 $manifest.LoadXml($manifestXml)

 $folders = $manifest.SelectNodes("//sp:Folder", $xnm)

 $folders | foreach-object {
  try
  {
   echo "Creating directory " + $_.Url
   md $_.Url
   $folder = get-item $_.Url
   $folder.CreationTime = [System.Xml.XmlConvert]::ToDateTime($_.TimeCreated)
   $folder.LastWriteTime = [System.Xml.XmlConvert]::ToDateTime($_.TimeLastModified)
  }
  catch
  {
   echo "Unable to create directory: " + $_.Url
  }
 }

 $files = $manifest.SelectNodes("//sp:File[(contains(translate(@Url, 'dDoOcC', 'ddoocc'), '.doc') or contains(translate(@Url, 'pPdDfF', 'ppddff'), '.pdf') or contains(translate(@Url, 'dDoOcCxX', 'ddooccxx'), '.docx'))]", $xnm)

 $files | foreach-object {
  try
  {
   echo "moving " + $_.FileValue + " to " + $_.Url
   move-item $_.FileValue $_.Url

   $ActualFile = get-item $_.Url   
   $ActualFile.CreationTime = [System.Xml.XmlConvert]::ToDateTime($_.TimeCreated)
    $ActualFile.LastWriteTime = [System.Xml.XmlConvert]::ToDateTime($_.TimeLastModified)

  }
  catch
  {
   echo "unable to move file " + $_.FileValue + " to " + $_.Url
  }
 }
}

PSConfig error - help!

$
0
0

I am getting the following error when running PSConfig. Any pointers?

The web configuration file, C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\config\WEBCONFIG.ACCSRV.XML, does not have element "configuration/configSections/sectionGroup[@name='SharePoint']" or it is invalid.
System.IO.InvalidDataException: The web configuration file, C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\config\WEBCONFIG.ACCSRV.XML, does not have element "configuration/configSections/sectionGroup[@name='SharePoint']" or it is invalid.

I spent lot of time researching this error on the internet but could not find any pointers. What can be causing this error?

Viewing all 11508 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>