Tag: PowerShell


  • Moving versioned content to individual listitems in SharePoint

    Often, it’s a good idea to version your content. And often it’s a good idea to simply, turn on versioning and the create a multiline field and selecting it to append the text. Thus creating a mini-log of something. But, when it comes to accessing that content across items, adding attachments on a log entry.…

  • Case Recently I ran into a typical SharePoint problem. A SharePoint 2010 site exploded in storage usage. Users was uploading like crazy to one single document library and I needed to move the document library and a few lists to a new site on a new SiteCollection. The source site, was build on a SiteTemplate,…

  • Enabling versioning on all document libraries in a site collection or disabling versioning is often quite useful. Source

  • I came across a need to change all existing documents in a Site Collection to another ContentType, but without changing data like, “modified by” or “modified date”. Why? I need to attach a column to all documents and it’s just not good practise to add columns to the default “Document” ContentType. I need to add…

  • I often find myself in need of building a structure of SPWebs for demo purposes or for custom migrating scenarios. In order for me to build the structure fast, test it and then tear it down or extend it, I use PowerShell. Just extend the $url and the $name so they match your desire. Add-PSSnapin…

  • I found this script to be the most effective for creating MySites in advance for all users. #———————————————————————————#The sample scripts are not supported under any Microsoft standard support#program or service. The sample scripts are provided AS IS without warranty#of any kind. Microsoft further disclaims all implied warranties including,#without limitation, any implied warranties of merchantability or…

  • Best solution to create Automatic UserProfile Import to SharePoint Create folder “ImportProfileImages” Create subfolder “ProfileImages” Create “c:\SPSolutions\ImportProfileImages\UpdateUserProfiles.ps1” with the code from SharePoint Use Cases clsif((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) { Add-PSSnapin Microsoft.SharePoint.PowerShell;}#———————————————————————————# Default Values#———————————————————————————$spNotFoundMsg = "Unable to connect to SharePoint. Please verify that the site ‘$siteUrl’ is hosted on the local machine.";#—————————————————–#…

  • I’ve been messing around with the new Design Manager in SharePoint 2013 lately in an effort to see if I could brand SharePoint the way Microsoft tells me, is the new black. So I created a design package and then deployed that package onto my test site. That went well. Then I would see if…

  • UPDATE: New Microsoft Online Services Modules. You now need to download the Logonassistant before you can install the Module. More than once, I’ve encountered the situation, where a client of mine, had to send out somewhere between 10.000 and 12.000 e-mails at once. It’s not like a newsletter, but just something that they needed once…

  • Most places on the web, you get a wrong guidance in how to enable PDFs in SharePoint. The easy and most used method is just to enable “Permissive” rights in the settings for the web application. Unfortunately that solution is a security risk. What it does is actually, enabling all filetypes in your SharePoint to open in the browser. The…