"using module" with relative path, where script is located at a UNC location does not work. #20018
Open
5 tasks done
Labels
Needs-Investigation
The behavior reported in the issue is unexpected and needs further investigation.
Needs-Triage
The issue is new and needs to be triaged by a work group.
WG-Engine
core PowerShell engine, interpreter, and runtime
Prerequisites
Steps to reproduce
"Using module" in a script does not work with a relative path if the script is stored at a UNC location.
The first line gives an error if the script is running from a UNC location, but works fine if I run it from C:\Temp.
If I change both paths to absolute UNC paths, like the second line, it will work from both locations.
using module .\CWPSModules\EnvironmentVariables
using module \fs1\xxx\Dev\Scripts_v4.0\CWPSModules\ClassesCW6
Expected behavior
Actual behavior
Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: