Trandumper.com

Windows 2003 Exams - Borg dump scripting question 70-292

StrangeDOS - Sun May 06, 2007 2:57 pm
Post subject: Borg dump scripting question 70-292
Borg dump for 70-292 question 42 has an incorrect answer.

The correct answer would be the following...

Set oGroup=oOU.Create("Group","cn=Acounting")

oGroup.put "sAMAscount","Accounting"

oGroup.SetInfo


I checked this against other dumps and when I couldn't trust any of them, I built the script myself and ran it on my test DC. That's when I figured out that there wasn't any such thing as oGroup.Create. It is supposed to be oOU.Create, then you declare it a 'group'.

This also means the TestKing has it wrong too. I finally got the correct information off the Microsoft TechNet site.
StrangeDOS - Mon May 07, 2007 4:38 pm
Post subject:
Wow...a number of people have read my scripting post. If any of you are curious, here is a working version of the script...

Set oRoot = GetObject("LDAP://rootDSE")
Set oDomain = GetObject("LDAP://" & oRoot.Get("defaultNamingContext"))

Set oOU=oDomain.Create("organizationalUnit", "ou=Demo OU")
oOU.Put "Description", "Demonstration OU"
oOU.SetInfo

Set oGroup = oOU.Create("Group", "cn=Demo Group")
oGroup.Put "sAMAccountName", "DemoGroup"
oGroup.Put "Description", "Demonstration Group"
oGroup.SetInfo

Set oUser = oOU.Create("User", "cn=Demo User")
oUser.Put "sAMAccountName", "DemoUser"
oUser.Put "Description", "Demonstration User"
oUser.SetInfo

oUser.SetPassword "1StrongPassword!"

oUser.AccountDisabled = False
oUser.SetInfo

oGroup.Add oUser.ADSPath

It does the following...
1. Creates an OU named 'Demo OU'
2. Creates a group in 'Demo OU' called 'Demo Group'
3. Creates a user in 'Demo OU called 'Demo User' with a password of 1StrongPassword! and is a member of 'Demo Group'

NOTE: To run this just do the following...
1. Open Notepad
2. Copy the script into Notepad
3. Save it as SCRIPT.VBS
4. Copy it to your test Domain Controller
5. Double click on it

Keep in mind that you can only run it once. If you run it a second time it will error out and tell you that the objects you are tring to create already exist. If you delete 'Demo OU', then you can run the script again.

Enjoy!
edelmott - Fri May 11, 2007 4:24 pm
Post subject:
I agree with you ;

Set oGroup = oOU.Create("Group", "cn=Demo Group")
oGroup.Put "sAMAccountName", "DemoGroup"
oGroup.SetInfo


Will work.

But is the line
oGroup.Put "sAMAccountName", "DemoGroup"
really needed to create a group ???

see http://www.microsoft.com/technet/scriptcenter/guide/sas_ads_xdip.mspx?mfr=true
NTLDR - Sat Jun 02, 2007 7:47 pm
Post subject:
I took the info straight from the testking material when I created the dump so I trusted their answer at the time and didn't bother rechecking 600 and something questions individually Laughing

Heck, creating the dump in itself is time consuming alone.

Anyhow, save your time because all the exams have been updated and the questions are no longer valid.

NONE OF THEM ARE ON THE EXAMS ANYMORE
websthetics - Thu Jun 07, 2007 1:42 am
Post subject:
NTLDR wrote:
I took the info straight from the testking material when I created the dump so I trusted their answer at the time and didn't bother rechecking 600 and something questions individually Laughing

Heck, creating the dump in itself is time consuming alone.

Anyhow, save your time because all the exams have been updated and the questions are no longer valid.

NONE OF THEM ARE ON THE EXAMS ANYMORE

Does that mean Microsoft changed their exams or Test King changed theirs?
StrangeDOS - Tue Jul 10, 2007 8:59 pm
Post subject:
NTLDR wrote:
NONE OF THEM ARE ON THE EXAMS ANYMORE


That's not true. Both times I took the 292 (once for failing and once for passing) the scripting question was still on it.
All times are GMT
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group