PowerShell – Change homedirectory permissions in bulk.

Recently I was asked to change the homedirectory permissions for >4000 users from Full Control, to ready only. I’ve used below powershell commands to achieve this. Firstly we need to get all SamAccountName’s in a .csv list. (Change the searchbase). Get-ADUser -Filter * -SearchBase “OU=www,DC=iterrors,DC=com” | Where { $_.Enabled -eq $True} | select SamAccountName | […]

Read More »

Sharepoint Online – Add members and owners via PowerShell

To add members and owners to a SharePoint Online TeamSite you have the below commands avaiable: Note that if you need to make someone Owner of the Teamsite, the user first needs to be member! And then you make the user Owner. #Get Groupnames Get-UnifiedGroup #Check for current members Get-UnifiedGroupLinks –Identity “groupname” –LinkType Members #Check […]

Read More »

We’ve run into a problem with your Office 365 subscription after tenant to tenant migration.

After a tenant to tenant migration multiple people got the message ‘We’ve run into a problem with your Office 365 subscription’. I found a script wroted by someone on 365labs.net; How to resolve “We’ve run into a problem with your Office 365 subscription” with PowerShell So to resolve this issue you start powershell on the PC […]

Read More »

Allow synchronisation of files with special characters (like # and %).

Allow synchronisation of files that include special characters in the filenames, like # and %. Step 1; Download and install the ‘SharePoint Online Management Shell’ link: https://www.microsoft.com/en-us/download/details.aspx?id=35588 Step 2; Open the SharePoint Online Management Shell by searching for ‘sharepoint’ in your startmenu. Step 3; Run the following command: (replace the values according to the tenant […]

Read More »

Windows 10 PC / Laptop goes randomly to sleep mode.

When your experience your PC or laptop going into sleep mode randomly there a lot of things that could cause that. What resolved the issue for me is this: # Open command prompt as administrator and run the following command: REG ADD “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0” /v Attributes /t REG_DWORD /d 2 /f # Restart the ‘explorer.exe’ process […]

Read More »

DFS – Replication service failed to recover from an internal database error on volume.

When DFS is not replicating anymore and you see event ID 2104 with error 9214 there is a simple solution to do which i found on this website: http://www.asptricks.net/2017/01/replication-service-failed-to-recover.html Basicly it’s disabling the replication group nodes and running a .bat file. 1. Disable group replication (DFS Management -> Replication -> Replication group -> Connections -> […]

Read More »

Windows – Open HKEY_CURRENT_USER as different user

It can happpen that you would need to edit the registery for a user, but regedit is disabled for the userprofile. There is an option to open registery settings for another user as the administrator; #1 Log in as Administrator and open regedit. #2 Select HKEY_USERS and then go to ‘File -> Load Hive #3 […]

Read More »

Outlook – Pressed backspace, where did my email go?

When you (accidently) press ‘backspace’ within Outlook you will see your highlighted email dissapear. You will not find it in deleted items or even in restore deleted items, because it’s in your ‘Archive’ folder within your profile. Find your ‘Archive’ folder and you will see the message you just pressed ‘backspace’ on.

Read More »

VLC is crashing when starting up a game

When you have a doublescreen setup and you want to use VLC to watch video’s or play music while you game it will crash. There is a solution for this issue; Steps: Open VLC and go to preferences -> go to video -> choose ‘all’ at the bottom and search for Overlay video output in […]

Read More »

Outlook 2016 – Upgrade in Progress

Recently i faced some Outlook 2016 functionality issues. It became impossible to sent / receive email. In Outlook 2016 options there was a message ‘Upgrade in progress’ This could be there for days without any change. Some websites are saying that opening Outlook in /safe mode is resolving the issue, this was not the case […]

Read More »