About Me

My photo
Bergen, Norway
19th times Microsoft MVP (Security and Windows). IT-Dude @SpareBankenNorge
Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

Tuesday, May 29, 2018

PowerShell script to create a junction point to make it easier to access OneDrive from VDI, Citrix and Remote Desktop Services

A workaround when you are using any kind of Remote Desktop Services, VDI and other terminal services function (or applications) that do not support the OneDrive for business client is accessing the files from the PC you are physical logged on. But browsing to the file path where the files/file links are physical locate might be a bit too much to ask your users for.

Thursday, March 8, 2018

Migrating users homefolders or fileshares to OneDrive/Sharepoint with PowerShell

Moving files from on premise fileservers are a task more and more organizations are working with, both home folders to OneDrive and fileshares to sites. Microsoft have created a nice graphical interface for this task "Microsoft SharePoint Migration Tool", you can check it out in my blog post
"Migration users homefolders to OneDrive with Microsoft SharePoint Migration Tool"

But there are some limitations, and in many cases, it might be simpler to just script the process. Microsoft has also created a guide for that too.
The guide are called "Upload on-premises content to SharePoint Online using PowerShell cmdlets"

Wednesday, October 25, 2017

TechDays Sweden: What a fantastic day


Just chilling after 2 amassing session here at TechDays in Stockholm
Promised to get the presentation out to night so here they are:



And if you want my Test-OneDrivePath.ps1 you can find the newest version on my GitHub under construction page HERE
Maybe I will have time to create a better guide for it soon. Remember it works just as well with your Sharepoint migration

Thursday, September 21, 2017

Ignite Session: THR3026 - Migrating home folders to OneDrive for Business

One of the big benefit of working in a company like Lumagate is the focus on continuous development of knowledge among the employees. Combining this with the amassing culture of sharing is caring mentality, gives us that special edge that is needed to solve challenges.

I had been trying to create a script to search for OneDrive limitations in folders to use before migrating or to have as a troubleshooting tools during migration. The Microsoft support and recovery assistant for office 365 can be helpful, but that require to be installed and are a GUI based solution. So running a script is a much more efficient way. I was a bit stuck so I just posted a "help me, please" note in our Teams channel and 1 hour late I had a really promising draft of a script handed to me by my colleague Reidar Johansen.

Wednesday, April 22, 2015

Check if your script are running in administrator context

Doing system changes via a script files will often require that you run it in the context of administrator.

Doing this with script I run myself is easy enough, I know that if it fails it is because I forgot to use "Run as administrator" when I started it (or did a poor job creating the script).
However when creating scripts that other people will run it will be a good idea to add a check in the script and give feedback to the person running it.

Cleaning Up Unknown IAM Assignments Across Azure Subscriptions

  If you manage more than a handful of Azure subscriptions, IAM hygiene quickly becomes one of those tasks everyone knows is important, but ...