Guest Trinity Catholic High School Posted September 4, 2007 Posted September 4, 2007 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.
Guest Pegasus \(MVP\) Posted September 4, 2007 Posted September 4, 2007 Re: Startup Scripts "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.
Guest Richard Mueller [MVP] Posted September 4, 2007 Posted September 4, 2007 Re: Startup Scripts "Pegasus (MVP)" <I.can@fly.com> wrote in message news:eSN3Ihw7HHA.5212@TK2MSFTNGP04.phx.gbl... > > "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. > Startup scripts run with System privileges on the local computer and the credentials of the computer object elsewhere in the domain. There is no user. You may need to grant permission to read the shared folder to the group "Domain Computers". -- Richard Mueller Microsoft MVP Scripting and ADSI Hilltop Lab - http://www.rlmueller.net --
Guest Pegasus \(MVP\) Posted September 4, 2007 Posted September 4, 2007 Re: Startup Scripts "Richard Mueller [MVP]" <rlmueller-nospam@ameritech.nospam.net> wrote in message news:eRtQszw7HHA.5316@TK2MSFTNGP04.phx.gbl... > > "Pegasus (MVP)" <I.can@fly.com> wrote in message > news:eSN3Ihw7HHA.5212@TK2MSFTNGP04.phx.gbl... >> >> "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. >> > > Startup scripts run with System privileges on the local computer and the > credentials of the computer object elsewhere in the domain. There is no > user. You may need to grant permission to read the shared folder to the > group "Domain Computers". > > -- > Richard Mueller > Microsoft MVP Scripting and ADSI > Hilltop Lab - http://www.rlmueller.net > -- The OP mentions the "startmenu folder", which makes me suspect that he's talking about logon scripts, not startup scripts. If so then the scripts would run with the privileges of the user who's logging on. On the other hand his description is too vague to be sure.
Guest Trinity Catholic High School Posted September 5, 2007 Posted September 5, 2007 Re: Startup Scripts "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
Guest Trinity Catholic High School Posted September 5, 2007 Posted September 5, 2007 Re: Startup Scripts No, actually, it is a startup script. Unlike most enviroments, I need to make start menus specific to computers rather than to users. "Pegasus (MVP)" wrote: > > "Richard Mueller [MVP]" <rlmueller-nospam@ameritech.nospam.net> wrote in > message news:eRtQszw7HHA.5316@TK2MSFTNGP04.phx.gbl... > > > > "Pegasus (MVP)" <I.can@fly.com> wrote in message > > news:eSN3Ihw7HHA.5212@TK2MSFTNGP04.phx.gbl... > >> > >> "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. > >> > > > > Startup scripts run with System privileges on the local computer and the > > credentials of the computer object elsewhere in the domain. There is no > > user. You may need to grant permission to read the shared folder to the > > group "Domain Computers". > > > > -- > > Richard Mueller > > Microsoft MVP Scripting and ADSI > > Hilltop Lab - http://www.rlmueller.net > > -- > > The OP mentions the "startmenu folder", which makes me > suspect that he's talking about logon scripts, not startup > scripts. If so then the scripts would run with the privileges > of the user who's logging on. On the other hand his > description is too vague to be sure. > > >
Guest Richard Mueller [MVP] Posted September 5, 2007 Posted September 5, 2007 Re: Startup Scripts "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 --
Guest Trinity Catholic High School Posted September 6, 2007 Posted September 6, 2007 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 > -- > > >
Guest Trinity Catholic High School Posted September 12, 2007 Posted September 12, 2007 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@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 > > -- > > > > > >
Recommended Posts