Script to install FP Server Extensions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Morten

    #1

    Script to install FP Server Extensions

    Hi!

    I'm trying to configure Frontpage Server Extensions by means of an ASP page.

    I've used the following code to configure it:

    Sub ConfigureFrontp ageExtensions (FPUser, HostHeader)
    FPRoot = """C:\Progr am Files\Common Files\Microsoft Shared\web server
    extensions\50\b in\owsadm.exe"" "
    Set WshNetwork = Server.CreateOb ject("WScript.N etwork")
    strComputer = WshNetwork.Comp uterName

    command1 = FPRoot & " -o install -p 80 -m " & HostHeader & " -u
    administrator"
    command2 = FPRoot & " -o roleusers -c add -u " & strComputer & "\" &
    FPUser & " -w / -n AdvAuthor -p 80 -m " & HostHeader

    Set objWSH = Server.CreateOb ject("WScript.S hell")
    objWSH.Run command1 , 0, True
    objWSH.Run command2 , 0, True
    response.write command1 & "<br>"
    set objWSH = Nothing
    End Sub

    The same code works when I use it as a .vbs script directly in Windows but
    apparently nothing happens when I try to execute it from my asp page.

    Does anyone have a suggestion that will help me to proceed?

    Thanks in advance

    Morten




  • Morten

    #2
    Re: Script to install FP Server Extensions

    Hi!

    FYI I solved this problem by creating an Application Pool that uses the
    Administrator account as the user identity.

    Morten

    "Morten" <morten_skovgaa rd@hotmail.com> wrote in message
    news:efxhzA1CEH A.688@tk2msftng p13.phx.gbl...[color=blue]
    > Hi!
    >
    > I'm trying to configure Frontpage Server Extensions by means of an ASP[/color]
    page.[color=blue]
    >
    > I've used the following code to configure it:
    >
    > Sub ConfigureFrontp ageExtensions (FPUser, HostHeader)
    > FPRoot = """C:\Progr am Files\Common Files\Microsoft Shared\web server
    > extensions\50\b in\owsadm.exe"" "
    > Set WshNetwork = Server.CreateOb ject("WScript.N etwork")
    > strComputer = WshNetwork.Comp uterName
    >
    > command1 = FPRoot & " -o install -p 80 -m " & HostHeader & " -u
    > administrator"
    > command2 = FPRoot & " -o roleusers -c add -u " & strComputer & "\" &
    > FPUser & " -w / -n AdvAuthor -p 80 -m " & HostHeader
    >
    > Set objWSH = Server.CreateOb ject("WScript.S hell")
    > objWSH.Run command1 , 0, True
    > objWSH.Run command2 , 0, True
    > response.write command1 & "<br>"
    > set objWSH = Nothing
    > End Sub
    >
    > The same code works when I use it as a .vbs script directly in Windows but
    > apparently nothing happens when I try to execute it from my asp page.
    >
    > Does anyone have a suggestion that will help me to proceed?
    >
    > Thanks in advance
    >
    > Morten
    >
    >
    >
    >[/color]


    Comment

    Working...