Powershell Set-BitsTransfer - access is denied
- by Rouan van Dalen
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