Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > using copy command and C$ admin share

Reply
Thread Tools Display Modes

using copy command and C$ admin share

 
 
John Grandy
Guest
Posts: n/a

 
      07-12-2005
I am using Windows XP Pro SP2 machine (not a domain member) to Remote
Desktop (RD) into a Windows 2003 Server Enterprise Edition ("Server1") that
belongs to a domain.

The RD session is established under a domain account that I have added to
the local Administrators group of the server I am RD'ing into.

Within the RD session, I am running a .BAT file located on Server1 that uses
the copy command as follows:

copy /y \\Server2\c$\Folder1\SubFolder1\*.* c:\FolderX


This copy file command fails with an "Access Denied" error.

Why would my RD login account not have access to the administrative C$ share
?

I can make "\\Machine1\c$\Folder1\" into a shared network drive (and alter
my .BAT file accordingly) but I want to avoid the use of shared network
drives in automated scheduled processes.






 
Reply With Quote
 
 
 
 
Roland Hall
Guest
Posts: n/a

 
      07-13-2005
"John Grandy" wrote in message
news:%...
:I am using Windows XP Pro SP2 machine (not a domain member) to Remote
: Desktop (RD) into a Windows 2003 Server Enterprise Edition ("Server1")
that
: belongs to a domain.
:
: The RD session is established under a domain account that I have added to
: the local Administrators group of the server I am RD'ing into.
:
: Within the RD session, I am running a .BAT file located on Server1 that
uses
: the copy command as follows:
:
: copy /y \\Server2\c$\Folder1\SubFolder1\*.* c:\FolderX
:
: This copy file command fails with an "Access Denied" error.
:
: Why would my RD login account not have access to the administrative C$
share
: ?

Is Server2 the RD? Your command is running locally on the RD.
If Server2 is the RD, then you don't need to use a share to access files.
If it's not the RD, then you need to give the user account your logged in as
access to the c$ administrative share of Server2.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


 
Reply With Quote
 
 
 
 
John Grandy
Guest
Posts: n/a

 
      07-13-2005
Server2 is not the RD. Server1 is the RD. The batch file is located on
Server1. The batch file contains a "copy" command which copies files from
Server2 to Server1. The "copy" command copies files from a path such as
"\\Server2\C$\Folder1\SubFolder1\*.*"

The RD login account for Server1 is a member of the local Administrators
group on Server2 ... wouldn't that give it rights on Server2's C$
administrative share ?



"Roland Hall" <nobody@nowhere> wrote in message
news:eX0%...
> "John Grandy" wrote in message
> news:%...
> :I am using Windows XP Pro SP2 machine (not a domain member) to Remote
> : Desktop (RD) into a Windows 2003 Server Enterprise Edition ("Server1")
> that
> : belongs to a domain.
> :
> : The RD session is established under a domain account that I have added
> to
> : the local Administrators group of the server I am RD'ing into.
> :
> : Within the RD session, I am running a .BAT file located on Server1 that
> uses
> : the copy command as follows:
> :
> : copy /y \\Server2\c$\Folder1\SubFolder1\*.* c:\FolderX
> :
> : This copy file command fails with an "Access Denied" error.
> :
> : Why would my RD login account not have access to the administrative C$
> share
> : ?
>
> Is Server2 the RD? Your command is running locally on the RD.
> If Server2 is the RD, then you don't need to use a share to access files.
> If it's not the RD, then you need to give the user account your logged in
> as
> access to the c$ administrative share of Server2.
>
> --
> Roland Hall
> /* This information is distributed in the hope that it will be useful, but
> without any warranty; without even the implied warranty of merchantability
> or fitness for a particular purpose. */
> Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
> WSH 5.6 Documentation -
> http://msdn.microsoft.com/downloads/list/webdev.asp
> MSDN Library - http://msdn.microsoft.com/library/default.asp
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy local users and groups, copy shares with security, copy homeuser folders usenet@sphere10.com Windows Vista General Discussion 2 02-17-2009 01:31 PM
Vista requires admin rights to copy file to network share confused08 Windows Vista Networking 2 01-14-2008 07:53 PM
Re: copy shares and share info using Robocopy? Lanwench [MVP - Exchange] Windows Server 0 05-28-2007 01:41 PM
RE: copy shares and share info using Robocopy? Andrew Sword [MVP] Windows Server 0 05-27-2007 09:16 AM
Using command line to copy files Blair Windows 64 Bit 2 07-19-2005 05:16 PM