Powershell Set-BitsTransfer - access is denied
Posted
by Rouan van Dalen
on Server Fault
See other posts from Server Fault
or by Rouan van Dalen
Published on 2010-06-07T13:22:17Z
Indexed on
2010/06/07
13:23 UTC
Read the original article
Hit count: 1555
powershell
Hi
I have the following powershell script:
Import-Module BitsTransfer
Get-BitsTransfer -AllUsers | Set-BitsTransfer -SetOwnerToCurrentUser
which is running on Server2008 R2.
I get the error message:
Set-BitsTransfer : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
I have googled around but cannot seem to find the reason why this happens or how to fix this. I suspect it is a permission issue. I am logged in as local administrator and use the 'Run as administrator' option when starting powershell.
I have also tried setting the execution policy, but it makes no difference. I am not aware of permissions on commands in powershell. Could someone please shed some light on this.
Thanks.
Rouan
© Server Fault or respective owner