????? prestage ???? ??????? ???? RIS ???????? ADSI

?????? ????????? ?????? ?????????
???? ???????: 302467 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

????? ???

??? ????? ??? netbootGUID ???? ????????? ?? "Active Directory" ??? GUID ??? ???? ????????? ??? ??? ??????? ?? ???? ?????? ???????? ??? ????? ????? ?????? ??? ???? ??????? ?? ????? ??????? ????? ??????? ?? ??? (RIS). ?? ????? ??? netbootGUID ????? ????? prestaging ????????? ??????. ???????? ????? ????? ?????? Active Directory (ADSI) ????????? ?????? ???? ?? ???? ??????? prestaged ?????? ????? ??? netbootGUID ???? ????????? ?? "Active Directory".

??????? ????

??? ??? ????? ??????? ???? RIS ??? ???? ??????? ???????? ??? ???? ???? ?????. ??? ?? ???? ???? RIS (???????? ???? "???? ????? ??????? ?????" [BINL]) ?? "Active Directory" ???? ???? ????????? ?????? prestaged ????? ???? ????????? ??????. ????? BINL ???? ???? ????????? ?????? ?? ???? ????????? ?? "Active Directory" ????? ??????? ????? ?? netbootGUID ????? GUID ??????? ????? ?????.

??? ????? ???????? ?? ??? ??????:
  • ????? ??????? prestage ????? ????????? ??????? ?????? ????? ??? netbootGUID ?? "Active Directory".
  • ????? ????? ?? ????? netbootGUID ??? ??????? ???.

????? ????????? ????????

??????? Prestage ????

?????? ????? ?????? Microsoft Visual Basic ????? ??????? prestage ????????? ?????? ?????? ???? ????? ????? ???? ????? netbootGUID ??? ???? ????????? ?? "Active Directory".
'Here is an example of using the CLSIDFromString function to set
'netbootGUID attribute on an existing computer object.
'You can also set netbootGUID at the creation time of the computer object

Private Declare Function CLSIDFromString _
    Lib "ole32.dll" (ByVal lpszProgID As Long, _
                    pCLSID As Byte) As Long

Private Sub Form_Load()
  Dim oComp As IADs
  Dim retval As Long
  Dim strGUID As String
  Dim pGUID(0 To 15) As Byte

  strGUID = "{EEF00083-8597-4c2c-9ACB-FC860480FC5D}"
  retval = CLSIDFromString(StrPtr(strGUID), pGUID(0))
  Set oComp = GetObject("LDAP://cn=comp1,cn=computers,dc=mydomain,dc=com")
  oComp.Put "netbootGUID", CVar(pGUID)
  oComp.SetInfo 
  Set oComp = nothing
End Sub
				

????? ???? NetbootGUID ???????

?????? ????? ?????? Microsoft Visual Basic Script ????? ??????? ????? ?? ???? ????? netbootGUID ??? ??????? ??? ????? ???????.
'The sample uses WMI to return the UUID on the system.
'If a UUID can not be found on the system it returns all F's.
'What RIS does in this case is it uses a zero'd out version of the MAC 
'address of the NIC the machine is booting off of. 
'This sample will return the value required to set the 
'netbootGUID attribute

Option Explicit

Dim boolWFMCapable
Dim szUUID
Dim szMac
Dim SystemSet
Dim szAdapterDescription
Dim SystemItem
Dim NetworkAdapterSet
Dim NetworkAdapter
Dim iMacCount
 
Set SystemSet = GetObject("winmgmts:").InstancesOf ("Win32_ComputerSystemProduct")
 
For Each SystemItem In SystemSet
  szUUID = SystemItem.UUID
  If szUUID = "FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF" Then
    MsgBox "No system UUID could be found. This system does " & _
           "not appear to support Intel's Wired For Management " & _
           "specification. This script will now try and retrive " & _
           "a MAC based UUID.", vbInformation, "Not WFM capable"
    boolWFMCapable = 0
  Else
    InputBox "Successfully retrieved a system UUID, " & szUUID & _
             ". This UUID has been placed in the text area below " & _
             "for your convenience.", "WFM Capable", szUUID
    boolWFMCapable = 1
  End If
Next
 
If boolWFMCapable = 0 Then
  Set NetworkAdapterSet = GetObject("winmgmts:").InstancesOf ("Win32_NetworkAdapter")
 
  iMACCount = 0
  For Each NetworkAdapter In NetworkAdapterSet
    If NetworkAdapter.AdapterType = "Ethernet 802.3" Then
      szAdapterDescription = NetworkAdapter.Description
      If NetworkAdapter.Description <> "Packet Scheduler Miniport" Then
        szMAC = NetworkAdapter.MACAddress
        szUUID = "00000000-0000-0000-0000-"&Replace(szMAC, ":", "")
        InputBox "Based on the network adapter with the description """ & _
                 szAdapterDescription & """, your system's UUID would " & _
                 "be " & szUUID & ". This UUID has been placed in the " & _
                 "text area below for your convenience." , _<BR/>
                 "Not WFM Capable", szUUID
      End If 
    End If
    iMACCount = iMACCount + 1
  Next
End If
				

?????

????? ?? ????????? ??? ADSI ?? ?????? ???? Microsoft ?????? ??? ?????:
???? ???? ??? "????? ????? ??????" ?????
http://technet.microsoft.com/en-us/windowsserver/2000/bb735360.aspx
?????? ??? ???? ?? ????????? ??? ????? ??????? ?? ??? "? ?? ?????? ????? Microsoft ??????? ??? ?????:
????? ?????? RIS ??????? ??????? ????????
http://pssweb/eps/performance/mnp_default.asp?loadtype=dynamic&loadurl=/eps/performance/msi/documentation/risclient.htm

????? ???? ??????? ??????
http://technet.microsoft.com/en-us/library/bb742586.aspx
?????? ??? ???? ?? ????????? ??? ????? ????? GUID ????? ?????????? ?????? ?????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
198871????? IShellFolder::GetDisplayNameOf ????? ?? GUID
?????? ??? ???? ?? ????????? ??? ????? ????? GUID ????? ????? ????????? ???????? ??? ????? ??????? ?? ??? "? ???? ??? ??? ??????? ?????? ?????? ??" ????? ??????? ?? Microsoft:
242920????? ??? ??? "????? ??????? ??????"
?????? ??? ???? ?? ????????? ??? CLSIDFromString ?? ?????? ???? ???? ????? Microsoft (MSDN) ?????? ??? ?????:
http://msdn.microsoft.com/en-us/library/ms680589.aspx
????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
183544????? ??????? CLSID ? ProgID ???????? APIs COM ?? Visual Basic
?????? ??? ???? ???? ??? WMI ? ?? ?????? ???? MSDN ??????:
http://msdn.microsoft.com/en-us/library/bb985153.aspx

???????

???? ???????: 302467 - ????? ??? ??????: 10/???/1427 - ??????: 5.1
????? ???
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Active Directory Service Interfaces 2.5
  • Microsoft Active Directory Service Interfaces 2.5
????? ??????: 
kbmt kbdswadsi2003swept kbhowto KB302467 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????302467

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com