Problem accessing doamin controller properties over network

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
 
M

Meinolf Weber

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
 
R

Richard Mueller [MVP]

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?
 
B

Bimmer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top