TechArena Community

TechArena Community (http://forums.techarena.in/)
-   Windows Server Help (http://forums.techarena.in/windows-server-help/)
-   -   administrator runas for a domain user (http://forums.techarena.in/windows-server-help/687812.htm)

yba02 20-02-2007 10:10 PM

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

Trev 21-03-2007 05:15 AM

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


Kakao 24-03-2007 12:11 PM

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




All times are GMT +5.5. The time now is 11:00 AM.