Re: Only boots in to AD recovery
- From: Deb <Deb@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 24 Jul 2009 13:21:02 -0700
Hello Meinolf,
First off thank you.
Good news found the root DC and will be running script on it.
Turns out it was the switch hookup that caused me not to login to JLFacc dc.
Ok the problem one more time was between the keyboard and chair.
Thank you,
Deb
"Meinolf Weber [MVP-DS]" wrote:
Hello Deb,.
So you didn't use a newsreader? Then you have to copy the code between the lines, create a textfile with notepad and paste it there, then save it and rename the filename to listDCs.vbs :
---------------------------------------------------
Function fGetDCList()
' AUTHOR: DiGiTAL SkReAM
' CONTACT: digital.skream@xxxxxxxxx
' DATE : 4/8/2006
' COMMENT: Will return a list of all of the Domain Controllers in an
' Active Directory domain.
Dim oRoot, sConfigNamingContext, oADOConnection, oADOCommand, sADOQuery
Dim oRecordSet, oDC, oSite, oCat, iErr
fGetDCList = "N/A"
On Error Resume Next
Set oRoot = GetObject("LDAP://RootDSE")
iErr = Err.Number
On Error GoTo 0
If iErr = 0 Then
sConfigNamingContext = oRoot.Get("configurationNamingContext")
Set oADOCommand = CreateObject("ADODB.Command")
Set oADOConnection = CreateObject("ADODB.Connection")
oADOConnection.Provider = "ADsDSOObject"
oADOConnection.Open "Active Directory Provider"
oADOCommand.ActiveConnection = oADOConnection
sADOQuery = "<LDAP://" & sConfigNamingContext & ">;(ObjectClass=nTDSDSA);AdsPath;subtree"
oADOCommand.CommandText = sADOQuery
oADOCommand.Properties("Page Size") = 100
oADOCommand.Properties("Timeout") = 30
oADOCommand.Properties("Cache Results") = False
Set oRecordSet = oADOCommand.Execute
Set oCat = New StringCat
Do Until oRecordSet.EOF
Set oDC = GetObject(GetObject(oRecordSet.Fields("AdsPath")).Parent)
oCat "Netbios_Name : " & oDC.cn
'"FQDN : " & oDC.DNSHostName & VbCrLf
oRecordSet.MoveNext
Loop
oADOConnection.Close
fGetDCList = oCat.Flush
End If
End Function
---------------------------------------------------
Best regards
Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
I know its something is shouled be seeing but I do not see where it is
attached as a file.
Thanks again,
"Meinolf Weber [MVP-DS]" wrote:
Hello Deb,
Ace had already copied the code into his answer from before. I will
attach it as file to this posting, save the file and then download to
your DC and rename it from listDCs.txt to listDCs.vbs. Now you can
run the script and post the output.
Best regards
Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and
confers no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
Not a program so which script should I use from
http://www.visualbasicscript.com/m_33275/tm.htm ?
sorry please help me with running this script,
Thank you
"Ace Fekay [MCT]" wrote:
"Meinolf Weber [MVP-DS]" <meiweb(nospam)@gmx.de> wrote in message
news:ff16fb662ad2e8cbda6b629e4192@xxxxxxxxxxxxxxxxxxxxxxx
Hello Deb,[snipped]
As said earlier, when the root domain DC is crashed and you canHmm, I must have missed that part. So it appears that there was
not restore it or have an additioanl DC in the root, you will not
be able to restore the forest. And you have to start complete for
all child domains also from scratch.
only one forest root DC, and it crashed? Quite unfortunate.
Hopefully Deb will run that script I provided. I am looking forward
to see the results so we can get a complete picture of the
infrastructure.
Ace
- References:
- Only boots in to AD recovery
- From: Deb
- Re: Only boots in to AD recovery
- From: Marcin
- Re: Only boots in to AD recovery
- From: Deb
- Re: Only boots in to AD recovery
- From: Marcin
- Re: Only boots in to AD recovery
- From: Deb
- Re: Only boots in to AD recovery
- From: Meinolf Weber [MVP-DS]
- Re: Only boots in to AD recovery
- From: Ace Fekay [MCT]
- Re: Only boots in to AD recovery
- From: Deb
- Re: Only boots in to AD recovery
- From: Deb
- Re: Only boots in to AD recovery
- From: Meinolf Weber [MVP-DS]
- Only boots in to AD recovery
- Prev by Date: Re: Event ID 404 Errors
- Next by Date: RE: Active Directory GPO Delivered Software
- Previous by thread: Re: Only boots in to AD recovery
- Next by thread: Re: Only boots in to AD recovery
- Index(es):
Relevant Pages
|