Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



administrator runas for a domain user

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 20-02-2007
yba02
 
Posts: n/a
administrator runas for a domain user

Hi,
In Windows Server 2003, I need to allow a domain user to copy a file to
another user's non-shared hard disk. I thought of creating a batch file
containing a Runas command but I faced two problems:
1 - The user is asked for the administrator password while he should not
know it. I was thinking of embedding it in the batch file.
2 - The batch file returned a file-not-found error, while the file is laying
in the specifed origin path.
Is there an easy way, using Runas or any other tool, to allow a user to copy
a file to a non-shared hard disk of another dmoain user. If so, please
include the format.
Thanks
Yba

Reply With Quote
  #2  
Old 21-03-2007
Trev
 
Posts: n/a
Re: administrator runas for a domain user

On 20 Feb, 16:40, yba02 <y...@discussions.microsoft.com> wrote:
> Hi,
> In Windows Server 2003, I need to allow a domain user to copy a file to
> another user's non-shared hard disk. I thought of creating a batch file
> containing aRunascommand but I faced two problems:
> 1 - The user is asked for the administrator password while he should not
> know it. I was thinking of embedding it in the batch file.
> 2 - The batch file returned a file-not-found error, while the file is laying
> in the specifed origin path.
> Is there an easy way, usingRunasor any other tool, to allow a user to copy
> a file to a non-shared hard disk of another dmoain user. If so, please
> include the format.
> Thanks
> Yba


Hi

not sure if will help but have a look at www.dustan.co.uk there is a
backup script which calls a remote script which calls a runas admin
script for remote deployment and installs.

If it's any good to you feel free to pass it on, i use it on my local
domain and our world wide domains

Ta


Trev

Reply With Quote
  #3  
Old 24-03-2007
Kakao
 
Posts: n/a
Re: administrator runas for a domain user


"yba02" <yba02@discussions.microsoft.com> schrieb im Newsbeitrag
news:FC744028-D02E-47C6-BA9C-A6A142EF962C@microsoft.com...
> Hi,
> In Windows Server 2003, I need to allow a domain user to copy a file to
> another user's non-shared hard disk. I thought of creating a batch file
> containing a Runas command but I faced two problems:
> 1 - The user is asked for the administrator password while he should not
> know it. I was thinking of embedding it in the batch file.
> 2 - The batch file returned a file-not-found error, while the file is
> laying
> in the specifed origin path.
> Is there an easy way, using Runas or any other tool, to allow a user to
> copy
> a file to a non-shared hard disk of another dmoain user. If so, please
> include the format.
> Thanks
> Yba


make your script able to run with an administrator account and call this
script over the tool runasspc.
like
runasspc /program:"d:\yourscript.cmd" /domain:"localhost"
/user:"copyadministrator" /password:"password" /quiet

or call the runas tool directly to copy something under administrator
account
-------------------------------------
runasspc /program:"d:\tool\xcopy.exe" /param:"d:\sourcefile.txt
\\computername\c$\destinationpath" /domain:"localhost"
/user:"copyadministrator" /password:"password" /quiet

------------------------------------
you can also hide the complete call in a generated encrypted file
runasspc /cryptfile:"path\NameOfCryptfile.spc" /quiet


Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "administrator runas for a domain user"
Thread Thread Starter Forum Replies Last Post
Domain user as Domain Administrator - Empty Shell - Active Directory 2 07-03-2012 03:42 AM
Adding domain user to a Windows 7 laptop: The trust relationship between this workstation and the primary domain failed. Doumbia Operating Systems 5 11-08-2010 12:30 PM
Problem with Domain user as local administrator Jasonholt Active Directory 3 25-05-2010 09:50 AM
Administrator cannot logon to Windows user domain unavailable B_Hodge Networking & Security 3 02-07-2009 09:48 AM
Child domain user does not show parent domain group membership Pratim Active Directory 1 19-06-2008 01:58 AM


All times are GMT +5.5. The time now is 09:39 PM.