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

PowerShell crash using Update-M365DSCDependencies #4539

Closed
gitbpotalan opened this issue Apr 8, 2024 · 6 comments
Closed

PowerShell crash using Update-M365DSCDependencies #4539

gitbpotalan opened this issue Apr 8, 2024 · 6 comments

Comments

@gitbpotalan
Copy link

Description of the issue

update-m365dscdependencies
dscerror1
dscerror2

Microsoft 365 DSC Version

1.24.403.1

Which workloads are affected

other

The DSC configuration

Install-Module Microsoft365DSC -Scope AllUsers -Force => OK
Update-M365DSCDependencies => KO => PowerShell crashes (see attached files)

Having this issue on different servers no matter what the operating system version is : sometimes WS2016, also 2019 and 2022
For some customers it works as intended, for others I just get the error described
Tried to repair the .NET Framework with a tool I found, doesn't fix the problem

Verbose logs showing the problem

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. Tous droits réservés.

 Scanning Dependencies
    Traitement en cours
    [oooooooooooooooooooooooooooooooooooooooooooooooooooooo                                                                                                                                                                                                             ]

COMMENTAIRES : Chargement du module à partir du chemin « C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PowerShell.PackageManagement.dll ».
COMMENTAIRES : Exportation de l'applet de commande « Find-Package ».
COMMENTAIRES : Exportation de l'applet de commande « Get-Package ».
COMMENTAIRES : Exportation de l'applet de commande « Get-PackageProvider ».
COMMENTAIRES : Exportation de l'applet de commande « Get-PackageSource ».
COMMENTAIRES : Exportation de l'applet de commande « Install-Package ».
COMMENTAIRES : Exportation de l'applet de commande « Import-PackageProvider ».
COMMENTAIRES : Exportation de l'applet de commande « Find-PackageProvider ».
COMMENTAIRES : Exportation de l'applet de commande « Install-PackageProvider ».
COMMENTAIRES : Exportation de l'applet de commande « Register-PackageSource ».
COMMENTAIRES : Exportation de l'applet de commande « Save-Package ».
COMMENTAIRES : Exportation de l'applet de commande « Set-PackageSource ».
COMMENTAIRES : Exportation de l'applet de commande « Uninstall-Package ».
COMMENTAIRES : Exportation de l'applet de commande « Unregister-PackageSource ».
COMMENTAIRES : Importation de l'applet de commande « Find-Package ».
COMMENTAIRES : Importation de l'applet de commande « Find-PackageProvider ».
COMMENTAIRES : Importation de l'applet de commande « Get-Package ».
COMMENTAIRES : Importation de l'applet de commande « Get-PackageProvider ».
COMMENTAIRES : Importation de l'applet de commande « Get-PackageSource ».
COMMENTAIRES : Importation de l'applet de commande « Import-PackageProvider ».
COMMENTAIRES : Importation de l'applet de commande « Install-Package ».
COMMENTAIRES : Importation de l'applet de commande « Install-PackageProvider ».
COMMENTAIRES : Importation de l'applet de commande « Register-PackageSource ».
COMMENTAIRES : Importation de l'applet de commande « Save-Package ».
COMMENTAIRES : Importation de l'applet de commande « Set-PackageSource ».
COMMENTAIRES : Importation de l'applet de commande « Uninstall-Package ».
COMMENTAIRES : Importation de l'applet de commande « Unregister-PackageSource ».
Installing ExchangeOnlineManagement version {3.4.0}
Installing Microsoft.Graph.Applications version {2.15.0}
Installing Microsoft.Graph.Authentication version {2.15.0}
Installing Microsoft.Graph.Beta.DeviceManagement version {2.15.0}

PowerShell crashes when handling this module install, and logs an error in event viewer as seen in attached files

Environment Information + PowerShell Version

OsName               : Microsoft Windows Server 2016 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture       : 64 bits
WindowsBuildLabEx    : 14393.6611.amd64fre.rs1_release.231218-1733
OsLanguage           : fr-FR
OsMuiLanguages       : {fr-FR}

PSVersion                      5.1.14393.6343
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.6343
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@gitbpotalan
Copy link
Author

Could not confirm yet but I noticed a software difference between functional and not functional servers when SentinelOne Agent is installed
Will try to confirm asap

@gitbpotalan
Copy link
Author

Confirmed problem happens because of SentinelOne

@gitbpotalan
Copy link
Author

This topic becomes problematic when updating modules since agent cannot be disabled at every update.
What are the exceptions for antivirus system to prevent modules installation/update ?

@andikrueger
Copy link
Collaborator

In the past we have seen similar reports about false positives for some of the module dependencies. Depending on which module causing the crash there are a few options:

  1. For the false positive detection to the av solution vendor and wait for their adjustment.
  2. raise an issue within the corresponding GitHub repository for additional awareness about the detection.
  3. run a deployment test and only issue if anything goes well.

@gitbpotalan
Copy link
Author

Hello Andi,
Where should I raise an issue ? It is tested and confirmed this antivirus is blocking M365DSC installation and update.
Thanks.

@FabienTschanz
Copy link
Collaborator

You could raise an issue with the owners of the module on GitHub to raise their awareness. If you don't find it, open it with your AV provider.

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

No branches or pull requests

3 participants