SoftwareRat / winget_install_script

Installing winget easily without the Microsoft Store
GNU General Public License v3.0
2 stars 0 forks source link

Antivirus check error #2

Open ZhymabekRoman opened 1 year ago

ZhymabekRoman commented 1 year ago

How can I reproduce this error: https://www.apponfly.com/

Get-MpComputerStatus : Invalid class                                                                                    At line:41 char:6                                                                                                       + IF ((Get-MpComputerStatus).AntivirusEnabled) {                                                                        +      ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : MetadataError: (MSFT_MpComputerStatus:ROOT\Microsoft\...pComputerStatus) [Get-MpComputer
   Status], CimException
    + FullyQualifiedErrorId : HRESULT 0x80041010,Get-MpComputerStatus

and

Get-MpComputerStatus : Invalid class
At line:87 char:6
+ IF ((Get-MpComputerStatus).AntivirusEnabled) {
+      ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : MetadataError: (MSFT_MpComputerStatus:ROOT\Microsoft\...pComputerStatus) [Get-MpComputer
   Status], CimException
    + FullyQualifiedErrorId : HRESULT 0x80041010,Get-MpComputerStatus