Scenario You made an awesome list of old computers and now you want to delete these computers using PowerShell for the sake of cleaning up AD. The Script Here you go: Import-Module ActiveDirectory Get-Content C:\scripts\to-delete.txt | % { Get-ADComputer -Filter { Name -eq $_ } } | Remove-ADObject -Recursive -WhatIf Explanation Separate each action by the pipe, that's the little thing that looks like | Get-Content is where you'll grab the information in the text file. Mine was … [Read more...] about PowerShell script to remove all Active Directory computers in a list
Active Directory
Enabling Event Log ID 4740 – A User Account Was Locked Out
There are certain really helpful Event Logs that just aren't enabled by default. This KB will show you how to enable the Event Log ID 4740, which will really help with proactively managing accounts that belong to users who are having trouble with their passwords, getting locked out while trying to connect to a resource remotely, or an account just getting maliciously hammered and locked out because your policies in place are stopping them. You have Password Policies in place to lock out users … [Read more...] about Enabling Event Log ID 4740 – A User Account Was Locked Out
How to apply Group Policy Templates via ADMX Files
Here's a quick tutorial that you can reference when wanting to apply new Group Policy Templates. What are Group Policy Templates? Not everything you can do in Group Policy inherently exists. New apps and new policies come out all the time. Since not every business needs a bloated version of Group Policy with a ton of rules and settings, you can customize what you want by adding or removing group policy related settings. Software engineers will develop a Group Policy Template for their … [Read more...] about How to apply Group Policy Templates via ADMX Files
Exchange 2013: Shared Room Calendar Setup
Note: Some of these commands are specific to CU1 in Exchange 2013. Please make sure you have updated to CU1 before continuing: There are few things an administrator wants to take care of right when they begin to create shared room calendars. Here's my workflow for setting up Calendars in Exchange 2013. You'll see that some of the settings aren't different from Outlook 2010. Create the Distribution Group and assign it the role of Room List Add Calendar (Mailbox) to Room List Give Admin … [Read more...] about Exchange 2013: Shared Room Calendar Setup
Recent Activity