Get / Set IIS Property at W3VC and W3SVC/AppPools levels
Posted: Tue Oct 24, 2006 4:11 pm
Hi,
We are doing a proof-of-concept installation package using a trial version (InstallAware 6.0) to make sure the software can do everything we need before purchasing it.
As part of our install, I need to do two things:
1. READ the value of IIS metabase property at W3SVC/IIs5IsolationModeEnabled
As you probably know, IIS 6.0 behaves radically different based on this setting and i need to know its value in order to do the install.
(see http://msdn.microsoft.com/library/defau ... erview.asp)
2. SET the value of IIS metabase properties at W3SVC/AppPools/MyAppPool/[WAMUserName/WAMUserPass]
I've got 2 Virtual Directories that my IA package creates and sets to a custom ApplicationPool like "MyAppPool"
One of my installation options is to use a specified account for the application pool.
---
Solution Questions:
1'. Does the built-in script command "Get IIS Property" support this?
I've *tried* a solution using the following.
(cscript //Nologo C:\\Inetpub\\AdminScripts\\adsutil.vbs GET W3SVC/IIs5IsolationModeEnabled > "%TEMP%\\output.txt")
Note: this command writes the value of the metabase property out to a temp file.
BUT, when i tried to convert this into a "Run Program" command, piping the output does not work.
Run Program: "cscript"
Parameters: //Nologo C:\\Inetpub\\AdminScripts\\adsutil.vbs GET W3SVC/IIs5IsolationModeEnabled > "%TEMP%\\output.txt"
Why does this behave differently when run from "Run Program" in InstallAware?
2'. Does the built-in script command "Set IIS Property" support doing this?
I've found a solution for this that doesn't require a plugin:
(cscript C:\\Inetpub\\AdminScripts\\adsutil.vbs SET W3SVC/AppPools/MyAppPool/WAMUserName domain\\user)
but, it adds a dependency on an adminscript, which seems undesirable -- I'd prefer to use the built-ins if possible.
Plugins are always a possibility for getting work done that isn't supported via the built-in scripting commands, but keeping it simple would be ideal.
It seems many besides myself would need to deal with these properties in IIS -- is there a possibility that there would be built-in commands to deal with IIS Application Pools soon?
thanks,
drew
We are doing a proof-of-concept installation package using a trial version (InstallAware 6.0) to make sure the software can do everything we need before purchasing it.
As part of our install, I need to do two things:
1. READ the value of IIS metabase property at W3SVC/IIs5IsolationModeEnabled
As you probably know, IIS 6.0 behaves radically different based on this setting and i need to know its value in order to do the install.
(see http://msdn.microsoft.com/library/defau ... erview.asp)
2. SET the value of IIS metabase properties at W3SVC/AppPools/MyAppPool/[WAMUserName/WAMUserPass]
I've got 2 Virtual Directories that my IA package creates and sets to a custom ApplicationPool like "MyAppPool"
One of my installation options is to use a specified account for the application pool.
---
Solution Questions:
1'. Does the built-in script command "Get IIS Property" support this?
I've *tried* a solution using the following.
(cscript //Nologo C:\\Inetpub\\AdminScripts\\adsutil.vbs GET W3SVC/IIs5IsolationModeEnabled > "%TEMP%\\output.txt")
Note: this command writes the value of the metabase property out to a temp file.
BUT, when i tried to convert this into a "Run Program" command, piping the output does not work.
Run Program: "cscript"
Parameters: //Nologo C:\\Inetpub\\AdminScripts\\adsutil.vbs GET W3SVC/IIs5IsolationModeEnabled > "%TEMP%\\output.txt"
Why does this behave differently when run from "Run Program" in InstallAware?
2'. Does the built-in script command "Set IIS Property" support doing this?
I've found a solution for this that doesn't require a plugin:
(cscript C:\\Inetpub\\AdminScripts\\adsutil.vbs SET W3SVC/AppPools/MyAppPool/WAMUserName domain\\user)
but, it adds a dependency on an adminscript, which seems undesirable -- I'd prefer to use the built-ins if possible.
Plugins are always a possibility for getting work done that isn't supported via the built-in scripting commands, but keeping it simple would be ideal.
It seems many besides myself would need to deal with these properties in IIS -- is there a possibility that there would be built-in commands to deal with IIS Application Pools soon?
thanks,
drew