473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 ConfigureFrontpageExtensions (FPUser, HostHeader)
FPRoot = """C:\Program Files\Common Files\Microsoft Shared\web server
extensions\50\bin\owsadm.exe"""
Set WshNetwork = Server.CreateObject("WScript.Network")
strComputer = WshNetwork.ComputerName

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.CreateObject("WScript.Shell")
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


Jul 19 '05 #1
1 1335
Hi!

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

Morten

"Morten" <mo**************@hotmail.com> wrote in message
news:ef*************@tk2msftngp13.phx.gbl...
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 ConfigureFrontpageExtensions (FPUser, HostHeader)
FPRoot = """C:\Program Files\Common Files\Microsoft Shared\web server
extensions\50\bin\owsadm.exe"""
Set WshNetwork = Server.CreateObject("WScript.Network")
strComputer = WshNetwork.ComputerName

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.CreateObject("WScript.Shell")
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

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: grant steinfeld | last post by:
I am trying to set up Visual Studio .NET 2003 on a Windows Server 2003 , I have set up ASP.NET IIS6 Front Page Extensions, it run the prerequesite wizard and it installs: *Microsoft FrontPage...
10
by: Kmistic | last post by:
I am trying to install vs, but i don't have a prerequisite cd. I have disk1 and disk2 only. Is there way i can download the prerequisite cd from somewhere? btw, I don't have the physical CDS. ...
2
by: PeterJ | last post by:
I hope this is in the correct newsgroup. I have purchased and installed Visual Studio .Net 2003 under XP Professional. However, when I try to look at a VB.net sample web app, it will not open. ...
2
by: Efrat Regev | last post by:
Hello, I'm a data-structures course TA trying to write a python CGI script for automatically compiling and testing students' projects. Unfortunately, I've run into some questions while writing...
5
by: David C. Ullrich | last post by:
Would there be issues (registry settings, environment variables, whatever) if a person tried to install versions 1.x and 2.x simultaneously on one Windows system? Windows 98, if it matters. (I...
3
by: Anthony Smith | last post by:
I always get this message. No matter what package $ pear install Date PHP Warning: Module 'oci8' already loaded in Unknown on line 0 No releases available for package "pear.php.net/Date"...
4
by: Warren Peace | last post by:
'Tis my first time trying to install PHP on my Win XP machine... Apache/2.2.3(Win32) PHP/5.2.0 Main problem is that with my lack of PHP experience, I'm not sure if my syntax is incorrect, or if...
3
by: Florian Demmer | last post by:
Hi! I am doing a from source installation of Python 2.5 on some old Debian machine. As the target directoy I want /opt/somename so i added it to the configure like so: ../configure...
0
by: Erwin Moller | last post by:
Hi, I am one of those questionable people that started with Vista (Home Premium). Not because I think it is a ready/steady OS, but partly out of curiousity, and partly because I needed to work...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.