Results 1 to 3 of 3

Thread: administrator runas for a domain user

  1. #1
    yba02 Guest

    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

  2. #2
    Trev Guest

    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


  3. #3
    Kakao Guest

    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



Similar Threads

  1. Domain user as Domain Administrator
    By - Empty Shell - in forum Active Directory
    Replies: 2
    Last Post: 07-03-2012, 03:42 AM
  2. Replies: 5
    Last Post: 11-08-2010, 12:30 PM
  3. Problem with Domain user as local administrator
    By Jasonholt in forum Active Directory
    Replies: 3
    Last Post: 25-05-2010, 09:50 AM
  4. Administrator cannot logon to Windows user domain unavailable
    By B_Hodge in forum Networking & Security
    Replies: 3
    Last Post: 02-07-2009, 09:48 AM
  5. Replies: 1
    Last Post: 19-06-2008, 01:58 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,020,747.35685 seconds with 17 queries