Category: Powershell

Lync/SfB Server: Event 41026, LS Data MCU after May 2017 .NET Framework update

Hi, Today a customer call me and said that they cannot connect to meeting. In the Blog below is the fix. https://blogs.technet.microsoft.com/uclobby/2017/05/24/lyncsfb-server-event-41026-ls-data-mcu-after-may-2017-net-framework-update/ And script that does this for You. https://gallery.technet.microsoft.com/LyncSfB-Server-Disable-EKU-dab6cb88

Continue Reading Lync/SfB Server: Event 41026, LS Data MCU after May 2017 .NET Framework update

Recipient deferred because there is no Mdb.

So You see this error in NDR when the message bounces back. In my case I had a normal AD User with mail-attribute populated. Exchange figured out that this user has a mailbox inside the organization. It wasn’t. The user…

Continue Reading Recipient deferred because there is no Mdb.

WIN10 – Remove AppX Packages directly from .ISO file.

It is common knowledge that for sysprep, you need to remove AppX packages from Windows 10 (and 8/8.1). The best way to do it, is to remove them directly from the installation media, so they never get installed in the…

Continue Reading WIN10 – Remove AppX Packages directly from .ISO file.

SCCM TS: Prompt for Computer Name with PowerShell

Instead of generating a random name during OSD deployment, you might want to enter a custom name to your computers. This is very easy to do with a PowerShell script now that WinPE 4.0 and later support PowerShell. The method…

Continue Reading SCCM TS: Prompt for Computer Name with PowerShell

Get-mailbox together with get-mailboxstatistics

Hi, When you try to combine Get-mailbox with Get-MailboxStatistics and export it to csv-file, You will get nothing from the last command. So here is a script that will allow You export the following. From Get-Mailbox = Name From Get-Mailbox =…

Continue Reading Get-mailbox together with get-mailboxstatistics

Remove obsolete Logs from Exchange 2013/2016

Add these lines to scheduled tasks and run-as System: Exchange logs older than 7 days:

IIS logs older than 7 days:

In Exchange 2013 this worked fine, but with Exchange 2016 You will get “Access Denied” for the…

Continue Reading Remove obsolete Logs from Exchange 2013/2016

Migrate files to Onedrive with Powershell script.

Jos Lieben wrote a really complex script for automating Onedrive For Business provisioning. http://www.lieben.nu/liebensraum/o365migrator/ We have tested it and it works great. It has the following features. We have tested this script and it really works. Here You can download the…

Continue Reading Migrate files to Onedrive with Powershell script.

Get a Msolusers with License details to seperate CSV-files.

Hi again, Today I found a script export users and licenses to csv-file. This one worked out nicely 🙂 http://sikkepitje.blogspot.fi/2016/10/get-msoluserlicense.html

Continue Reading Get a Msolusers with License details to seperate CSV-files.

Script that assigns Office 365 licenses based on Group membership.

Hi, Again Johan the author at 365lab.net wrote a nice script. It will change user license based on AD Group Membership.

Continue Reading Script that assigns Office 365 licenses based on Group membership.

Migrate from Cloud identities to Azure AD Connect.

Hi, Customer has working tenant with data inside and you need to convert it from Cloud-Only to Synced. It can be done with the following choices: UPN-matcing https://support.microsoft.com/en-us/help/3164442/how-to-use-upn-matching-for-identity-synchronization-in-office-365,-azure,-or-intune SMTP-matching http://www.ivchenko.pro/Blog/Post/23/Merging-on-premises-and-Office-365-users HARD-matching https://dirteam.com/dave/2014/08/15/fixing-office-365-dirsync-account-matching-issues/ Or by using little bit more effort and…

Continue Reading Migrate from Cloud identities to Azure AD Connect.