Skip to content

Script cannot map to OneDrive documents #174

@wisammechano

Description

@wisammechano

I liked this profile but the issue is that it keeps logging this error making the startup slow.

PowerShell 7.5.4
Profile is up to date.
Out-File: C:\Users\USER\OneDrive\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:159
Line |
159 | $currentTime | Out-File -FilePath $timeFilePath
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Could not find a part of the path 'C:\Users\USER\Documents\PowerShell\LastExecutionTime.txt'.
Checking for PowerShell updates...
Your PowerShell is up to date.
Out-File: C:\Users\USER\OneDrive\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:204
Line |
204 | $currentTime | Out-File -FilePath $timeFilePath
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Could not find a part of the path 'C:\USER\wisam\Documents\PowerShell\LastExecutionTime.txt'.
Use 'Show-Help' to display help
Loading personal and system profiles took 5871ms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions