Docs? Some Classes Require Administrator Role...

C

clintonG

Using the process class requires the administrator role. Thus, if I may
presume, there are other classes that require role-based dependencies.

Does anybody know of documentation listing role-dependent classes?

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
 
K

Kevin Spencer

Don't know if there is any specific documentation about this, but it
shouldn't be hard to figure out. For example, to manage processes, one must
be an administrator, naturally. To read or write from Active Directory
requires a role having the administrative permissions necessary to do so. To
open a file on a machine elsewhere on the network, the app must be or
impersonate a user account with the necessary permissions on that machine.
To read from or write to the System Registry, the app must be or impersonate
an account with that permission. Etc.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
S

Scott Allen

It's not that classes require a role, per se.

For example, I can start XCOPY using the Process class from an ASPX
page under the ASPNET account, and I can copy a file from one temp
directory to another with xcopy when the directory permissions are
wide open. If I try to copy a file into the \Documents and
Settings\Administrator, then there is a permissions issue. Likewise if
I try to run IISRESET, I'll get an access denied message, but in
neither failure will I get an exception - just an error message in the
output of the process because of what it tried to do.
 
C

clintonG

The documentation -- MSDN Library -- clearly states classes that
are also supported by the Compact Framework. The same should
be true when roles impose dependencies on usage.

I was hoping to learn somebody had taken it upon themselves to
document this fact as it is not documented within the official
documentation.

I'll be submitting this suggestion to MSDN...

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
 

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

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,833
Latest member
BettyeMacf

Latest Threads

Top