PowerShell – How to Restrict Machine Logon by AD username

No Comments

I was trying to write a script to create AD accounts.
I had already figured out how to add the required groups,
but I was having a difficult time adding machines to the
"Log On To..." / Logon Workstations.
Using powershell, I was able to add 3 machines to the
list using this code:
Set-QADUser userID -objectAttributes @{userWorkstations="Computer1,Computer2,Computer3,etc,etc"}

Some Perspective on the Recent Netflix Price Increase.

No Comments

Using EventComb to Determine the Location of the AD Lockout

No Comments

Logon to a domain controller and launch EventCombMT

Go to Options
Set Output directory and select desktop.

Right click on the left text area and add the domain controller you’re currently in to the server list.

Go to Searches –> Built In Searches –> Account Lockouts

Remove all the servers from the text area and add
the name of the Domain Controler you’re logged into.

Add 4740 to the Event ID’s. (this is the Windows Server 2008 Event ID, not necessary if your domain controllers are older)

Click search.

Wait for search to finish and check output file for the information needed.

How to Max Out Your CPU

No Comments

I was testing my alarms in vsphere and wanted to test them. This handle little vbs script maxes out your CPU load for testing. It’s pretty handy so I thought I’d share.

Dim goal
Dim before
Dim x
Dim y
Dim i

goal = 2181818

Do While True
before = Timer
For i = 0 to goal
x = 0.000001
y = sin(x)
y = y + 0.00001
Next
y = y + 0.01
WScript.Echo "I did three million sines in " & Int(Timer - before + 0.5) &  " seconds!"
Loop

http://virtualizationandstorage.wordpress.com/2010/03/08/cpubusy-vbs/

Hello World!

No Comments

Hello. I’m not sure anyone will ever see or read this, but regardless…Hello!

I’m writing this blog to help document some of the day to day nuggets I’ve found as being a Sysadmin.

Enjoy.