Hi,

I need to copy files from a network location to D: drive as a postinstallion task in K2000.

i have created a BAT (Windows Script) but its not working, it could either be i need to specify 'run-as' paramaters but not too sure how to accoplish this?

full code:

@echo off
rem TRANSFER.BAT transfers all software files from
rem the software drive to the D drive
xcopy "\\SERVER1\software\Current Deployment\Laptop\Applications" d:\Utility /s /k /i
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort
if errorlevel 0 goto exit
:lowmemory
echo Insufficient memory to copy files or
echo invalid drive or command-line syntax.
goto exit
:abort
echo You pressed CTRL+C to end the copy operation.
goto exit
:exit
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Does the user that executes the script (LocalSystem?) have access to the network share? Try giving 'Domain Computers' read access on the share (this ofcourse assumes you're on a domain)
Answered 01/20/2011 by: pjgeutjens
Red Belt

Please log in to comment
0
I agree with pjgeutjens, you need to provide the correct permissions to the share. This will vary depending on your unattned(sysprep) file. If you are not on your domain, then remember that you are logged in as whatever user you selected to "autologon" as, typically Administrator.
Answered 01/20/2011 by: cserrins
Red Belt

Please log in to comment
0
The answer file enables the local admin account.

The computer also joins the domain during the scripted install.

Auto logs in with the local admin account.

I gave domain computers permissions to the network folder but still no love. Can i specify run-as parameters within the batchscript or the scripted install?
Answered 01/20/2011 by: bmatore
Orange Senior Belt

Please log in to comment
0
Can i specify run-as parameters within the batchscript or the scripted install?You want to put administrator-level credentials in a clear-text batch file? Really?
Answered 01/21/2011 by: VBScab
Red Belt

Please log in to comment
0
ORIGINAL: VBScab

Can i specify run-as parameters within the batchscript or the scripted install?You want to put administrator-level credentials in a clear-text batch file? Really?



an account i can give read access to the share.
Answered 01/23/2011 by: bmatore
Orange Senior Belt

Please log in to comment
0
non-helpful post is very non-helpful.

ORIGINAL: VBScab

Can i specify run-as parameters within the batchscript or the scripted install?You want to put administrator-level credentials in a clear-text batch file? Really?

Answered 01/31/2011 by: dyehardfan
Second Degree Blue Belt

Please log in to comment
0
So you think that admin-level credentials in clear-text files is a good idea? LOL
Answered 02/01/2011 by: VBScab
Red Belt

Please log in to comment
0
No, I don't. However there was no positive or constructive advice attached to the earlier unhelpful post.


ORIGINAL: VBScab

So you think that admin-level credentials in clear-text files is a good idea? LOL
Answered 02/01/2011 by: dyehardfan
Second Degree Blue Belt

Please log in to comment
0
Maybe this one helps: http://www.brown.edu/cis/information_security/CIRT/help/netbiosnull.php
It's talking about null session shares. This way no Authentication has to take place. Works with WIndows 2003. For Windows 2008 search google for Null Session/Anonymous Shares.
Also remember that the Local System account CAN NOT gain network access by design. It can only get data which is stored locally on the server.....
Answered 02/15/2011 by: t320569
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity