How to generate a sample data test file using PowerShell

5gb sharepoint drag and drop

Using PowerShell, you can quickly create a test file on your computer. I use these for testing SharePoint attachment upload sizes. You can generate files in mb, gb, etc. easily. This example generates a 5gb test file in  C:\Users\MyUserName\AppData\Local\Temp called testfile.txt $path = "$env:temp\testfile.txt" $file = [io.file]::Create($path) $file.SetLength(5gb) $file.Close() Get-Item $path Example of the above … Continue reading How to generate a sample data test file using PowerShell

SharePoint Online- Bad service principal breaks SharePoint Admin API Access “Global Service Principal ID Error: Error: {}” Resolved

Could not retrieve Global Service Principal ID Error

We recently ran into an issue when creating SPFX Azure Active Directory App registrations using an O-Auth Implicit flow that our SharePoint Admin Center API Access page then gave an error: Could not retrieve Global Service Principal ID Error: Error: {} And when using O365 CLI, I was getting the same error trying to add … Continue reading SharePoint Online- Bad service principal breaks SharePoint Admin API Access “Global Service Principal ID Error: Error: {}” Resolved

SharePoint Online- Create a new Home Site in an existing tenant. Spoiler- its not available yet.

This week at #MSIgnite, there has been a lot of talk about Home Sites. This was released a few months back as a PowerShell command to transform any modern communication site collection into the O365 SharePoint Online landing page for your organization. More can be read here: https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-home-sites-a-landing-for-your-organization-on-the/ba-p/621933 SharePoint home sites are the landing sites … Continue reading SharePoint Online- Create a new Home Site in an existing tenant. Spoiler- its not available yet.

Azure VM Remote Desktop error- CredSSP encryption oracle remediation

I ran into an issue where I could not Remote Desktop to my Azure VM and was getting this error: Remote Desktop Connection An authentication error has occurred. The function requested is not supported Remote computer: 13.64.xx.xxx This could be due to CredSSP encryption oracle remediation. For more information, see https://go.microsoft.com/fwlink/?linkid=866660 The issue was a … Continue reading Azure VM Remote Desktop error- CredSSP encryption oracle remediation

Deleting a large list from SharePoint using PowerShell

I recently ran into an issue trying to delete a list over 5,000 items from SharePoint. I tried using Metalogix Content Matrix to delete the list/site, but they all were bound by the threshold. I realized I had to use PowerShell, but research lead to even this having issues deleting the list. The solution was … Continue reading Deleting a large list from SharePoint using PowerShell

SharePoint Online Communication site – How to share with external users

I had an issue where when I tried to share my SharePoint Online Communication Site with an external user, I received an error: Your organization's policies don't allow you to share with these users. Go to External Sharing in the Office 365 admin center to enable it. But when I went to my O365 tenant, … Continue reading SharePoint Online Communication site – How to share with external users

SharePoint Online blog site- How to edit the homepage

Problem After about a week of troubleshooting the classic SharePoint Online blog subsite template (BLOG#0), I was FINALLY able to figure out why I could not edit the homepage. Solution: There is a site feature called "Site Pages" that needs to be activated. Once activated, you can edit the blog homepage (assuming you have permissions). … Continue reading SharePoint Online blog site- How to edit the homepage

SharePoint Online- Enable New Modern experience on root site collection

UPDATE 9/27/2019- Microsoft this month is releasing a way to "Swap" sites. So create a new modern site collection, then swap it with the root. Invoke-SPOSiteSwap https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/invoke-spositeswap?view=sharepoint-ps#description If the target is the root site at https://tenant-name.sharepoint.com, then the following preparation activities should be performed prior to performing the swap: Any Featured links defined in SharePoint Start … Continue reading SharePoint Online- Enable New Modern experience on root site collection

SharePoint Server Trail period reinstall fix

Today, I was hit with a SharePoint error on a developers VM when I tried to create a new Site Collection in Central Admin: Sorry, something went wrong The trial period for this product has expired. When I tried to view a teamsite homepage, I received this error: Sorry, something went wrong The "SiteFeedWebPart" Web … Continue reading SharePoint Server Trail period reinstall fix

SharePoint Server- Renewing SSL certificates quickly

A week ago, my wildcard SSL certificate expired on GoDaddy. It was automatically purchased, but I still had to validate my domain and download a new IIS CER certificate request file. My old post from a few years ago has some good info on certs, the file types, etc. https://eschrader.com/2014/09/23/sharepoint-2013-iis7-nlb-ssl-certificates-and-godaddy/ This is a quick guide. … Continue reading SharePoint Server- Renewing SSL certificates quickly

SharePoint Online global navigation across site collections, with highlighting and security trimming

One common request when working with SharePoint sites is having a consistent navigation across multiple site collections. If you are using a Publishing Portal site template, you can use the Managed Navigation for your Global Navigation (or top navigation). This also supports drop downs. I did a quick test and it appears to support highlighting … Continue reading SharePoint Online global navigation across site collections, with highlighting and security trimming

SharePoint 2010 Content Deployment Job failed. The remote upload web request failed. The remote server returned an error: (404) Not Found.

Summary My farm content deployment jobs had been working, but all of a sudden stopped one day. The end fix was to edit a Central Admin web.config file upload size on the target WFE servers. Issue I was seeing the following errors in my ULS logs after 23 minutes of packing up just under 1gb … Continue reading SharePoint 2010 Content Deployment Job failed. The remote upload web request failed. The remote server returned an error: (404) Not Found.

Automating Azure IaaS SharePoint VM Provisioning via PowerShell Remoting

I have been searching for a way to rapidly create standalone Developer SharePoint 2013 standalone VM's joined to a central domain for our in-house developers. Our team has created 60+ SharePoint VMs on Azure and continue to create about 10 per month. We are beginning to treat our VMs needing hours of repair like cattle, … Continue reading Automating Azure IaaS SharePoint VM Provisioning via PowerShell Remoting