Provisioning a New Office 365 User and Mailbox from Exchange Hybrid via PowerShell

Provisioning a New Office 365 User and Mailbox from Exchange Hybrid via PowerShell

Working with many Office365 clients, I receive queries on how to go about provisioning users and mailboxes for an Exchange hybrid deployment. To begin with, let’s assume a couple things. We have a Windows 2012 R2 member server with Azure AD Connect (AAD Connect) version 1.1.105.00 (or newer) and the Azure AD Module for PowerShell installed; […]

Continue Reading
Add Alternate Email Address or Recovery Email Address for Office365 Administrator

Add Alternate Email Address or Recovery Email Address for Office365 Administrator

In Office365, depending on the admin role of an account you may want to add an alternate email address for password recovery. This is a basically a self-service password reset for Administrators of Office365. Quick way to do this is with PowerShell: #Connect to Office365 Import-Module MSOnline Connect-MsolService $O365Cred = Get-Credential $O365Session = New-PSSession –ConfigurationName […]

Continue Reading
Map a network drive using PowerShell

Map a network drive using PowerShell

Make sure you are using the latest version of PowerShell. On Windows 8/10 run it as administrator and type the following: New-PSDrive –Name “Z” –PSProvider FileSystem –Root “\\fileserver01\share” –Persist Where: Z – is the Drive Letter Within ” ” is the path of the network share that will be presented as the root of the […]

Continue Reading
Guide to migrate FRS to DFSR

Guide to migrate FRS to DFSR

For most users this article only applies if you have Window 2003/ 2003 R2 Domain Controller in your enviornment that you are planning to get rid off. Pretty soon I hope! 😉 [su_tooltip position=”north” content=”FRS – File Replication Service DFSR – Distributed File System for Replication[/su_tooltip] SYSVOL is a folder shared by domain controller to […]

Continue Reading
Lists all users last logon time

Lists all users last logon time

As administrators we often want to check which users have not logged in for quite a while, or what accounts recently accessed a system, etc. The following script list all users and their last logon time. With the lastloggeduser.csv we can get fancy with excel to find differences based on age and more. $([ADSI]”WinNT://$env:COMPUTERNAME”).Children | where {$_.SchemaClassName […]

Continue Reading