I've searched through all the posts that i could find and cannot find a solution to this error. I am running Powershell as Administrator. Any help would be much appreciated. This started when i tried to upgrade my PowerCLI, i've removed it entirely and tried new install with same error.
PackageManagement\Install-Package : Package 'VMware.VimAutomation.Core' failed to be installed because: Access to the
path 'C:\Users\%USER%\AppData\Local\Temp\y4cori3u\net45\Scripts\GuestDiskExpansion_winXPProGuest.bat' is denied.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (VMware.VimAutomation.Core:String) [Install-Package], Exception
+ FullyQualifiedErrorId : Package '{0}' failed to be installed because: {1},Microsoft.PowerShell.PackageManagement
.Cmdlets.InstallPackage
Thank you for any help you have provide.
Added full error messsage.