Windows PowerShell 5.1 profile.ps1 cannot be loaded. A required certificate is not within its validity period #21402

Closed
opened 2026-01-31 07:43:37 +00:00 by claunia · 2 comments
Owner

Originally created by @longtimedeveloper on GitHub (Mar 15, 2024).

Windows Terminal version

No response

Windows build number

No response

Other Software

No response

Steps to reproduce

This error started yesterday (14 March 2024) after the Windows Update.

Open Windows 10, Windows PowerShell 5.1 using the start menu
Error immediately appears in console

Expected Behavior

Windows PowerShell 5.1 to open normally

Actual Behavior

This error is displayed,

. : File C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1 cannot be loaded. A required certificate is not within its validity period when verifying against the current system clock or
the timestamp in the signed file.
At line:1 char:3

  • . 'C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1'
  • + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
    
Originally created by @longtimedeveloper on GitHub (Mar 15, 2024). ### Windows Terminal version _No response_ ### Windows build number _No response_ ### Other Software _No response_ ### Steps to reproduce **This error started yesterday (14 March 2024) after the Windows Update.** Open Windows 10, Windows PowerShell 5.1 using the start menu Error immediately appears in console ### Expected Behavior Windows PowerShell 5.1 to open normally ### Actual Behavior This error is displayed, . : File C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1 cannot be loaded. A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file. At line:1 char:3 + . 'C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:43:37 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 15, 2024):

Sounds like something that needs to be filed over on https://github.com/PowerShell/PowerShell/issues. That's the repo for PowerShell. Thanks!

@zadjii-msft commented on GitHub (Mar 15, 2024): Sounds like something that needs to be filed over on https://github.com/PowerShell/PowerShell/issues. That's the repo for PowerShell. Thanks!
Author
Owner

@longtimedeveloper commented on GitHub (Mar 15, 2024):

@zadjii-msft thank you. Filed this issue Windows PowerShell 5.1 profile.ps1 cannot be loaded.

@longtimedeveloper commented on GitHub (Mar 15, 2024): @zadjii-msft thank you. Filed this issue [Windows PowerShell 5.1 profile.ps1 cannot be loaded.](https://github.com/PowerShell/PowerShell/issues/21346)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21402