Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ps1 profile location for Powershell #3191

Open
kosielemmer opened this issue Feb 4, 2025 · 0 comments
Open

ps1 profile location for Powershell #3191

kosielemmer opened this issue Feb 4, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@kosielemmer
Copy link

Is your feature request related to a problem? Please describe

After moving my windows profile I get the following error:

Profile is up to date.
Out-File: H:\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:88
Line |
88 | $currentTime | Out-File -FilePath $timeFilePath
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Could not find a part of the path 'C:\Users<>\Documents\PowerShell\LastExecutionTime.txt'.
Checking for PowerShell updates...
Your PowerShell is up to date.
Out-File: H:\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:129
Line |
129 | $currentTime | Out-File -FilePath $timeFilePath
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Could not find a part of the path 'C:\Users<>\Documents\PowerShell\LastExecutionTime.txt'.

Describe the solution you'd like

posibility for the tool to look where the profile is stored (I made sure in reg Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
and then store the files there?

Describe alternatives you've considered

Live with the error - it just bugs me - nothing serious

Issue validation

  • [x ] I checked for duplicate issues.
  • [ x] I checked for already existing discussions.
  • [ x] I checked for an already existing pull request addressing the issue.

But please don't get mad if I missed it. Quite new to Git...

Thanks anyway - great tool

@kosielemmer kosielemmer added the enhancement New feature or request label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant