Home Dashboard Directory Help
Search

Start-BitsTransfer ignores -Credential parameter by HAL9256


Status: 

Active


2
0
Sign in
to vote
Type: Bug
ID: 837010
Opened: 3/19/2014 5:08:01 PM
Access Restriction: Public
1
Workaround(s)
view
0
User(s) can reproduce this bug

Description

When using Start-BitsTransfer, the -Credential parameter is ignored. This means that you cannot access file shares that require different permissions from the currently logged on user.

Also, using the runas command to open up a new PowerShell prompt to use different credentials, and then running Start-BitsTransfer does not work.

More thorough information and several different reproduction steps is listed in the answer on:
http://stackoverflow.com/questions/22457548/bits-transfer-file-with-multi-domain

This is an extension of the similar issue documented in feedback id: 810753 (https://connect.microsoft.com/PowerShell/feedback/details/810753/)
Details
Sign in to post a comment.
Sign in to post a workaround.
Posted by HAL9256 on 3/19/2014 at 5:09 PM
$cred = Get-Credential -Username 'contoso\admin'

net use \\server\c$
Start-BitsTransfer -Source \\computer2\c$\test.txt -Destination . -Credential $cred
#Success

net use \\server\c$ /delete