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 … Read more

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 … Read more

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 … Read more

SharePoint Online – Change the Look- Classic vs. Modern

I recently created a Microsoft Office 365 development environment via https://aka.ms/offdp I was creating an environment to do some SharePoint Modern theming (I created a new Communication Site via the modern Admin interface on my new tenant), but noticed the classic (rather the older) Change the Look interface: However, on existing client’s tenants, I noticed … Read more

SharePoint Conference 2018 SPC18 highlights

I am a bit bummed I was not able to attend this years SharePoint Conference, but I will attend next years. I was able to follow quite a bit of SharePoint Conference Las Vegas tweets on my twitter account, https://twitter.com/eschraderMB Here is a summary of what I noted from the #SPC18 hashtags that I thought … Read more

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 … Read more

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 … Read more

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 … Read more