/build/static/layout/Breadcrumb_cap_w.png

Copying files from network location

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

Answers (9)

Posted by: pjgeutjens 13 years ago
Red Belt
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)
Posted by: cserrins 13 years ago
Red Belt
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.
Posted by: bmatore 13 years ago
Orange Senior Belt
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?
Posted by: anonymous_9363 13 years ago
Red Belt
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?
Posted by: bmatore 13 years ago
Orange Senior Belt
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.
Posted by: dyehardfan 13 years ago
Second Degree Blue Belt
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?

Posted by: anonymous_9363 13 years ago
Red Belt
0
So you think that admin-level credentials in clear-text files is a good idea? LOL
Posted by: dyehardfan 13 years ago
Second Degree Blue Belt
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
Posted by: t320569 13 years ago
Senior Yellow Belt
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.....
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