Solved

ASP.NET application trying to change VM state in WMI, need help with permissions

Posted on 2011-03-11
4
411 Views
Last Modified: 2013-11-08
Hi

I have an application that can start pause reboot and shutdown a vm from a button in an asp.net page the code behind is c#
I know what the problem is but have no knowledge to fix it.

The permissions for me to access wmi and change the state are wrong, i have added iusr to the vitrualisation namespace in wmi but i still cant get the applcation
to read data and write data back to wmi

can anyone help

many thanks in advance
0
Comment
Question by:xenosnoop
4 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 35113178
I believe that what you need is impersonation, and a ManagementScope...
0
 

Author Comment

by:xenosnoop
ID: 35114809
Hi

Yup while I was waiting I found the solution

In the web.config file under system.web add <identity impersonate=true unerName="" password=""/>

If I impersonate someone with Wmi access this will work
0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
ID: 35944481
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question