Problem accessing doamin controller properties over network

  • Thread starter Thread starter Bimmer
  • Start date Start date
B

Bimmer

I wrote a small program to read OS version, site name, IP address,
CurrentTime, etc of a domain controller remotely. The program works when it
runs on the DC but it gives an access violation error when it's run from a XP
workstation. In both cases, the account used to run the program is the domain
administrator. What right do I need to run this program remotely?
thanks
 
Hello Bimmer,

As a first try check the user rights assignments "Logon as a batch job" and
maybe "Backup files and directories" "Manage auditing and security log"

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
 
Bimmer said:
I wrote a small program to read OS version, site name, IP address,
CurrentTime, etc of a domain controller remotely. The program works when
it
runs on the DC but it gives an access violation error when it's run from a
XP
workstation. In both cases, the account used to run the program is the
domain
administrator. What right do I need to run this program remotely?
thanks

Are you using WMI? If so, do you specify impersonationLevel and
authenticationLevel?
 
Thanks for the all replies... I'm using C# and
system.DirectoryServices.ActiveDirectory namespace to query the domain
controller. I've already gave the user (Administrator) to "Logon as a batch
job", "Access this computer from network", "Backup files and directories",
etc but I'm still getting the same error message when I run the program over
the network.
thanks
 
Back
Top