February 2009 - Posts

Use a Query String To Populate the Computer in Ron Crumbaker's Web Remote Tools
Thursday, February 12, 2009 2:59 PM

These changes will allow you to link to the Web Remote Tools and automatically populate the computer input box using a query string. For example: http://configmgr/tools/default.asp?sMachine=computer1

 

Open Default.asp and make this change:

Line 21:

<frame name="contents" scrolling="no" target="Nav" "resizable=yes,scrollbars=yes" src="MachRest.asp?sMachine=<%=sMachine%>" topmargin="2" tabindex="-1">

 

Open machrest.asp and add these lines to the top:

Line 1:

<%

Line 2:

dim sMachine: sMachine = Request.QueryString("sMachine")

Line 3

%>