PowerShell / PowerShellGet

This module provide functions used with PowerShellGet v3 to provide compatibility with scripts expecting PowerShellGet v2
MIT License
49 stars 13 forks source link

Save-PSResource: Temporary folder for installation could not be created or set due to: Object reference not set to an instance of an object. #51

Closed Kaidja closed 8 months ago

Kaidja commented 8 months ago

Prerequisites

Steps to reproduce

Im trying to save a resource from the local file share repository and using PowerShell 7.2.15 Save-PSResource -Name SQLServerODBC -Repository "AppUpdates" -Path C:\Temp\

It works in evironment A but not in B. Same PowerShell in both cases.

Expected behavior

Resource should be saved.

Actual behavior

Error

Error details

Save-PSResource: Temporary folder for installation could not be created or set due to: Object reference not set to an instance of an object.

Environment data

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.2.15
PSEdition                      Core
GitCommitId                    7.2.15
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

7.2.15

Visuals

No response