Script modification of ISA access rules

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johanot
    New Member
    • Oct 2008
    • 1

    Script modification of ISA access rules

    HELP. :)

    I found a usefull script at isascripts.org. The script fills a computerset with names and IP-adresses. I'm running IIS and ISA server on the same machine and I would like to let the script be executed from an ASP.NET website running on the IIS server. The IIS is only accessable from my internal network so the security is about the script execution is not that critical.

    The script works fine when I execute it directly from the command prompt on the server, but it dosen't work when I try to execute it remotely on the website from a DHCP client computer in my local network.

    To execute the script I use the following C# code:

    ProcessStartInf o psi = new ProcessStartInf o("UpdateISA.ba t");
    psi.UseShellExe cute = true;

    Process p = Process.Start(p si);
    p.Close();

    ---
    The content of the BAT-file executed is the following:

    WScript.exe ISAFillSet.vbs Residents residents.txt
    ---

    I tried redirecting the standard output and error streams from the process and no errors showed up. The BAT file and the script engine executes with no errors; the only problems is, that nothing happens in the ISA server. The computerset doesn't update.

    As I said this operation works fine when I execute it on the server command prompt.

    I also tried to change the standard guest account on the IIS to "Administra tor" and I tried to set Full permissions on the cmd.exe, UpdateISA.bat, WScript.exe, ISAFillSet.vbs and residents.txt files. No Luck! :(

    Anybody with futher knowledge or more ideas - pleease help :)
    Using Windows Server 2003 Enterprise and ISA 2004 Enterprise.
Working...