Skip to content

fix(scoop-checkup): Skip defender check in Windows Sandbox#5519

Merged
niheaven merged 2 commits intoScoopInstaller:developfrom
HUMORCE:scoop-checkup-1
May 30, 2023
Merged

fix(scoop-checkup): Skip defender check in Windows Sandbox#5519
niheaven merged 2 commits intoScoopInstaller:developfrom
HUMORCE:scoop-checkup-1

Conversation

@HUMORCE
Copy link
Copy Markdown
Member

@HUMORCE HUMORCE commented May 29, 2023

Description

Get-MpPreference : Provider load failure

Motivation and Context

Defender is OFF in Sandbox.(default

Closes #XXXX

Relates to ScoopInstaller/Install@c99c2f1

How Has This Been Tested?

Before:

PS C:\Users\WDAGUtilityAccount> scoop checkup
Get-MpPreference : Provider load failure
At C:\Users\WDAGUtilityAccount\scoop\apps\scoop\current\lib\diagnostic.ps1:9 char:14
+         if ((Get-MpPreference).DisableRealtimeMonitoring) { return $t ...
+              ~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Get-MpPreference],
   CimException
    + FullyQualifiedErrorId : HRESULT 0x80041013,Get-MpPreference

Get-MpPreference : Provider load failure
At C:\Users\WDAGUtilityAccount\scoop\apps\scoop\current\lib\diagnostic.ps1:9 char:14
+         if ((Get-MpPreference).DisableRealtimeMonitoring) { return $t ...
+              ~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Get-MpPreference],
   CimException
    + FullyQualifiedErrorId : HRESULT 0x80041013,Get-MpPreference

WARN  Windows Developer Mode is not enabled. Operations relevant to symlinks may fail without proper rights.
  You may read more about the symlinks support here:
  https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/
ERROR '7-Zip' is not installed! It's required for unpacking most programs. Please Run 'scoop install 7zip' or 'scoop install 7zip-zstd'.
ERROR 'Inno Setup Unpacker' is not installed! It's required for unpacking InnoSetup files. Please run 'scoop install innounp'.
ERROR 'dark' is not installed! It's required for unpacking installers created with the WiX Toolset. Please run 'scoop install dark' or 'scoop install wixtoolset'.
WARN  Found 4 potential problems.

After:

PS C:\Users\WDAGUtilityAccount> scoop checkup
WARN  Windows Developer Mode is not enabled. Operations relevant to symlinks may fail without proper rights.
  You may read more about the symlinks support here:
  https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/
ERROR '7-Zip' is not installed! It's required for unpacking most programs. Please Run 'scoop install 7zip' or 'scoop install 7zip-zstd'.
ERROR 'Inno Setup Unpacker' is not installed! It's required for unpacking InnoSetup files. Please run 'scoop install innounp'.
ERROR 'dark' is not installed! It's required for unpacking installers created with the WiX Toolset. Please run 'scoop install dark' or 'scoop install wixtoolset'.
WARN  Found 4 potential problems.

Checklist:

  • I have read the Contributing Guide.
  • I have ensured that I am targeting the develop branch.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.
  • I have added an entry in the CHANGELOG.

r15ch13
r15ch13 previously approved these changes May 29, 2023
@niheaven niheaven merged commit 1d14058 into ScoopInstaller:develop May 30, 2023
@HUMORCE HUMORCE deleted the scoop-checkup-1 branch August 10, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants