Help on scripting IIS 5.1 install.

Help on scripting IIS 5.1 install.

am 21.09.2007 22:52:01 von jonderosier

Hi.
I'm trying to script an install of iis 5.1/win xp.
- This works:
manually installing iis
rundll32 wamreg.dll, CreateIISPackage
aspnet_regiis.exe /i for both .net 1.1 and 2.0
browse to localhost and it rocks.

instead of manually installing I tried
sysocmgr.exe /i:%SYSTEMROOT%\inf\sysoc.inf
/u:%SYSTEMDRIVE%\iis51\IISInstall.TXT /l /w /c /x

IIsInstall.txt contains:
[Components]
fp_extensions = On
aspnet = on
iis_common = on
iis_doc = on
iis_inetmgr = on
iis_www = on
iis_ftp = off
iis_htmla = on

[InternetServer]
---------------------
I browse to localhost and it comes up with a login. I'm able to login and
then it works, but I want anonymous authentication to work like my manual
install method. I've messed with rights and process to Low and made everyone
in the world Admins and gave Everyone full rights to the folder... Any ideas
? Something simple ?

Thanks, Jon

Re: Help on scripting IIS 5.1 install.

am 22.09.2007 06:18:20 von Ken Schaefer

There is no need to change the Isolation level to low.
There is no need to make everyone administrators.

What you do need to do is:
a) determine what your anonymous user account is (typically it is
IUSR_)

b) ensure that this account has NTFS read permissions to the appropriate
folders (typically the wwwroot folder for your web content)

c) ensure that the IUSR password is synchronised between IIS and Windows.
You can manually reset the password in IIS, and also in Windows Users and
Groups control panel if required

d) ensure that Anonymous Access is enabled in IIS

e) If you are using .NET pages, then things are a little more complicated,
because that runs in aspnet_wp.exe on Windows XP. You will need to ensure
that the Machine\ASPNET account has necessayr permissions as well

Cheers
Ken


"jon derosier" wrote in message
news:4F5BCC88-6E64-4258-830C-54A2C68792DE@microsoft.com...
> Hi.
> I'm trying to script an install of iis 5.1/win xp.
> - This works:
> manually installing iis
> rundll32 wamreg.dll, CreateIISPackage
> aspnet_regiis.exe /i for both .net 1.1 and 2.0
> browse to localhost and it rocks.
>
> instead of manually installing I tried
> sysocmgr.exe /i:%SYSTEMROOT%\inf\sysoc.inf
> /u:%SYSTEMDRIVE%\iis51\IISInstall.TXT /l /w /c /x
>
> IIsInstall.txt contains:
> [Components]
> fp_extensions = On
> aspnet = on
> iis_common = on
> iis_doc = on
> iis_inetmgr = on
> iis_www = on
> iis_ftp = off
> iis_htmla = on
>
> [InternetServer]
> ---------------------
> I browse to localhost and it comes up with a login. I'm able to login and
> then it works, but I want anonymous authentication to work like my manual
> install method. I've messed with rights and process to Low and made
> everyone
> in the world Admins and gave Everyone full rights to the folder... Any
> ideas
> ? Something simple ?
>
> Thanks, Jon
>
>
>
>
>
>
>

Re: Help on scripting IIS 5.1 install.

am 23.09.2007 01:14:00 von jonderosier

Ken, thanks a lot. In further testing, i find that if i put an admin.html in
to wwwroot, it rocks as well. So, my only issue is with .asp pages asking
for a login. i actually made ASPNET an admin to test it. That didn't make
it go. I look at the aspnet_wp.exe, there are 1 in each .net framework
folder. They look good.
Any more ideas?
"Ken Schaefer" wrote:

> What you do need to do is:
> a) determine what your anonymous user account is (typically it is
> IUSR_)
>
> b) ensure that this account has NTFS read permissions to the appropriate
> folders (typically the wwwroot folder for your web content)
>
> c) ensure that the IUSR password is synchronised between IIS and Windows.
> You can manually reset the password in IIS, and also in Windows Users and
> Groups control panel if required
>
> d) ensure that Anonymous Access is enabled in IIS
>
> e) If you are using .NET pages, then things are a little more complicated,
> because that runs in aspnet_wp.exe on Windows XP. You will need to ensure
> that the Machine\ASPNET account has necessayr permissions as well
>
> Cheers
> Ken
>
>
> "jon derosier" wrote in message
> news:4F5BCC88-6E64-4258-830C-54A2C68792DE@microsoft.com...
> > Hi.
> > I'm trying to script an install of iis 5.1/win xp.
> > - This works:
> > manually installing iis
> > rundll32 wamreg.dll, CreateIISPackage
> > aspnet_regiis.exe /i for both .net 1.1 and 2.0
> > browse to localhost and it rocks.
> >
> > instead of manually installing I tried
> > sysocmgr.exe /i:%SYSTEMROOT%\inf\sysoc.inf
> > /u:%SYSTEMDRIVE%\iis51\IISInstall.TXT /l /w /c /x
> >
> > IIsInstall.txt contains:
> > [Components]
> > fp_extensions = On
> > aspnet = on
> > iis_common = on
> > iis_doc = on
> > iis_inetmgr = on
> > iis_www = on
> > iis_ftp = off
> > iis_htmla = on
> >
> > [InternetServer]
> > ---------------------
> > I browse to localhost and it comes up with a login. I'm able to login and
> > then it works, but I want anonymous authentication to work like my manual
> > install method. I've messed with rights and process to Low and made
> > everyone
> > in the world Admins and gave Everyone full rights to the folder... Any
> > ideas
> > ? Something simple ?
> >
> > Thanks, Jon
> >
> >
> >
> >
> >
> >
> >
>
>

Re: Help on scripting IIS 5.1 install.

am 23.09.2007 14:35:14 von Ken Schaefer

Hi,

> So, my only issue is with .asp pages asking
> for a login. i actually made ASPNET an admin to test it.

ASPNET user account is used for ASP.NET pages, not ASP pages.

ASP pages are run under either the Anonymous User account
(IUSR_) if you are not asking the user for credentials, or
whatever user account you authenticate with (if you are entering
credentials).

ASP <> ASP.NET

> look at the aspnet_wp.exe, there are 1 in each .net framework
> folder. They look good. Any more ideas?

aspnet_wp.exe is only used for ASP.NET pages. Which aspnet_wp.exe process is
used depends on which version of the ASP.NET framework you are using. But is
has nothing to do with classic ASP pages (*.asp)

Cheers
Ken

--
My IIS Blog: www.adOpenStatic.com/cs/blogs/ken


"jon derosier" wrote in message
news:9F970EC2-B69B-4C5F-BF74-CEC55FA1450F@microsoft.com...
> Ken, thanks a lot. In further testing, i find that if i put an admin.html
> in
> to wwwroot, it rocks as well. So, my only issue is with .asp pages asking
> for a login. i actually made ASPNET an admin to test it. That didn't
> make
> it go. I look at the aspnet_wp.exe, there are 1 in each .net framework
> folder. They look good.
> Any more ideas?
> "Ken Schaefer" wrote:
>
>> What you do need to do is:
>> a) determine what your anonymous user account is (typically it is
>> IUSR_)
>>
>> b) ensure that this account has NTFS read permissions to the appropriate
>> folders (typically the wwwroot folder for your web content)
>>
>> c) ensure that the IUSR password is synchronised between IIS and Windows.
>> You can manually reset the password in IIS, and also in Windows Users and
>> Groups control panel if required
>>
>> d) ensure that Anonymous Access is enabled in IIS
>>
>> e) If you are using .NET pages, then things are a little more
>> complicated,
>> because that runs in aspnet_wp.exe on Windows XP. You will need to ensure
>> that the Machine\ASPNET account has necessayr permissions as well
>>
>> Cheers
>> Ken
>>
>>
>> "jon derosier" wrote in message
>> news:4F5BCC88-6E64-4258-830C-54A2C68792DE@microsoft.com...
>> > Hi.
>> > I'm trying to script an install of iis 5.1/win xp.
>> > - This works:
>> > manually installing iis
>> > rundll32 wamreg.dll, CreateIISPackage
>> > aspnet_regiis.exe /i for both .net 1.1 and 2.0
>> > browse to localhost and it rocks.
>> >
>> > instead of manually installing I tried
>> > sysocmgr.exe /i:%SYSTEMROOT%\inf\sysoc.inf
>> > /u:%SYSTEMDRIVE%\iis51\IISInstall.TXT /l /w /c /x
>> >
>> > IIsInstall.txt contains:
>> > [Components]
>> > fp_extensions = On
>> > aspnet = on
>> > iis_common = on
>> > iis_doc = on
>> > iis_inetmgr = on
>> > iis_www = on
>> > iis_ftp = off
>> > iis_htmla = on
>> >
>> > [InternetServer]
>> > ---------------------
>> > I browse to localhost and it comes up with a login. I'm able to login
>> > and
>> > then it works, but I want anonymous authentication to work like my
>> > manual
>> > install method. I've messed with rights and process to Low and made
>> > everyone
>> > in the world Admins and gave Everyone full rights to the folder... Any
>> > ideas
>> > ? Something simple ?
>> >
>> > Thanks, Jon
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
>>