In this video, I cover only a few very basic PowerShell Desired State Configuration Manager (DSC) concepts.
- The terminology
- How to create a Local Configuration Manager (LCM) configuration
- How to push the LCM configuration to the target node
- How to create a basic DSC configuration to maintain the MSExchangeTransport …
Read MoreThe intent of this script is to quickly get some basic information about an Active Directory infrastructure. I have used it when I’m doing some work on an environment I’m not familiar with, it gives you a quick look at what you’re dealing with without a whole lot of effort.
NOTE: I tested this code exclusively on a …
Read More- This is a simple script that will read the contents of a CSV file and create a new Active Directory User as well as a new Exchange Mailboxes for each object (row in the spreadsheet). You can select which Organizational Unit you want to put the Users in as well as which Exchange Database each users mailbox is created …
Read More This script uses WMI CMDlets for the most part, to gather some client hardware and software information remotely over the network. Click the link below to see the contents of the CSV file. I use it to collect the following information:
- Computer Name
- Manufacturer
- Model
- Processor Type
- System Type
- Operating system …
Read More- Today we’re talking a little more about Active Directory reconnaissance, for lack of a better term. If I start a new job, the first thing I want to do is find out how my infrastructure is configured. This script will search through Active Directory, or a subset of Active Directory, and look for Organizational Units …
Read More - More Active Directory PowerShell goodness… this time, creating Active Directory User objects in bulk using a CSV file. You will see 2 different code blocks below. The first, is as simple as you can get using minimal parameters and code. The second code block includes more parameters and addresses the issue of storing …
Read More Update 4 May 2017:
I’ve been contacted by a few people that were having trouble running the code in the Get-GroupMember function. I have replicated the error on one of my DCs but another DC in a different domain the Get-GroupMember function works fine. I’m still not entirely sure why the code works for some but not …
Read MoreThis script uses the win32_LogicalDisk WMI Class to get Local Disk Information for one or multiple computers. For more information on the DriveTypes available with the Win32_LogicalDisk class visit: https://technet.microsoft.com/en-us/library/ee176674.aspx.
You could also expand on this script and add email capability …
Read More- This script will search a file structure for a specific file type and export the results to a CSV file. This can be used to search a user accessible file share for file types that you may have policies against storing on a file share. If you don’t have access to Enterprise tools like FSRM this is an easy way to provide …
Read More In this video, I talk a little more about performing Active Directory Maintenance with PowerShell. Specifically, finding user objects that have not authenticated to the domain in X number of days.
This script will search an Organizational Unit for Users accounts that have not authenticated to the Domain in 1 …
Read More