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

Defender module for Powershell in mcr.microsoft.com/windows/server:ltsc2022 image #538

Open
super-brian opened this issue Sep 18, 2024 · 2 comments
Labels
🔖 ADO Has corresponding ADO item question Further information is requested

Comments

@super-brian
Copy link

The docker image mcr.microsoft.com/windows/server:ltsc2022 is used.
It looks like the powershell inside it doesn't have 'Defender' module.
https://learn.microsoft.com/en-us/powershell/module/defender/?view=windowsserver2022-ps#defender
This is necessary to use Add-MpPreference cmdlet to exclude some folders from scanning since it fails build step in GitHub Actions from time to time (It is self-hosted runners).
How could I do Install-Module Defender? Is it possible? When I see windows server 2022 (Datacenter) or windows 11, they all have Defender folder under C:\Windows\system32\windowspowershell\v1.0

@super-brian super-brian added question Further information is requested triage New and needs attention labels Sep 18, 2024
Copy link

Thank you for creating an Issue. Please note that GitHub is not an official channel for Microsoft support requests. To create an official support request, please open a ticket here. Microsoft and the GitHub Community strive to provide a best effort in answering questions and supporting Issues on GitHub.

@ntrappe-msft ntrappe-msft added the 🔖 ADO Has corresponding ADO item label Sep 18, 2024
@ntrappe-msft
Copy link
Contributor

Hi @super-brian, you've brought up an interesting question. We didn't include Defender into full server because we expected to run it on the container host, not inside the container. There may be a way to achieve the behavior you're expecting but it would help to get some more information first. Could you explain what it is that you're trying to do? And why you're trying to block certain files?

@ntrappe-msft ntrappe-msft removed the triage New and needs attention label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔖 ADO Has corresponding ADO item question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants