Re: Startup Scripts



OK, So I used copy \\share\sharename\appname\* c:\startmenu\appname and it
worked. But robocopy didn't. Odd.

Something to bear in mind.

"Trinity Catholic High School" wrote:

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@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:580758EB-9255-4FE8-A594-CAD8D6C85C05@xxxxxxxxxxxxxxxx


"Pegasus (MVP)" wrote:


"Trinity Catholic High School"
<TrinityCatholicHighSchool@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EC6207F1-D8F0-4123-8345-FEC0E582AC05@xxxxxxxxxxxxxxxx
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
--



.



Relevant Pages

  • Re: Startup Scripts
    ... I granted permissions to domain ... Basically, I'm trying to create a computer specific startmenu, for our ... local machine, and setting in the group policy the local path for the ... I run the script from the command-line when logged in it works ...
    (microsoft.public.windows.server.general)
  • Re: Logon script
    ... script need adminitrative rights on the local machine and my users do not ... Logon scripts run with the permissions of the user, ... Most administrative tasks can be done in a Startup script. ...
    (microsoft.public.windows.server.scripting)
  • Re: Permission denied
    ... If the script runs fine for you, but not as a scheduled task, the problem is ... likely permissions, especially since the error is raised when it attempts to ... This script runs fine if executed on my local machine. ...
    (microsoft.public.windows.server.scripting)
  • Re: cant get access to disk share when connecting from a remote s
    ... The systems are DUTs. ... for each of the drives within the system. ... Everything in the scripts work except the file permissions below the shares ... the shares on the DUTs manually, after they run my rename script, but I would ...
    (microsoft.public.windows.server.scripting)
  • Re: VBA Script to Read WMP 11 Database
    ... The script failed on the desktop when I downloaded WMP11, ... Just reviewing the bidding -- WMP 11 responds properly to commands in a VBS ... That's why the computer wouldn't let me manually change the permissions. ... Digital Media MVP: 2004-2007 ...
    (microsoft.public.windowsmedia)