By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,903 Members | 1,973 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,903 IT Pros & Developers. It's quick & easy.

Docs? Some Classes Require Administrator Role...

P: n/a
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/
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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.

"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in message
news:eE**************@TK2MSFTNGP10.phx.gbl...
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/

Nov 18 '05 #2

P: n/a
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.

--
Scott
http://www.OdeToCode.com

On Mon, 12 Jul 2004 10:27:37 -0500, "clintonG"
<csgallagher@RE************@metromilwaukee.com> wrote:
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?


Nov 18 '05 #3

P: n/a
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/
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:#$**************@TK2MSFTNGP12.phx.gbl...
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.

"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in message
news:eE**************@TK2MSFTNGP10.phx.gbl...
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/


Nov 18 '05 #4

P: n/a
See me response above...
--
<%= 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/

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:im********************************@4ax.com...
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.

--
Scott
http://www.OdeToCode.com

On Mon, 12 Jul 2004 10:27:37 -0500, "clintonG"
<csgallagher@RE************@metromilwaukee.com> wrote:
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?

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.