xenosnoop
asked on
ASP.NET application trying to change VM state in WMI, need help with permissions
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
ASKER
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