A drag-and-drop GUI made with PowerShell
The script below shows how to create a simple WinForms GUI in PowerShell, where you can drag and drop files and folders and then process these with PowerShell commands when you click the button. I’ve...
View ArticleDownloading OneDrive documents as PDF
As part of automating a build process I needed a way to download the product documentation from OneDrive and save as PDF files for shipping with product. The result is this PowerShell script with two...
View ArticleHeads-up if you use ADAL.JS on a site added to the “Trusted Sites” zone
When working on a SharePoint Online solution that is using the ADAL.JS library for authentication, a customer reported strange problems. In our solution, our site sends the client to the authentication...
View ArticleI stopped using Google Analytics. Here’s why.
For many years I’ve been using Google Analytics (GA) on rlvision.com, but more and more I started questioning myself why. So a month ago I finally cut the cord. Here are my reasons. The first reason is...
View ArticleSolution to Azure AD App not able to use given permissions
A client I’m working with had trouble adding permissions to their Azure Active Directory Application (AAD App). We added application permissions to allow the app to read all users’ full profiles, read...
View ArticleExtending the JavaScript console with history recording
The browser JavaScript console is a web developers best friend. Using console.log() is essential for debugging your web apps. But there are a few annoyances. Two things that bother me for a while are:...
View ArticleHow to backup and restore tables in Azure storage
There is currently no built in solution for backing up tables in Azure Storage, but we can easily do it with the help of a tool called AzCopy which is provided by Microsoft. Below is a PowerShell...
View ArticleBeware this limitation when using SharePoint Image Renditions
With image renditions you can specify a pixel size when requesting an image, and SharePoint will deliver the image scaled down to this size for you. This is great, because you don’t have to worry about...
View ArticleInternet Explorer: ScriptImports is undefined
Today I spent way too much time on hunting down a bug that occurred in Internet Explorer 11 running our intranet solution on SharePoint Online / 2016. The problem showed itself by throwing the...
View ArticleStopping Software Center from restarting your computer
IT-departments may require you to restart your computer to complete updates they have pushed out. This is at best annoying, at worst it can ruin your work if you for example have a long running process...
View ArticleEnable Mometum on an Alps Glidepoint Touchpad
My old computer has a touchpad from Synaptics with a feature called “Momentum”. (I’ve also seen this called “Inertia” och “Inertial Scrolling”.) It causes the mouse pointer move a little bit before...
View ArticleTry this if sound in Windows stops working
Several of my computers have had problems with sound suddenly not working. Typically this seems to happens when switching context, such as going from plugged in to battery, but sometimes it seems...
View ArticleExcluding external users from search results in SharePoint Online
Search in SharePoint Online returns both internal and external users by default. This may not be desirable. Here’s how to exclude external users from the search results. External users have account...
View ArticleHow to quickly get the Group ID for an Office 365 Group
Microsoft Graph typically requires us to use the Group ID when working with O365 groups and modern sites. But Group ID can be tricky to find since it is rarely displayed. Here are some ways I found to...
View ArticlePopup opens as new browser window in Edge and Internet Explorer
Problem: Opening a popup with JavaScript in Edge or Internet Explorer results in a new browser window instead of a popup window. For example:var popup = window.open("https://www.duckduckgo.com/",...
View ArticleHow to create searchable user profile properties in SharePoint Online
In this post I will go through the steps of creating a custom user profile attribute that is searchable and shows on the user profile in Delve. It’s not very hard but involves quite a few steps to keep...
View ArticleIf Snipping Tool freezes and blocks your screen…
Today when I used the Snipping Tool in Windows 10 it stopped working. I could select an area over and over again, but it never closed after that as it should. The screen was dimmed and I could not get...
View ArticleApplying SharePoint Retention Labels Programmatically
So you’ve created and published Retention Labels in Office 365 and now you want to apply labels by CSOM code. It’s not very well documented. The following (crude) code should help you get started...
View ArticleMigrating data from Access to SQL Server
Suppose that you have a simple Microsoft Access database that you need to migrate to another database such as MS SQL Server. You model the tables and relationships in the new database, and now you need...
View ArticleHacking DocX files to fix Quick Parts in Word Online
Microsoft Word documents can have Quick Parts connected to SharePoint fields, so that the value of the field is displayed inside the document. But Word Online (still) does not fully support this. It...
View Article