PowerShell

Removing .NET Framework 4.5 breaks Windows 2012

Removing .NET Framework 4.5 breaks Windows 2012

Windows Server 2012 includes .NET Framework, it provides a comprehensive and consistent programming model to build and run applications (including Roles and Features) that are built for various platforms.

It is not recommended to uninstall .NET Framework. In some given circumstances, there may be a requirement to remove/re-install it…

read more
Manage Azure AD via PowerShell

Manage Azure AD via PowerShell

You can install the Azure module directly from the PowerShell prompt and connect to the numerous services offered by Microsofts extensive cloud solution!

read more
Change Calendar Permissions in Office 365

Change Calendar Permissions in Office 365

Per default the calendars of shared mailboxes in Office 364 have “FreeBusyTimeOnly” permissions applied.
You could create a new sharing policy and change the applied policy on those accounts.

I however chose to just change the sharing permissions on the shared calendar.

read more
PowerShell: List newly created users

PowerShell: List newly created users

To help detect and prevent malicious behavior I usually implement different scripts or other monitoring features in my customers environments.

One of the snippets I frequently use is one that detects newly created accounts.

read more
Change default OU for computers in AD

Change default OU for computers in AD

There are several reasons to change the default organizational unit of computers that join the domain.
The default OU (domain.local\Computers) cannot be linked with GPOs, and should be avoided since its builtin.

read more
Domain Controllers Warning Event ID 10154

Domain Controllers Warning Event ID 10154

I was getting an error at startup on a new Windows 2008 R2 Domain Controller. Apparently the WinRM attempts to create two SPNs after the startup process.

Since that WinRM runs under “Network Service” account, I was able to fix this warning by granting the “Validated Write to Service Principal Name” permission to the NETWORK SERVICE…

read more

Connect to Office 365 with Powershell

The GUI at Microsoft is great but sometimes we need to dig a bit deeper.

I ran into some issues with a Resource mailbox and had to do some troubleshooting in the Office 365 service.

read more
Install Updates on Exchange Server 2010 DAG

Install Updates on Exchange Server 2010 DAG

To update the DAG members with new patches the process should be managed to prevent all of the DAG members from being offline at the same time.

You can move the active mailbox databases off a particular server so that it can be patched, and if necessary rebooted, without causing any downtime for mailbox users on that database.

read more
How to Export Mailboxes with Exchange Server 2010 SP1

How to Export Mailboxes with Exchange Server 2010 SP1

Exchange Server 2010 Service Pack 1 introduced a new method for exporting mailboxes called Mailbox Export Requests. This new method replaces the previous Export-Mailbox command.
Before we look at how to create a new mailbox export request in Exchange 2010 SP1 there are a few things that you should understand.

read more
Verifying Domain User Home Directory

Verifying Domain User Home Directory

Some administrators prefer to do everything manually, other automated. I have always preferred to have as much as possible automated or at least set up with a script so the action can easily be repeated without varying end results.

I have written a script which verifies that all users that should have a home folder has one, and that it has the appropriate permissions.

read more