PS C:\WINDOWS\system32> $start = Get-Date
>> Start-Process ms-settings:windowsupdate
PS C:\WINDOWS\system32> Get-WinEvent -FilterHashtable @{LogName='Application'; StartTime=$start} -ErrorAction SilentlyContinue |
>> Where-Object { $.Message -match 'ClipESU|ESU|Enroll|Enrol|WAM|Broker|BrokerPlugin|AAD|WebAccount|MicrosoftAccount|Store|WinStore|SystemSettings' } |
>> Select-Object TimeCreated, ProviderName, Id, LevelDisplayName, @{Name='Message';Expression={$.Message}} -First 100 |
>> Format-List
>> Get-WinEvent -FilterHashtable @{LogName='System'; StartTime=$start} -ErrorAction SilentlyContinue |
>> Where-Object { $.Message -match 'ClipESU|ESU|Enroll|Enrol|WAM|Broker|AAD|WebAccount|Store|WinStore|SystemSettings' } |
>> Select-Object TimeCreated, ProviderName, Id, LevelDisplayName, @{Name='Message';Expression={$.Message}} -First 50 |
>> Format-List
$.Message : The term '$.Message' is not recognized as the name of a cmdlet, function, script file, or operable program.
 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:6 char:16
+ Where-Object { $.Message -match 'ClipESU|ESU|Enroll|Enrol|WAM|Broker| ...
+                ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: ($.Message:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
$.Message : The term '$.Message' is not recognized as the name of a cmdlet, function, script file, or operable program.
 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:6 char:16
+ Where-Object { $.Message -match 'ClipESU|ESU|Enroll|Enrol|WAM|Broker| ...
+                ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: ($.Message:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
$.Message : The term '$.Message' is not recognized as the name of a cmdlet, function, script file, or operable program.
 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:6 char:16
+ Where-Object { $.Message -match 'ClipESU|ESU|Enroll|Enrol|WAM|Broker| ...
+                ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: ($.Message:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
$.Message : The term '$.Message' is not recognized as the name of a cmdlet, function, script file, or operable program.
 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:6 char:16
+ Where-Object { $.Message -match 'ClipESU|ESU|Enroll|Enrol|WAM|Broker| ...
+                ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: ($.Message:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
$.Message : The term '$.Message' is not recognized as the name of a cmdlet, function, script file, or operable program.
 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:6 char:16
+ Where-Object { $.Message -match 'ClipESU|ESU|Enroll|Enrol|WAM|Broker| ...
+                ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: ($.Message:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
$.Message : The term '$.Message' is not recognized as the name of a cmdlet, function, script file, or operable program.
 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:6 char:16
+ Where-Object { $.Message -match 'ClipESU|ESU|Enroll|Enrol|WAM|Broker| ...
+                ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: ($.Message:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
$.Message : The term '$.Message' is not recognized as the name of a cmdlet, function, script file, or operable program.
 Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:6 char:16
+ Where-Object { $.Message -match 'ClipESU|ESU|Enroll|Enrol|WAM|Broker| ...
+                ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: ($.Message:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
PS C:\WINDOWS\system32> Get-WinEvent -ListLog WebAccount | Select-Object LogName -First 10
Get-WinEvent : There is not an event log on the localhost computer that matches "WebAccount".
At line:1 char:1
+ Get-WinEvent -ListLog WebAccount | Select-Object LogName -First 10
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: 
) [Get-WinEvent], Exception
    + FullyQualifiedErrorId : NoMatchingLogsFound,Microsoft.PowerShell.Commands.GetWinEventCommand
I cant sign in Microsoft store. Error say "We encountered error. Please try signing in again later"