Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 30, 2023

Conversation

HUMORCE
Copy link
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
2 checks passed
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.

None yet

3 participants