There is very little PowerShell goodness in this video.
$csv = Import-Csv -Path "c:\inputfile\bulk_groups.csv"
ForEach ($item In $csv)
$create = New-ADGroup -Name $item.GroupName -GroupCategory $item.GroupCategory -groupScope $item.GroupScope -Path "OU=TestOU,DC=mydomain,DC=com"
Write-Host "Group $($item.GroupName) created!"
** THIS SCRIPT IS PROVIDED WITHOUT WARRANTY, USE AT YOUR OWN RISK ** This is a very simple script that will search an Active Directory OU for Computer accounts and exports the results to a CSV file. It also includes in the search any child OUs. I’m pretty sure it
** THIS SCRIPT IS PROVIDED WITHOUT WARRANTY, USE AT YOUR OWN RISK ** Scans an OU and any child OUs for computer accounts that have not logged in for 30 days. It disables those computer accounts, moves them to the disabledOU and sets the description of each object to whatever
** THIS SCRIPT IS PROVIDED WITHOUT WARRANTY, USE AT YOUR OWN RISK ** This script will take input of a list of computers from the computer.txt and query that computer for various harddrive information. The output is in an html file in and easy to read table format. I have
** THIS SCRIPT IS PROVIDED WITHOUT WARRANTY, USE AT YOUR OWN RISK ** I use this script on all my servers to collect system and application event log errors on a recurring basis. The version I use puts all the html files on a share drive so I can get
I use this script to run a few commands I find myself running on my DCs on a regular basis. I wanted a solution I could run from my client machine and output the results to a log file. Below is what I cam up with, it will run dcdiag,