Peter's IT Blog

Subscribe


My Library

Disclaimer:

DISCLAIMER: THIS BLOG SITE IS FOR MY OWN PERSONAL RECORD. PLEASE USE AT YOUR OWN RISK. I NOR MY EMPLOYERS/COMPANY WILL NOT BE HELD RESPONSIBLE FOR YOUR ACTION(S).
Peter's IT Blog

Creating multiple users using a batch file

This is probably an old topic but I'll blog it anyways in case someone might find it useful.

This article is about how to create a list of new users in a specific OU. So here are the requirements:

Users are required to change password at first log on
User accounts are enabled
Username would be the first initial + lastname
There will be a same default password assigned to all of the users

Steps:

Create a batch file with the following content

@echo off
cls
echo Creating Accounts
echo ------------------
for /f "tokens=1-3" %%A in (userlist.txt) do (dsadd user "CN=%%A,ou=Support,ou=IT,dc=thenguyen,dc=local" -fn %%B -ln %%C -display "%%B %%C" -upn %%A@thenguyen.local -pwd ...<< MORE >>

Installing Exchange 2007 Pre-requisites on Windows 2008 using command-line

Installing Exchange SP1 Pre-reqs on Windows 2008
Prereqs:
 
.NET Framework 2.0 or 3.0
Powershell
MMC 3.0 (Installed by default)
IIS 7.0 with various components
Unlike IIS 6 in Windows 2003, the version that comes with Windows 2008 are broken down into many different components that must be installed/selected individually during the installation process. You can install this through the Server Manager MMC using Roles or use a command line as described here.
 


NOTE: All server roles other than the Edge Transport server role must first join to the appropriate internal Active Directory forest and domain


Steps:


At the command prompt type:


ServerManagerCmd ...<< MORE >>

Parameter replacement during creation of the alert failed.

So we have SCOM scours through our Domain Controllers in event logs in Agentless mode to look for security event IDs such as account lockout, deletion, creation, etc. Recently, we ran into an issue where SCOM was throwing caution alerts in the monitor view of SCOM with the following description:

Parameter replacement during creation of the alert failed.


Alert: 73A482E1-631D-C63A-1D17-D563646BBD9B


Workflow: MomUIGeneratedRule800972be4c264006b51ebab11dface54


Instance: domaincontroller.domain.com


Instance ID: {7A857146-7E01-F125-C938-21D9B1F75114}


Management Group: MGMTGroup1


Failing replacement: $Data/Params/Param[8]$

After some poking around I decided that the only thing worth looking at is the Alert ID and the Workflow ID. After a googling for a bit ...<< MORE >>

Windows 2003 Security Events

Windows 2003 Security Events, Security, Domain Controller, Active Directory<< MORE >>

Windows 2008 Security Events

Windows 2008 Security Events, Security, Domain Controller, Active Directory<< MORE >>

Root Management Server Unavailable

System Center Operations Manager (SCOM) 2007 Root Management Server Unavailable The root management server (Healthservice) has stopped heartbeating This adversely affects all availability calculation for the entire management group<< MORE >>

Performance Module could not find a performance counter

Performance Module could not find a performance counter in System Center Operations Manager 2007 SP1 ( SCOM 2007 SP1) bug<< MORE >>

Asterisk Failover (Virtual IP) solution

Asterisk hot failover solution. No special equipments, no software to purchase. A complete open source solution for Hardware Failure scenario.<< MORE >>

Gmail, SPF, and broken Email Forwarding

A user posted the following on slashdot.org:

"Background: Like many people, I have me@mydomain.com as my public facing Email address. When Email comes into my server, I forward it to me@gmail.com. But since my friend has published SPF (Sender Policy Framework) records that say only his server is allowed to send Emails for friend@frienddomain.com, gmail apparently rejects (silently buries actually!) the Email since it is forwarding through my server. Please note that this is exactly what SPF is designed to prevent — spammers from sending Emails with your address — but it breaks forwarding and has other problems. ...<< MORE >>

XP SP3 hits Automatic Updates

Starting today, Windows XP computers configured with Automatic Updates will begin to download and (depending on the configuration) install Service Pack 3. There are a few minor new features aiming to  benefit corporations that are still using this OS, other than that, no real improvements that ordinary/home users will benefit or see from it. Microsoft have ceased the distribution of Windows XP on June 30th, the only way users will able to obtain XP on a new system is perhaps have the manufacturers install it (downgrade) as an option, install it themselves, or buy an Ultra Low-Cost PC (ULCPC). ...<< MORE >>