Getting registry value using WMI

后端 未结 3 1229
终归单人心
终归单人心 2021-01-28 00:43

I\'m getting an exception which I can\'t find documented anywhere. Here is the exception:

The following exception occurred while retrieving the type name hierarc         


        
3条回答
  •  误落风尘
    2021-01-28 00:56

    don't you over complicate things ? all of these to read a value from registry ? what about someting like that

    icm -ComputerName $endpoint -ScriptBlock {Get-ItemProperty HKLM:\software\7-zip\ |select path} 
    

提交回复
热议问题