Microsoft in their infinite wisdom gave no easy way to manage access rights.
I used to be a developer but traded in my coding apron for a networking
apron. There are probably ways to manage rights with C or some other
language but forget trying to do it easily with a scripting language. I
need to create a mail enabled user in AD and create a multiple folder
hierarchy for any new user for the system. The folders have different ACL's
for each folder and sub-folder. This window has to be able to be run by
unprivileged help desk personnel.
What I have ended up doing is writing a asp page with some vb script that I
can get everything to work except set the permissions. When I call the
Resource kit program XCACLS.exe it will fire off but the parameters don't
seem to be getting passed correctly. I never get them to work. So I'm
doing something wrong but I can;t get any error messages back to see what it
doesn't like.
What I want to see is the output from the request.
I'm stumped and like I said I'm over my head because I have gotten to the
point of guessing (I have a day of time or more in on this when it should
probably take someone who knows what they are doing 10 minutes).
--
Paul Bergson MCT, MCSE, MCSA, CNE, CNA, CCA
This posting is provided "AS IS" with no warranties, and confers no rights.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O1**************@TK2MSFTNGP14.phx.gbl...
Oh, you must be running Windows 2003. Network Service is the default
account that is used and it is not an Administrator level account by
default and probably doesn't have permission to access the file.
It sounds like it's working with impersonation as long as you pass it the
parameters it expects, so what is the problem?
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Paul Bergson" <pb******@mnpower.com> wrote in message
news:uT**************@TK2MSFTNGP12.phx.gbl... Not sure who the user is, think it is admin from my server settings.
When I
run task manager I see the process fire and the user name is "Network
Service." This is even if I use the account impersonation. I get the
same
thing happening either way.
If I don't pass any arguments the job shows up on the task manager and
just
sits there until I kill it. If I pass it arguments then the job acts
like it runs but the job doesn't show up in the task manager. But the job
hangs
in a dos command if no arguments are supplied, so I'm assuming the job
thread is trying to tell me it needs data and then is waiting for a
response
to the error. But I don't know if that is why.
Is there any way I can see what is happening on this thread for output?
--
Paul Bergson
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:uU**************@TK2MSFTNGP09.phx.gbl... It's most likely a security-related problem.
To test this theory you can try having it run under your personal user
account via impersonation.
Here's more info:
http://msdn.microsoft.com/library/de...ersonation.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Paul Bergson" <pb******@mnpower.com> wrote in message
news:eR**************@TK2MSFTNGP09.phx.gbl...
>I have been trying to get a process to start up and run with arguments
> passed to it. I have gotten close (Thanks to help from this board)
but I > there is a failure while I'm running this because the c:\bin\xcacls
starts > nothing happens.
>
> How can I see output from the console i was trying to get the
> ProcessStartInfo.RedirectStandardOutput Property to work but even if
I got > the system to process it I didn;t know where the output was being
sent. > I'm
> in over my head but hoping to try and get this to run.
>
> Anybody know what I can do to get this to give me the output?
>
>
> <%@ Page Language="vbscript" Debug="true" %>
>
>
> <script runat="server">
> Sub submit(sender As Object, e As EventArgs)
>
> Dim csc As System.Diagnostics.Process = New
System.Diagnostics.Process() > csc.StartInfo.FileName = "c:\bin\xcacls"
> csc.StartInfo.Arguments = "c:\blaster /G GOB\pbergson:F /Y"
> csc.Start()
>
> End Sub
> </script>
>
> <html>
> <body>
> <form runat="server">
> <asp:Button OnClick="submit" Text="Submit" runat="server" />
> <p><asp:Label id="lbl1" runat="server" /></p>
> </form>
> </body>
> </html>
>
> Thank-You
>
> --
>
> Paul Bergson
>
>