Solved

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

Posted on 2011-03-11
4
420 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

717 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