Welcome !
         

 Power ShellASP Addon

Author Message
diesoeloreo

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 12/6/2008
  • Status: offline
Power ShellASP Addon Saturday, December 06, 2008 1:32 PM (permalink)
0
I have made a few pages using the powershell asp from powertoys and most works until i start to program pulling ILM 2007 data.

I can run the command from the powershell command line but get the following error when run from the web page.

A user was denied access for an operation.

Additional Details
User: "COMPUTERNAME\COMPUTERNAME$" Operation attempted:"CServer::GetEnumInterface"
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Following is the line i run from the command line

Get-WmiObject -Class MIIS_ManagementAgent -Namespace root/MicrosoftIdentityIntegrationServer |Format-Table __Server,__CLASS,Name,Type

The html is



<h1> MIIS </h1>
<div align=left>
<table cellpadding=2>
<tr><td align=center>Server</td><td align=center>Class</td><td align=center>Name</td><tdalign=center>Type</td></tr>
<% Get-WmiObject -Class MIIS_ManagementAgent -Namespace root/MicrosoftIdentityIntegrationServer |Format-Table __Server,__CLASS,Name,Type| %{ %>
<tr>
<td align=left><%=$_.Name%></td>
<td align=center><%=$_.Type%></td>
</tr>
<% } %>
</table>
</div>
<message edited by diesoeloreo on Saturday, December 06, 2008 6:46 PM>
 
#1
    ebgreen

    • Total Posts : 9274
    • Scores: 172
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    RE: Power ShellASP Addon Saturday, December 06, 2008 2:35 PM (permalink)
    0
    Well, the erroir seems pretty crystal clear to me. It seems that either the user account running the script or WMI one or the other (or both) are not permissioned the way that the script expects.
    Stop the Help Vampires: http://slash7.com/2006/12/22/vampires/
    VB is NOT VB.Net which is NOT VBA which is NOT VBScript
     
    #2
      diesoeloreo

      • Total Posts : 2
      • Scores: 0
      • Reward points : 0
      • Joined: 12/6/2008
      • Status: offline
      RE: Power ShellASP Addon Saturday, December 06, 2008 6:46 PM (permalink)
      0
      appears the user in question is the local service account that runs the Internet service.
       
      How can i add the local system account ot the MIIS admins?
       
      #3
        3magic

        • Total Posts : 1
        • Scores: 0
        • Reward points : 0
        • Joined: 1/31/2011
        • Status: offline
        Re: RE: Power ShellASP Addon Monday, January 31, 2011 12:45 AM (permalink)
        0
        Hi,thanks for sharing the information here.Really a nice information is presented here regarding to vb script language.Really it is a very useful and intresting scripting language.Thanks a lot again for sharing the information here....
         
        #4
          Online Bookmarks Sharing: Share/Bookmark

          Jump to:

          Current active users

          There are 0 members and 1 guests.

          Icon Legend and Permission

          • New Messages
          • No New Messages
          • Hot Topic w/ New Messages
          • Hot Topic w/o New Messages
          • Locked w/ New Messages
          • Locked w/o New Messages
          • Read Message
          • Post New Thread
          • Reply to message
          • Post New Poll
          • Submit Vote
          • Post reward post
          • Delete my own posts
          • Delete my own threads
          • Rate post

          2000-2017 ASPPlayground.NET Forum Version 3.9