AdminSDHolder and admincount=1 attribute

Certain groups within Active Directory are considered protected groups and are protected by AdminSDHolder.  When a user becomes a member of a protected group it will no longer inherit permissions from its parent object in AD (usually an OU).  This can mess up any carefully laid permission delegations you may have configured.  Much more on … Continue reading AdminSDHolder and admincount=1 attribute

Move users to OU based on description

Trying to keep up with job changes and ensuring users accounts are in the correct OU in AD can be problematic.  In the environment I work in each team has their own OU (I'm not sure why it is like this,  I suspect it's a case of 'that's the way we've always done it'). Anyway … Continue reading Move users to OU based on description

Mailbox Enable all users in an OU

As well as having to Skype enable all users recently (see previous post) I also had to mailbox enable the users.  With Exchange 2010 you can't just import the powershell module.  Using this article as a base I came up with this; $Session = New-Pssession -COnfigurationName Microsoft.Exchange -ConnectionUri http://exchangeservername/powershell Import-Pssession $Session Get-User -OrganizationalUnit "OU=ExampleOU,DC=Example,DC=Com" | … Continue reading Mailbox Enable all users in an OU

Skype/Lync Enable all users in an OU

I recently had to enable all users in a specific OU for Skype for Business 2015.  Easily done with Powershell; Either import the skypeforbusiness module into a normal Powershell window or run the Skype for Business Server Management Shell import-module skypeforbusiness Get-CsAduser -OU "OU=ExampleOU,DC=example,DC=com" | Enable CSuser -RegistrarPool "your pool name" -SipAddressType emailaddress

Set IP Address and DNS settings with PowerShell – Windows 2012 and newer

get-netadapter Name                      InterfaceDescription                    ifIndex Status ----                      --------------------                    ------- ------       ---------- Ethernet                  vmxnet3 Ethernet Adapter                     12 Up Name is the interfacealias. New-Netipaddress -interfacealias "ethernet" -ipaddress -prefixlength 24 -defaultgateway Could also use new-netipaddress -interfaceIndex 12   set-dnsclientserveraddress -interfacealias "ethernet" -serveraddresses","