PowerShell / PowerShell/Win32-OpenSSH
System Environment variables not resolving correct user profile
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 8.3k
- Forks
- 819
- PR merge metrics
- No merged PRs in 30d
Description
Troubleshooting steps
https://github.com/PowerShell/Win32-OpenSSH/wiki/Troubleshooting-Steps
Terminal issue? please go through wiki
https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH
Please answer the following
"OpenSSH for Windows" version
((Get-Item (Get-Command sshd).Source).VersionInfo.FileVersion)
8.1.0.1
Server OperatingSystem
((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion\" -Name ProductName).ProductName)
Windows 10 Enterprise for Virtual Desktops
Client OperatingSystem
Windows 11
What is failing
I am trying to set a System Environment using %UserProfile%
TestSystemVar: %UserProfile%
Expected output
set TestSystemVar
TestSystemVar=C:\Users\mopatel
Actual output
set TestSystemVar
TestSystemVar=C:\Windows\system32\config\systemprofile
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Troubleshooting Steps and TTY/PTY support wiki pages, then reproduce the issue using the reported OpenSSH version and Windows 10 Enterprise for Virtual Desktops setup. Compare the expansion of TestSystemVar from the expected user profile with the actual systemprofile path; done means the reported system environment variable resolves to the intended user profile.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100