Why do I get an error with this script.
http://msdn2.microsoft.com/en-us/library/Aa389395.aspx Error Type:
Microsoft VBScript compilation (0x800A0409)
Unterminated string constant
/testpage.asp, line 13, column 61
& "{impersonationLevel=impersonate}!root\cimv2").ExecQuery" _
------------------------------------------------------------^
here is the part of the script having a problem
<%@ LANGUAGE="VBSCRIPT"%>
<HTML>
<HEAD>
<TITLE>WMI ASP Example:
Read Default Gateway and IP Address information </TITLE>
</HEAD>
<BODY>
<%
On Error Resume Next
set IPConfigSet = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!root\cimv2").ExecQuery" _
& "("SELECT IPAddress, DefaultIPGateway "" _
& " FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled=TRUE")
%>