Can I write WMI code in aspx with C#?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Aries (a)
Date: 05/17/04


Date: Mon, 17 May 2004 15:42:59 -0700

My company plan to migrate all the script from asp with VB to aspx with C#.
Can I write WMI in C# in a .cs file and call it from a .aspx file? If so,
is there any online reference?

I have never done anything on C# with WMI. Can some one please help me?

Thanks.

-- 
                                                                   ÁÙ§Ú¥»¦â
                                                                Forever Bad.


Relevant Pages

  • WMI - could not create object winmgmts
    ... Trying to get WMI via ASP or ASPX to work on a remote W2003 server to ... WMI Control I gave full permissions to this ...
    (microsoft.public.windows.server.scripting)
  • ASPX VB.NET Connects to WMI
    ... Is there any method to let aspx connects to WMI to get system information. ... What did I missing? ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Does WMI have to be installed on Remote Computer?
    ... IMHO this looks like a well constructed and very vell commented script. ... WMI comes as standard on w2k w2k3 and xp, ... does WMI need to be installed on the remote computer in order for a ... ''' First try to ping the server. ...
    (microsoft.public.scripting.vbscript)
  • Re: Look over this script.....could anything be done better?
    ... will be unable to connect with WMI. ... With this version of the script I have kept that included because the script that enumerates all of the servers has some servers that no longer exist. ... Dim objWMIService, colFixedDrives, objFD ...
    (microsoft.public.scripting.vbscript)
  • Re: Create simple file share on the fly
    ... WMI share routine faithfully works. ... You can place the command line below as the final line in your WMI ... You might experiment with actual workstations to see if the script is ... the shares that I make from the Windows GUI, ...
    (microsoft.public.windowsxp.security_admin)