admin rights

Author Message
jmccarthy

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 2/3/2009
  • Status: offline
admin rights Tuesday, February 03, 2009 9:32 AM (permalink)
0
I have created a powershell script that includes get-item with a destination of the users "C" drive.  Due to lack of permissions on the users desktops and directories, I was wondering if there is a way to do an equivelent runas command during the file copy.  I have tried using a dos batch file with the runas command but I get prompted for a password.  Any help would be greatly appreciated.  Thanks.
 
#1
    turranx

    • Total Posts : 59
    • Scores: 0
    • Reward points : 0
    • Joined: 2/7/2006
    • Location: Cincinnati, OH
    • Status: offline
    RE: admin rights Friday, February 06, 2009 3:43 AM (permalink)
    0
    Off the cuff, my response is: You could map the destination directory to a free drive letter using alternate credentials, perform the copy, and finally tear down the mapped drive. 
     
    It sounds like this is a script that will be run at user logon under the users credentials, yes?  Is there any way to move this process off the workstations onto a server where it can be run under admin credentials?
    Microsoft Windows 2000 Scripting Guide - The best book for newbie scripters
    http://www.myspace.com/Evil__Overlord
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9