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,
*** THIS SCRIPT IS PROVIDED WITHOUT WARRANTY, USE AT YOUR OWN RISK *** This script will allow you to read a list of computers from the computers.txt file and use alternate admin credentials to get service information remotely. The script contains a few examples, cut and paste as you wish.
For whatever reason I’ve had this problem more with Windows Server 2008 R2, not so much with non R2 version. Anyway, here is how you fix it: 1. install VMWare Tools on your virtual machine and reboot 2. VMWare tools should have created the folder: C:\Program Files\Common Files\VMware\Drivers\wddm_video 3. go
For some reason I get error 8024402C when running Windows Update on my servers from time to time, haven’t nailed down a root cause but this seems to fix it. Log on with and administrator account. Open a CMD window as an administrator. In the CMD window, type “net stop