Active Directory

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
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
AD Delegation: Default Permissions for GPOs

AD Delegation: Default Permissions for GPOs

When setting up Active Directory delegation, you want administrators to be able to maintain Group Policy without being a Domain Admin.

If you read TechNet, Microsoft tells you to use Group Policy Creator Owners. However CO does not have permissions to modify or edit any other group policy objects.

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
Auditing Group Changes in Active Directory

Auditing Group Changes in Active Directory

A customer of ours asked us to look into making their environment more secure. However we noticed that they did not audit Group/User changes in their Active Directory, we adjusted this and here’s a quick guide how to deploy it in your corporation.

read more