Skip Ribbon Commands
Skip to main content
 

 Follow Me

 
 
 
 

 SharePoint Blog List

 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Todd Klindt's home page > Todd Klindt's SharePoint Admin Blog
What's going on with TK.
July 01
MVP Award renewed

July 1st is always a scary day for me. Have I secured enough fireworks for the 4th of July, but not so much that I lose any fingers. It’s such a delicate balance to strike.

Oh, and it’s my Microsoft MVP renewal date.

After much anxious waiting I got the email this morning that my MVP status had been renewed for another year. I was very relieved. Thank you to Microsoft for that. This marks my 10th year as an MVP and to say it has been life changing is not hyperbole. It has opened doors for me, and exposed me to some incredible and amazing people. I’m grateful for the entire experience. Thanks to everyone.

tk

ShortURL: http://www.toddklindt.com/MVP10

June 19
Podcast 250 - System Tweaky Things

Tonight's Podcast is a busy one. I chat about a new SharePoint patch and another way you can keep yourself up to date on all the SharePoint patching fun. Then I talk about the Metro Skype client, the release of Azure Active Directory Connect, and a fun PowerShell trick I stumbled onto. I wrap up talking about password management, a fun topic for everyone involved.

Audio File

Video File

Podcast 250 - System Tweaky Things (Time 0_31_40;02)

YouTube (Subscribe)

Subscribe in iTunes

Transcription by CMSWire

Running Time: 38:08

Links:

02:22 - The TCT at Rackspace
11:24 - Kirk Evans
13:31 - MyProjectExpert
16:16 - Monitor Changes to SharePoint 2013 June 2015 CU page
18:41 - Metro Skype is going away
26:40 - Azure AD Connect to Hit GA This Month
32:03 - Jason Himmelstein Github Repository
39:30 - Lastpass was hacked
43:45 - Devolutions
43:54 - Get Password Vault Manager
45:05 - Get Remote Desktop Manager
47:53 - Iowa SharePoint User Group
48:20 - Mississippi PowerShell User Group
49:06 - SPTechCon
49:55 - SharePointalooza

Brought to you by Rackspace

ShortURL: http://www.toddklindt.com/Podcast250

June 11
Podcast 249 - Nothing Short of Science Fiction

In this week's Podcast I cover more potentially bad news for Windows Phone, but I follow it up with some good news about Skype. Then I talk about a cool new Windows device that I just must have. We chat a little about what Windows 10 on ARM might look like and I finish up by showing you a way to authenticate against SharePoint.

Audio File

Video File

Podcast 249 - Nothing Short of Science Fiction (Time 0_03_14;12)

YouTube (Subscribe)

Subscribe in iTunes

Transcription by CMSWire

Running Time: 38:08

Links:

14:49 - Facebook Connect features shut down for Windows 8.1 and Windows Phone apps
17:28 - Skype Translator tech is coming to Skype for Windows desktop later this year
21:55 - Quanta's Compute Plug is a Windows 10 PC in a wall wart
26:39 Windows 10 Mobile shown running on 10-inch ARM tablet
35:00 Iowa SharePoint User Group
35:12 Mississippi PowerShell User Group
35:49 SPTechCon
36:38 SharePointalooza

Brought to you by Rackspace

ShortURL: http://www.toddklindt.com/Podcast249

June 08
Podcast 248 - Wash Bill Gates Cars

