Category: Powershell

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.

O365 hybrid mailbox move, largeitem skipped warnings

When migrating mailboxes to O365 exchange online, maximum item size is limited to 150 MB. To move these items, you can export these to pst -file and you can import these back after mailbox is migrated. With this script to find users / mailboxes…

Continue Reading O365 hybrid mailbox move, largeitem skipped warnings