Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-03-11
4
Medium Priority
?
431 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 2000 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

597 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