Because of my dedication to my craft, I recorded tonight's podcast from a hotel room in Texas. I started out by addressing some hate mail I received from Windows Phone lovers. After I address that, and wipe my tears, I go on to talking about how great Windows 10 is (please don't send me more hate mail) and I finish up with some SharePoint content. (please don't send me more hate mail)
Audio File

Video File

Podcast 248 - Wash Bill Gates Cars (Time 0_23_48;05)

YouTube (Subscribe)

Subscribe in iTunes

Transcription by CMSWire

Running Time: 34:54

Links:

05:10 - CMSWire Transcript of Podcast 247, "Is it time to lose your Windows Phone?"
14:30 - Here Are the Features Windows 10 Will Remove When You Upgrade
16:30 - My CMSWire Author page
18:57 - Windows 10 Release date is July 29th
19:40 - Windows 10 System Requirements
19:58 - Windows 10 Upgrade Matrix: Which Version You Get For Free
20:35 - A Few More Answers About Windows 10 Upgrades
22:29 - Creating a Wildcard DNS Record for Fun and Profit
24:48 - How to Rename SharePoint 2013 Site Collections Without Prayer or Sobbing

Brought to you by Rackspace

ShortURL: http://www.toddklindt.com/Podcast248

May 31
How to Rename SharePoint 2013 Site Collections Without Prayer or Sobbing

A couple of years ago I published a blog post, “Using Copy-SPSite to rename Site Collections in SharePoint 2013” to much fanfare and adulation. Okay, okay, adulation might be a bit strong (might) but it was a good find nonetheless. I thought I had reached the pinnacle of renaming Site Collections. I thought that my career was all downhill from here. I was going to be relegated to a has been. “Hey, remember that time back in ‘12 when I renamed a site collection without backing it up? “ I thought I was sunk.

Then the February 2015 CU came out.

Buried in all the bugs fixes and regressions was a cool new piece of functionality, the ability to rename site collections without backing them up or without copying them. Whatcho talkin’ ‘bout, Willis! In this blog post I’ll show you how to use it.

TL;DR

I know some of you have short attention spans, so I’ll throw out the PowerShell code to do this right away:

$site = Get-SPSite http://portal.contoso.com/sites/foo
$uri = New-Object System.Uri("http://foo.contoso.com")
$site.Rename($uri)


To get 100% success I have to force the Content Database to refresh its site map with this:

((Get-SPSite http://foo.contoso.com).contentdatabase).RefreshSitesInConfigurationDatabase

and run an IISReset. The IISReset isn’t always necessary, but it’s good to plan for it. If you have a short attention span, you’re released now. Smile Go chase something shiny. Look! A rabbit! If you want to see the rest of the story, keep reading.

The Whole Story

When I first learned about this new method for SPSites, it was billed as a way to change path based site collections to Host-Named Site Collections (HNSC). Path based site collections are the ones we’ve been using since the beginning of time. They have the form of http://servername/managedpath/sitename. In my Redirection blog post the $V variable in the picture halfway down the page is the path. It’s the unique part between site collections. A path based site collection has a URL that looks like this:

https://portal.contoso.com/sites/foo and https://portal.contoso.com/sites/bar

In both cases the host is the same, portal.contoso.com. The thing that makes them unique is the path; /sites/foo and /sites/bar. When using host named site collections it’s the hostname that’s unique. Examples are:

https://foo.contoso.com and https://bar.contoso.com

HNSCs are something that users have wanted since SharePoint came out. No one wants to type the full URL out, they all want to type something short. SharePoint 2013 has a soft limit of 20 Web Applications per farm, so that isn’t really an option. Previous versions of SharePoint offered functionality close to HNSCs, but it was never really usable. Thanks to Microsoft hosting SharePoint Online, and making heavy use of HNSCs, they’ve gotten much better in SharePoint 2013. I have no problem recommending them, in the right situations. The issue then becomes how to make the transition. Backing up your path based site collection, deleting it, then restoring into a HNSC works, sort of, but it becomes a real pain when working with large site collections. Also, deleting a site collection is scary business, and not for the faint of heart. Finally, it just seems unnecessary. All the juicy data is staying in the same place, why should we have to take it out just to put it right back in? Ain’t no one got time for that! February 2015 CU to the rescue.

Starting with build 15.0.4693.1001 we can change the URL of a path based site collection to that of a host named site collection. Here’s the whole process, with pictures:

First I created a site collection:

New-SPSite -Url http://portal.odfbdemo.com/sites/moveme -Template sts#0 -Name "Move me with PowerShell, Por Favor" -Description "Site moved with PowerShell" -OwnerEmail todd@contoso.com -OwnerAlias odfbdemo\todd

image

And threw it into a browser, just to make sure it worked.

image

Then I changed the URL in PowerShell:

$site = Get-SPSite http://portal.odfbdemo.com/sites/moveme
$uri = New-Object System.Uri("http://moved.odfbdemo.com")
$site.Rename($uri)

image

Then did a quick check to make sure it took:

image

It looks like it did. I’ll refresh my browser, just to make sure it’s really gone. It is.

image

Before my site collection can work at http://moved.odfbdemo.com that hostname must resolve in DNS. I could have created a single A record to handle that. Instead, since I knew I’d be doing a lot of HNSCs, I created Wildcard DNS Record. That will cover all hostnames at odfbdemo.com that don’t already have a record in DNS. After I made the DNS record I pinged it just to make sure it was working. If you try to ping the site up in your browser before you make the DNS change, you might have to restart your browser for it all to work. Browsers have been known to cache an IP address from time to time.

2015-05-22_13-19-05

With DNS squared away, let’s go back to the browser and try to load it up.

2015-05-22_13-19-41

Que up the sad trombone. Sad smile Turns out this was easy enough to fix. We need to run the RefreshSitesInConfigurationDatabase method on the content database our newly renamed site collection.

((Get-SPSite http://moved.contoso.com).contentdatabase).RefreshSitesInConfigurationDatabase

In a couple of cases during my testing I also had to throw in an IISRESET to really clear up the errors. After that, success was mine!

2015-05-22_13-35-23

One of the February 2015 CU KB articles mentions the new renaming functionality, but only mentions it in the context of going from path based to HNSC. That alone is impressive enough, and I could have stopped there. But I didn’t. I also tested this going from path based site collection to path based site collection. I must have eaten my vegetables that day because it worked. I used this PowerShell command to create the source path based site collection:

New-SPSite -Url http://portal.odfbdemo.com/sites/oldpath -Template sts#0 -Name "Move me from one path to another" -Description "Please work, please work" -OwnerEmail todd@contoso.com -OwnerAlias odfbdemo\todd

I made sure it worked in Internet Explorer, then I ran the following PowerShell to rename it to http://portal.odfbdemo.com/sites/shinynewpath

$site = Get-SPSite http://portal.odfbdemo.com/sites/oldpath
$uri = New-Object System.Uri("http://portal.odfbdemo.com/sites/shinynewpath")
$site.Rename($uri)
((Get-SPSite http://portal.odfbdemo.com/sites/shinynewpath).contentdatabase).RefreshSitesInConfigurationDatabase

It looked like this:

2015-05-31_14-50-28

Then I fired it up in Internet Explorer at its fancy new URL:

2015-05-22_13-41-34

I hate to brag, but it worked. Smile

It merits further testing, but on the surface it looks like it’s possible to rename path based site collections to new paths, or HNSCs.

If you try this, let me know how it turns out.

tk

ShortURL: http://www.toddklindt.com/RenameSiteCollections

May 30
Creating a Wildcard DNS Record for Fun and Profit

When working with Host Named Site Collections (HNSC) you have to keep on top of the DNS records. SharePoint can only do so much, after all. Since your HNSCs all have different host names, that is the point after all, they each need to be resolvable in DNS. If you’re only going to have a handful of HNSCs it’s easy to just drop into your DNS server and create them. It gets a little trickier when you add HNSCs down the road. You tend to forget to create the DNS entries. It becomes a lot trickier if you create a lot of HNSCs and if the SharePoint team doesn’t control DNS. Then it turns into constant tickets, the network team taking their sweet time, much swearing, and users have to wait for the beloved SharePoint site to come online. What if there was a way to prevent all that needless pain and suffering? I have the solution, wildcard DNS records (you probably guessed that from the title of the blog post).

We’re all familiar with the common types of DNS records, like A records and CNAME records. In most cases these records resolve a single address. For instance, the A record for www.toddklindt.com points to the IP address of my web server, 127.0.0.1. Smile However, it is possible to create a wildcard A record. This record provides a default value for DNS records that aren’t defined. In the context of HNSCs you would create a wildcard DNS A record that points to your SharePoint farm. Then when you create a HNSC with the URL https://foo2.contoso.com it will resolve to the SharePoint farm and work without having to bother those lazy gits on the network team.

To create a wildcard DNS record, create a record for *. Here’s how it looks in the DNS Manager in Windows 2012 R2:

2015-05-22_13-15-50

Here’s how it looks in glorious PowerShell:

2015-05-22_13-18-00

Add-DnsServerResourceRecordA -ZoneName odfbdemo.com -Name "*" -IPv4Address "172.27.1.2"

Here’s what it looks like when it’s created correctly:

2015-05-22_13-18-18

Again, this doesn’t resolve every host in the odfbdemo.com DNS zone to 172.27.1.2, only the hosts that don’t already have an A or CNAME record.

While there are other uses for wildcard DNS records, they are quite handy for HNSCs in SharePoint.

tk

ShortURL: http://www.toddklindt.com/CreateWildcardDNSRecord

May 21
Podcast 247 - Power the Mouses

Tonight's episode is all over the board as I try to get caught up from Ignite. I start out by making some changes in my studio, thanks to one of the podcast Hooligans. Then I cover some Windows Phone news, and I show you an easy way to troubleshoot why your devices take so long to charge. I follow that up with some advice about how to start your own podcast. I finish up with some fun news about the May 2015 CUs to SharePoint and more news about SharePoint 2016.

Audio File

Video File

Podcast 247 - Power the Mouses (Time 0_13_42;14)

YouTube (Subscribe)

Subscribe in iTunes

Transcription by CMSWire

Running Time: 53:13

Links:

08:00 - Change the Podcast Home Page
23:27 - Buy USB Meter
24:30 - Windows 10 Insider Preview 10080 build for phone is now available!
28:06 - Windows Phone Recovery Tool
28:46 - Microsoft is going to control Windows Phone patches going forward
31:35 - How a Podcast Is Born
38:30 - May 2015 CUs are out
42:44 - SharePoint 2013 April CU 2015 fails to install on just about everything
40:42 -SharePoint 2013 patch alerts
46:39 - What's new in SharePoint 2016 Installation and Deployment
50:09 - Alaska SharePoint User Group
50:43 - Mississippi PowerShell User Group
51:02 - SharePointalooza
51:26 - SPTechCon

Brought to you by Rackspace

ShortURL: http://www.toddklindt.com/Podcast247

May 14
Podcast 246 - Secret Bat Entrance

This week's Podcast is all about Microsoft Ignite and SharePoint 2016. I talk about all the fun things I did, the fun parties I went to, and all the fun bus rides I went on. I also introduce my audience to Pat The SharePoint Cow. I end the show telling you how you get a lot of the Ignite material for free on the Internet. All the great content without the risk of running into me on the exhibit hall floor. Win-win!

Audio File

Video File

Podcast 246 - Secret Bat Entrance (Time 0_43_24;10)

YouTube (Subscribe)

Subscribe in iTunes

Part 1 – Transcription by CMSWire

Running Time: 50:24

Links:

02:45 - Microsoft Ignite
11:48 - Pat Thesharepointcow
19:01 - Windows 10 on a Raspberry Pi
19:45 - Raspberry Pi Magic Mirror
21:19 - Paul Thurrott
21:52 - Harmon.ie Top 25 Influencers
28:11 - Upgrade to Microsoft SharePoint 2013 and Ready for Cloud Potential
29:49 - What's New for IT Professionals in SharePoint Server 2016
42:25 - Implementing Next Generation SharePoint Hybrid Search with the Cloud Search Service Application
43:02 - Download any Ignite 2015 session
43:45 - Driving User Adoption from a Technical Standpoint for SharePoint, Exchange and Office 365
44:03 - Bulk download Ignite Sessions
48:22 - Alaska SharePoint User Group
49:08 - Mississippi PowerShell User Group
49:09 - SharePointalooza

Brought to you by Rackspace

ShortURL: http://www.toddklindt.com/Podcast246

May 08
Podcast 245 - Ripple of Sadness

I'm back to the desk this week. I start off by telling everyone how great the SharePoint Evolution Conference was, because it was great. Thanks to everyone I talked to there. Next I talk about when SharePoint 2016 is coming out, and the latest patch for SharePoint 2013. Windows 10 gets a shout out towards the end, and I finish up by talking about a session I'm doing at Ignite.

Audio File

Video File

Podcast 245 - Ripple of Sadness (Time 0_03_39;25)

YouTube (Subscribe)

Subscribe in iTunes

Running Time: 40:39

Links:

9:32 - SharePoint 2016 General Availability in Q2 2016
11:10 - "ripple of sadness"
12:08 - SharePoint 2016 was slated to come out in 2015
17:45 - SharePoint 2013 April 2015 CU is released
18:00 - SharePoint 2013 April 2015 CU is broken!
24:37 - SharePoint Client Browser
27:15 - Windows Insider
28:04 - Configure links to OneDrive for Business in Office 365 (SharePoint Server 2010)

Brought to you by Rackspace

ShortURL: http://www.toddklindt.com/Podcast245

May 03
Podcast 244 - Poke the Azure Bear

In this episode Shane takes over while I'm in London. He talks about Cortana in Italy and mobile phone violence. Then he goes into business mode and talks about patent trolls and how it's okay to write on your desk. Then he thanks Super Troopers for being the best movie ever, because it is.

Audio File

Video File

Podcast 244 - Poke the Azure Bear (Time 0_01_59;20)

YouTube (Subscribe)

Subscribe in iTunes

Running Time: 29:50

Links:

5:15 - Portana
7:05 - Windows Phone is safer
11:20 - "Mobile-geddon"
17:26 - White board desk
22:45 - Blink by Malcolm Gladwell

Brought to you by Rackspace

ShortURL: http://www.toddklindt.com/Podcast244

1 - 10Next
 

 Subscribe to my Netcast

 

You can watch my SharePoint Netcast live every Monday night at 8:30 Central US time at http://www.toddklindt.com/Netcast

You can subscribe to my SharePoint Netcast in the following four ways:

MP3 Audio

Windows WMV video

iOS M4V video

YouTube Channel

 

 Pro SharePoint 2013 Admin

 
 

 SPDocKit

 
 

 Please Support My Sponsors

 
 

 Upcoming Events

 
There are currently no upcoming events.