Re: Copying Files using startup script

From: MS Newsgroups (nospam_at_nospam.com)
Date: 02/06/04


Date: Fri, 6 Feb 2004 07:46:52 -0000

As a workaround, you could always create a dedicated account for this and
then map a drive as this user, copy your files and disconnect the drive.
Obvioulsy there are secuity issues related to this approach since you would
have to put the credntials in clear text in the script. If you would write a
VBscript instead, Microsoft has a tool called screnc.exe that encrypts (not
very strong encryption) VBscript files so they can not be rad in clear text
when opened. This might be an acceptable solution for you if you make sure
you limit this accounts access as much as possible

Regards

Niclas Lindblom

"Todd Miller" <eobiont@mac.com> wrote in message
news:b7dd1a86.0402052014.27c98012@posting.google.com...
> "Brian" <anonymous@discussions.microsoft.com> wrote in message
news:<07b801c3d4fe$050dad70$a401280a@phx.gbl>...
> > Please Ignore, problem sorted.
> > >-----Original Message-----
> > >Hi
> > >
> > >Is it possible to create a startup script that will copy
> > >files from a server location, as opposed to a logon
> > >script?
> > >.
> > >
> No, please don't ignore.
>
> I have a problem with this.
>
> Here is the setup
>
> I have some computers in Domain A that I have set a logon script for
> via a computer GPO
>
> The startup script is a .cmd file with something like
>
> @echo Is this working?>c:\localfiles\test.txt
> @xcopy \\serverB\share\files\*.* c:\localfiles\ /y
>
> The test.txt file gets created fine, so I know the script is
> executing. And if I run the command at a run line after I log in, it
> works, so I know the syntax is correct. Problem is the files are not
> copying down to the computers durring the startup script. I know this
> is a rights issue on the share, but Iam having a hard time figuring
> out what rights I need to assing on the share.
>
> So, who do I give rights to on ServerB\Share. There is a fly in the
> ointment. ServerB is on a different DOMAIN than the computers, but
> they are in the same AD forrest and there is a trust (don't know if
> that is still the right term) between them. I have tried granting
> rights to Domain Computers from Domain A and I have tried
> authenticated users but neither of these works. I can copy files from
> a server on Domain A fine, but I have to grant rights to Domain Users,
> and I kind of want to avoid that.
>
> I got this working
>
> @xcopy \\serverA\share\files\*.* c:\localfiles\ /y where ServerA is on
> the same domain as the computers.
>
> I have read through many posts on here and have surmised that startup
> scripts run as NT AUTHORITY\SYSTEM but how do I get that account to be
> able to copy stuff off the network. Is it even possible without
> opening up the share to everyone?
>
> I have tried adding the computers to a group and giving that group
> rights on the share but I couldn't get that to work either. Should
> it? Because that seems like the best way to go from a security
> standpoint.



Relevant Pages

  • Re: DP does not update source files. Help!
    ... Granting a machine account rights is fairly simple. ... top of the Select Users, Computers, or Groups dialog box... ... sharing rights to the central file server share. ...
    (microsoft.public.sms.swdist)
  • Re: Running Login Script Problems
    ... Have you replicated the login script to all your DCs' netlogon shares? ... If the "special account" is a domain admin account, ... > all my computers in a lab. ...
    (microsoft.public.win2000.networking)
  • Re: Script to launch IE remotely
    ... username and account with admin privleges which is always logged in. ... credentials will be different from the machine I am running the script from. ... All of the computers are Windows XP as well. ...
    (microsoft.public.windows.server.scripting)
  • Re: Limiting rights to a second administrator account
    ... > computers. ... > password they will have administrative previliges to all ... their answer was that we create a second account ... > have administrator rights we worry that students will ...
    (microsoft.public.win2000.security)
  • Re: RIS domain join problem
    ... by default every useraccount has the right to join 10 computers to the domain, administrative accounts or accounts with delegated rights on the specific OU are not limited. ... It sounds like you were using a useraccount for the installation via RIS which has not administrative rights and exceeded his limits now. ... and make sure you give the used account the right to create and modify computeraccounts in that domain. ...
    (microsoft.public.windows.server.active_directory)

Loading