Active Directory's Object Specific ACEs and PowerShell Feb. 22, 2017, 2:38 p.m.

Active Directory ACE (access control entries) are different from your regular ACEs (for example, NTFS), because they can be used to grant permissions only on specific types of objects, and to propagate only to specific types of child objects. My question is - how do I replicate this in PowerShell?

active directory powershell sysadmin

Who can add workstation to the domain Feb. 22, 2017, 2:32 p.m.

1) If you have delegated rights on the OU, you can join unlimited computers to the domain. Regardless of what is in the DDC policy. 2) If you do not have delegated rights on the OU, but are listed within the DDC policy, then you can add machines up to the limit of the “ms-DS-MachineAccountQuota” attribute.

active directory sysadmin

Dump a list of all schemaIDGUIDs with PowerShell Feb. 22, 2017, 2:26 p.m.

There are well known methods for setting Access Control Entries (ACEs) on Active Directory objects using Powershell, which rely on you knowing the schemaIDGUID of the schema object classes you are working with (e.g. User, Computer, Group). Unless you know your way around AD it’s not always immediately obvious where to find the schemaIDGUIDs that you need. To help you with this, I’ve thrown together a couple of PowerShell snippets.

active directory powershell sysadmin

Add Object Specific ACEs using Active Directory Powershell Feb. 22, 2017, 2:24 p.m.

In the example below, we are going to create two object specific ACEs with one granting the group “myGroup” the extended right “Reset Password” for all users and the other giving it permission to delete computer objects, all under the organizationUnit “myOU”.

active directory powershell sysadmin

Create new bulk AD delegations with Powershell Feb. 22, 2017, 2:22 p.m.

Here’s a Powershell script I wrote to delegate permissions to a service account to manage user objects within a number of OUs.  The script takes as input a file containing the distinguished names (DNs) of the OUs.  The approach should be reasonably obvious from the comments in the script.  The only complexity comes from having to get the correct System.DirectoryServices syntax for the Access Control Entries (ACEs).

active directory powershell sysadmin

How to configure a firewall for domains and trusts Feb. 15, 2017, 12:08 p.m.

To establish a domain trust or a security channel across a firewall, the following ports must be opened. Be aware that there may be hosts functioning with both client and server roles on both sides of the firewall. Therefore, ports rules may have to be mirrored.

active directory sysadmin

The LastLogonTimeStamp Attribute – What it was designed for and how it works Jan. 18, 2017, 9:44 a.m.

It is important to note that the intended purpose of the lastLogontimeStamp attribute to help identify inactive computer and user accounts. The lastLogon attribute is not designed to provide real time logon information. With default settings in place the lastLogontimeStamp will be 9-14 days behind the current date.

active directory windows sysadmin

How to Recover from an Active Directory Failure Jan. 13, 2017, 10:49 a.m.

In this article we will look at the different options and approaches available to recover a DC that has a database corruption. In addition, this article outlines, symptoms, causes, and solutions for this scenario.

active directory microsoft sysadmin

Microsoft Active Directory Topology Diagrammer Nov. 4, 2016, 2:22 p.m.

The Microsoft Active Directory Topology Diagrammer reads an Active Directory configuration using LDAP, and then automatically generates a Visio diagram of your Active Directory and /or your Exchange Server topology. The diagramms may include domains, sites, servers, organizational units, DFS-R, administrative groups, routing groups and connectors and can be changed manually in Visio if needed.

active directory microsoft sysadmin download

Cleanup Active Directory with PowerShell Sept. 2, 2016, 9:02 a.m.

PowerShell scripts to report on & manage inactive Active Directory objects, including users, computers, groups and OUs.

active directory powershell sysadmin windows

Django snippets: Authenticate against Active Directory March 12, 2012, 1:39 p.m.

Use active directory to authenticate Django users.

programming development code python authentication active directory ldap django