Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Get-WindowsUpdateLog Not Worked

$
0
0

Ise As administrator

PS C:\Windows\system32> Get-WindowsUpdateLog Cannot invoke method. Method invocation is supported only on core types in this language mode. At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\WindowsUpdate\WindowsUpdateLog.psm1:462 char:32+ ... $LogPath = "$([System.Environment]::GetFolderPath("Desktop"))\Window ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidOperation: (:) [], RuntimeException+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage New-Object : Cannot create type. Only core types are supported in this language mode. At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\WindowsUpdate\WindowsUpdateLog.psm1:472 char:17+ $etls = New-Object System.Collections.ArrayList+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : PermissionDenied: (:) [New-Object], PSNotSupportedException+ FullyQualifiedErrorId : CannotCreateTypeConstrainedLanguage,Microsoft.PowerShell.Commands.NewObjectCommand You cannot call a method on a null-valued expression. At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\WindowsUpdate\WindowsUpdateLog.psm1:500 char:17+ $etls.Add($p) | Out-Null+ ~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidOperation: (:) [], RuntimeException+ FullyQualifiedErrorId : InvokeMethodOnNull No Windows Update ETL file found. At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\WindowsUpdate\WindowsUpdateLog.psm1:377 char:9+ throw "No Windows Update ETL file found."+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : OperationStopped: (No Windows Update ETL file found.:String) [], RuntimeException+ FullyQualifiedErrorId : No Windows Update ETL file found.



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>