Solved

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

Posted on 2011-03-11
4
406 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web site error 3 41
asp day pilot 3 19
imap mails 1 22
How to create a textarea which saves text in HTML 8 37
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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 if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

770 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