Re: Startup Scripts
Strange. I granted permissions (both security and sharing) to domain
computers, and to a specific test machine's account, and I'm still getting
the same 1314 error. its creating a directory structure, but not creating any
files on the local machine.
Basically, I'm trying to create a computer specific startmenu, for our
users, rather than user specific. I thought to do it, by copying a startmenu
from a server (so it can be updated without visiting each machine), to the
local machine, and setting in the group policy the local path for the
startmenu redirection (which would be the same on every computer in the
domain).
However, this doesn't seem to be working. Can anyone think of a different
way to do this? (Other than forgetting the whole not visiting every
machine...)
Thanks for all your input so far!
William Mann
"Richard Mueller [MVP]" wrote:
>
> "Trinity Catholic High School"
> <TrinityCatholicHighSchool@discussions.microsoft.com> wrote in message
> news:580758EB-9255-4FE8-A594-CAD8D6C85C05@microsoft.com...
> >
> >
> > "Pegasus (MVP)" wrote:
> >
> >>
> >> "Trinity Catholic High School"
> >> <TrinityCatholicHighSchool@discussions.microsoft.com> wrote in message
> >> news:EC6207F1-D8F0-4123-8345-FEC0E582AC05@microsoft.com...
> >> > Hi,
> >> >
> >> > I'm using a startup script to copy a folder with a startmenu from a
> >> > server
> >> > to a local machine. I've been using robocopy, and its creating the
> >> > folder
> >> > structure but not the links. What am I doing wrong? The weird thing is,
> >> > when
> >> > I run the script from the command-line when logged in it works
> >> > correctly,
> >> > therefore I'm thinking its a permission problem. I tried granting
> >> > everyone
> >> > read-only permissions, but it didn't solve the issue.
> >> >
> >> > The command I'm using:
> >> > robocopy /e /zb /copyall /XO \\thssvr01\startmenu$\1015vlaptop
> >> > c:\startmenu
> >> >
> >> > Any ideas, Anyone?
> >> >
> >> > Thanks.
> >>
> >> Modify the command like so, then examine the log file c:\log.txt.
> >>
> >> robocopy /e /zb /copyall /XO \\thssvr01\startmenu$\1015vlaptop
> >> c:\startmenu
> >> 1>c:\log.txt 2>&1
> >>
> >> I also recommend that you add a switch to prevent existing
> >> and unchanged files from getting copied each time.
> >>
> >>
> >>
> >
> > Hi,
> >
> > Its created a log of what its been trying to do, and is coming up with
> > ERROR
> > 1314 (0x00000522) Copying NTFS Security to Destination Directory
> > \\server\foo
> > A required privilege is not held by the client. Is this an issue with
> > authentication against the server by the startup script?
> >
> > Many Thanks,
> >
> > William Mann
>
> The Startup script runs before there is a user. The script has "System"
> privileges on the local computer, so it can do lots of things locally. The
> script uses the credentials of the computer object elsewhere in the domain.
> If there is a permissions problem, the permissions need to be granted to the
> computer object. I grant permissions to "Domain Computers" in these cases.
>
> --
> Richard Mueller
> Microsoft MVP Scripting and ADSI
> Hilltop Lab - http://www.rlmueller.net
> --
>
>
>