WScript.Shell

B

Brendon Rogers

I am using IIS5.0

Am attempting an ASP solution to create Windows 2000 user accounts, Exchange
5.5 mailboxes, home drives etc. So far so good but I am having a problem
trying to NTFS-permission the home drive folder.

Here is the relevant portion of my code (I am calling XCACLS.VBS, a
XCACLS.exe replacement available from MS PSS):

set WshShell = Server.CreateObject("WScript.Shell")
sPermCMD = "%COMSPEC% /c cscript C:\Winnt\System32\XCACLS.vbs " &
sUserHomePath _
& "\" & sUsername & " /G " & sDomain & "\" & sUsername & ":M /E /F /S /T
/SERVER " & sHomeServer
WshShell.Run sPermCMD
set WshShell = nothing

I have double-checked the value of sPermCMD and my ASP page runs fine as a
standalone VBS file.But nothing happens when I run it from IIS.

We are using Integrated Windows Authentication; an earlier portion of my ASP
code does create and share the users home directory so I think the
permissions my ASP code is executing under is okay.

Any advice please?

Brendon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top