This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Does anyone know how to programmatically remove Anonymous Access from an IIS?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2009
02:19 PM
Does anyone know how to programmatically remove Anonymous Access from an IIS?
Hi,
I want to remove or add 'Anonymous Access from or to an IIS'...
i can do that for root level in .ism, but i want to do the reverse action to a folder...
eg:-
for MyVirtualDir -> removed 'Anonymous Access'
for a folder in MyVirtualDir\WebServices -> i want to assign 'Anonymous Access'
Can anybody send me a VB script file or installscript to do this...
I am using InstallScrip MSI project..
Thanks in advance
I want to remove or add 'Anonymous Access from or to an IIS'...
i can do that for root level in .ism, but i want to do the reverse action to a folder...
eg:-
for MyVirtualDir -> removed 'Anonymous Access'
for a folder in MyVirtualDir\WebServices -> i want to assign 'Anonymous Access'
Can anybody send me a VB script file or installscript to do this...
I am using InstallScrip MSI project..
Thanks in advance
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2009
11:18 PM
after creating the object, you can use the following line of code to disable the anomnymous access. set this to TRUE to enable.
objVirtDir.AuthAnonymous = FALSE;
objVirtDir.AuthAnonymous = FALSE;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2009
11:37 PM
Hi ChandanOmkar,
If you have complete code, can u send it to me 😞
I want to enable it to a particular sub folder....
If you have complete code, can u send it to me 😞
I want to enable it to a particular sub folder....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 21, 2009
11:56 PM
Hi,
Thanks for your code.....do u have any idea how to assign the Anonymous access at folder level?
currently with your code we can set at root level, but is it possible at folder level?
Thanks for your code.....do u have any idea how to assign the Anonymous access at folder level?
currently with your code we can set at root level, but is it possible at folder level?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 22, 2009
12:37 AM
After the root, you can mention the folder name :
IIS://localhost/W3SVC/1/Root/
IIS://localhost/W3SVC/1/Root/
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)