Hotfix Id – what does this GUID stand for ?

יום חמישי, אפריל 9, 2009

I know… I know… It’s been a while since I have posted anything on this blog – I could point the finger to various reasons, but it wouldn’t be totally true – the thing is that I just took a short break from my web presence and concentrated on other things. Anyway, I’m back (have no idea if full time :-) ), but does it really matter ? Anyway, back to the topic of this post. If you ever installed W2K8 cluster and ran the validation tool against multiple nodes, you might have stumbled upon the following warning in the...
תגובה אחת

Executing a set of commands against all DCs in the forest

יום חמישי, נובמבר 29, 2007

Funny how things turn out. I was visiting today a customer which is undergoing a process of upgrading his Domain Controllers to W2K3 R2 and I was asked to help them get a report of OS version on all the DCs in the forest (multi-domain forest). First I thought to query the AD directly, but it appears that there is no way to distinguish between W2K3 and W2K3 R2 when looking at operatingSystem, operatingSystemVersion and operatingSystemServicePack attributes of the DC's computer account. Now what is so funny about it ? Well, just yesterday I helped out a guy...
אין תגובות

Bulk add user accounts from a file to security group using batch

יום ראשון, ינואר 14, 2007

If you have a file containing the names of users (sAMAccountName) and you want to add all of them to a specific group in AD, here is a batch script that might make your life easier:   :: GrpFromFile.CMD - Guy Teverovsky - January 2007:: :: Add users from a file to specific group@echo offsetlocal ENABLEDELAYEDEXPANSIONsetlocal ENABLEEXTENSIONSif "%1"=="" goto :SYNTAXif "%1"=="/?" goto :SYNTAXecho/:: Define initial environmentset groupname=%1set filename=%2set scriptname=GrpFromFile:: Determine if supplied arguments were sufficientif "%groupname%"=="" (  echo/  echo ERROR - Insufficient arguments  goto :SYNTAX)if "%filename%"=="" (  echo/  echo ERROR - Insufficient arguments  goto :SYNTAX)if not exist "%filename%" (  echo/  echo ERROR - File not found  goto :SYNTAX):: Locate critical...
4 תגובות

Copying AD user group membership with dsquery and dsmod

יום שישי, דצמבר 22, 2006

  A question was asked at Daniel Petri's forums about copying AD user's group membership using dsquery/dsmod tools. Having some spare time I have written a batch script that does just that - looks at memberOf attribute of source user account and joins the target account to those groups. Important: if the source account is a member in a group that resides in another forest or the group is of Domain Local type, the fact is not reflected in the memberOf attribute and membership in those group will not be copied between accounts. The script is mosly usefull in single domain...
אין תגובות