WScript.shell is not working with IIS 7.5 and Windows 7 64-bitRSS

2 replies

Last post Feb 11, 2014 09:00 AM by ConnectAjay

  • WScript.shell is not working with IIS 7.5 and Windows 7 64-bit

    Feb 06, 2014 01:29 AM|ConnectAjay|LINK

    I have to run .vbs through classic asp. From past quite a few days, I am working on this, but still can't find a solution. My code is as follows:

    Set oWshShell = Server.CreateObject("WScript.Shell") 
    'sCmd = "%systemroot%\sysnative\cmd.exe" 
    'oWshShell.run "c:\windows\system32\cmd.exe", 1, TRUE 
    'oWshShell.run "comspec% /c "C:\inetpub\wwwroot\sharedagents\print.vbs",1,TRUE) 
    'owshshell.run sCmd 
    'oWshShell.run "c:\windows\SysWOW64\cmd.exe", 1, TRUE 
    'oWshShell.run "C:\inetpub\wwwroot\sharedagents\print.vbs",1,TRUE
    Set oWshShell=Nothing 
    


    I tried all the methods that are commented out, but while executing the page, Browser/IIS hangs indefinitly. I have tried all sorts of variation to put in oWshShell, but still I am being able to put it through. I have checked permissions, Registry and all sorts other tweaks that can be poosible. Is it due 32-bit/64-bit issue or something alse? Can someone help?

    Wscript iis

  • Re: WScript.shell is not working with IIS 7.5 and Windows 7 64-bit

    Feb 06, 2014 09:59 PM|Pengzhen Song - MSFT|LINK

    Hi,

    You can try running iis application pool where your website exists in 32bit compatability mode.

    Below is how you do it from IIS7 manager: 

    1. Right click on the Application Pool and select “Advanced Settings…” or select the same from the Actions pane after selecting the Application pool
    2. Change the “Enable 32-bit Applications” to True (if you want the application pool to spawn in a 32-bit mode)
    3. Click OK

    For more information, you can refer here

    #enabling 32 bit mode:

    http://www.depotsystems.com/ds_mobile_webhelp/webhelp/index.htm#page=Enabling_32_bit_mode.htm

    #blog:problems running WScript.Shell on 64bit Windows

    http://w3-4u.blogspot.in/2006/10/qa-problems-running-wscriptshell-on.html

    Hope it can help you.

    Wscript iis

    We are trying to better understand customer views on social support experience. Click HERE to participate the survey.
    Thanks!
  • Re: WScript.shell is not working with IIS 7.5 and Windows 7 64-bit

    Feb 11, 2014 09:00 AM|ConnectAjay|LINK

    I tried that too. Even then my browser is still hanging.

    I followed this approach too but still not reaching the Target

    http://forums.iis.net/post/2037885.aspx

    Wscript iis