winutil icon indicating copy to clipboard operation
winutil copied to clipboard

ps1 profile location for Powershell

Open kosielemmer opened this issue 2 weeks ago • 0 comments

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 avatar Feb 04 '25 00:02 kosielemmer