Open
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
VSCode 1.83.1 with PowerShell extension 2023.8.0, set to Windows PowerShell x64.
$PSVersionTable shows:
Name Value
PSVersion 5.1.19041.3633
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.3633
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
When running Install-PSResource it installs into the Documents\PowerShell\Modules directory instead of Documents\WindowsPowerShell\Modules
Expected behavior
Running PSResource cmdlets under Windows PowerShell should save to the WindowsPowerShell module/script direcory.
install-psresource -name exchangeonlinemanagement -scope CurrentUser
it should install to Documents\WindowsPowerShell\Modules\ExchangeOnlineManagement
Actual behavior
install-psresource -name exchangeonlinemanagement -scope CurrentUser
it *actually* installed to Documents\PowerShell\Modules\ExchangeOnlineManagement
Running the same line from powershell.exe or a Windows PowerShell tab in Terminal behaves as expected.
Error details
No response
Environment data
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Binary 1.0.0 Microsoft.PowerShell.PSResourceGet {Find-PSResource, Get-InstalledPSResource, Get-PSResourceRepository, Get-PSScriptFileInfo...}
Key : PSVersion
Value : 5.1.19041.3633
Name : PSVersion
Key : PSEdition
Value : Desktop
Name : PSEdition
Key : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0...}
Name : PSCompatibleVersions
Key : BuildVersion
Value : 10.0.19041.3633
Name : BuildVersion
Key : CLRVersion
Value : 4.0.30319.42000
Name : CLRVersion
Key : WSManStackVersion
Value : 3.0
Name : WSManStackVersion
Key : PSRemotingProtocolVersion
Value : 2.3
Name : PSRemotingProtocolVersion
Key : SerializationVersion
Value : 1.1.0.1
Name : SerializationVersion
Visuals
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
TODO