RE: Question about functionality of the Exchange_DSAccessDC class

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Matt,

I have some knowledge about WMI. Could you please provide the repro steps
for this scenario.
I feel that I could be of help.

Thanks,
Navneet Gupta

--------------------
| Thread-Topic: Question about functionality of the Exchange_DSAccessDC
class
| thread-index: AcVWYcssEpfyiyQOSvuH6PHfbL4hGg==
| X-WBNR-Posting-Host: 64.169.85.157
| From: "=?Utf-8?B?TWF0dA==?=" <anonmous@xxxxxxxxxxxxx>
| Subject: Question about functionality of the Exchange_DSAccessDC class
| Date: Wed, 11 May 2005 12:44:07 -0700
| Lines: 41
| Message-ID: <ACE58412-7F30-4906-BB00-6E754E03EC17@xxxxxxxxxxxxx>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.win32.programmer.wmi
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.win32.programmer.wmi:4504
| X-Tomcat-NG: microsoft.public.win32.programmer.wmi
|
| Hello,
| I've been trying to understand the way in which information contained
| within the Exchange_DSAccess WMI class is populated and updated. I have
been
| running this sample script:
|
| Set Locator = CreateObject("WbemScripting.SWbemLocator")
| Locator.security_.impersonationLevel = 3
| 'wbemImpersonationLevelImpersonate
| Set Service = Locator.ConnectServer("COMPUTERNAME",
| "root/MicrosoftExchangeV2")
| Set Object = Service.Get("Exchange_DSAccessDC")
|
| wscript.echo Object.Path_.DisplayName
|
| SQLQuery = "Select * from Exchange_DSAccessDC"
|
| Set DSAobjColl = Service.ExecQuery(SQLQuery)
|
| For Each DSAobj In DSAobjColl
| wscript.echo DSAobj.Name
| wscript.echo DSAobj.ConfigurationType
| wscript.echo DSAobj.Type
| Next
|
| set Service = nothing
| set Locator = nothing
|
|
| The output seems to never update (I'll run the above script every few
| minutes or so). I have waited about 40 minutes after I shut the GC
down,
| and this script was still giving me the old info. If I restart MS
Exchange
| Managment service, the output of this script updates immediately.
|
| Why doesn't the information contained provided by the Exchange_DSAccess
| class update?
|
| This is with Exchange 2003 on Windows 2003.
|
| Thanks,
|
| Matt
|

.



Relevant Pages

  • Question about functionality of the Exchange_DSAccessDC class
    ... within the Exchange_DSAccess WMI class is populated and updated. ... Set Service = Locator.ConnectServer("COMPUTERNAME", ... Set DSAobjColl = Service.ExecQuery ... The output seems to never update (I'll run the above script every few ...
    (microsoft.public.win32.programmer.wmi)
  • RE: Does WMI have to be installed on Remote Computer?
    ... IMHO this looks like a well constructed and very vell commented script. ... WMI comes as standard on w2k w2k3 and xp, ... does WMI need to be installed on the remote computer in order for a ... ''' First try to ping the server. ...
    (microsoft.public.scripting.vbscript)
  • Re: Look over this script.....could anything be done better?
    ... will be unable to connect with WMI. ... With this version of the script I have kept that included because the script that enumerates all of the servers has some servers that no longer exist. ... Dim objWMIService, colFixedDrives, objFD ...
    (microsoft.public.scripting.vbscript)
  • Re: Create simple file share on the fly
    ... WMI share routine faithfully works. ... You can place the command line below as the final line in your WMI ... You might experiment with actual workstations to see if the script is ... the shares that I make from the Windows GUI, ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Starting Excel and doing "stuff"...
    ... I have a WMI .vbs that monitors a folder for new files. ... This code first creates an event filter that polls the repository every 5 ... can use another script or utilities like wbemtest.exe or CIM Studio). ... Active script event consumer has limitations, you can't make Excel visible, ...
    (microsoft.public.excel.programming)