Copy files using different credentials?
I'm logged in to a Windows 7 desktop as a user. I'm trying to copy files from my XP laptop. I can copy files that my user account is an owner of, but not files that another account is owner of (my admin ID). OK that makes sense. I shouldn't be able to copy files that are not mine. Both machines and accounts are AD domain members. However if I open a DOS prompt, running both as an admin (on both machines) AND the owner of those files, I still get access denied using either a UNC or a drive mapped with the admin credentials. That doesn't make much sense. Even when running a shell as an admin, it doesn't recognize that those files belong to that admin account! I'm sure I could log off and log back on with the admin account and I'd be OK, or grant ownership to the user account, but IMO I should be able to do this. Logged on as a user, but using my admin credentials. Just not sure how. I tried Powershell also to no avail. Logging as a user sucks I don't care what the security dweebs say.
June 16th, 2010 6:22pm

Hi, try command runas with this command you are able to run applications under other user credentials. You can open any filemanager (Total Commander, etc.) and then you will be visible as Admin or logged user.
Free Windows Admin Tool Kit Click here and download it now
June 16th, 2010 10:35pm

The issue here is probably not runas (as wyck points out "running a shell as admin") but the elevation. When performing a runas on cmd, the command prompt window is not ran with elevated (admin) privileges. I tested this locally and can confirm this. This is due to UAC being activated. You can work around this by NOT using runas and instead rightclicking (a shortcut to) cmd and choosing "run as administrator" or by clicking start, typing cmd and confirm with ctrl-shift-enter. MCSA/MCTS/MCP
June 16th, 2010 10:59pm

You can try “net use” command to connect to the share with a specified user. Net useArthur Xie - MSFT
Free Windows Admin Tool Kit Click here and download it now
June 17th, 2010 10:33am

I tried both RunAs and Net USE, using an admin account that was also the owner of the remote files. Neither worked. I punked out finally and logged on to the laptop with my admin account and pushed the files to the Win7 desktop. When I get the chance I'll try running a cmd as administrator, then connecting using the admin accounts. I can see this popping up again in the future so I do want to figure out how to do this.
June 17th, 2010 4:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics