SCCM | Intune | Windows 365 | Autopilot | Windows 11 Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members. Please post your questions in the correct category.

SOLVED Enable Microsoft Defender Antivirus on Windows Server

Status
Not open for further replies.

Ravi Kumar

Active Member
Hello All,

Hope you all are doing great,

I need your help in Enablement of the Defender antivirus in my environment on servers, i am using below mentioned command.

# For Windows Server 2016
Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Features
Dism /Online /Enable-Feature /FeatureName:Windows-Defender
Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Gui

# For Windows Server 1803 and later, including Windows Server 2019 and 2022
Dism /Online /Enable-Feature /FeatureName:Windows-Defender

Now the Challenge is, i want to run this on multiple systems and for server and it ask for reboot in the second command then only we can run 3rd command. How we can achieve this from SCCM and can run all three command via script or anything.

Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Features
Dism /Online /Enable-Feature /FeatureName:Windows-Defender --------(Reboot)
Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Gui

Thank you in Advance.

Best Regards
Ravi Kumar
 
Solution
Hello All,

Hope you all are doing great,

I need your help in Enablement of the Defender antivirus in my environment on servers, i am using below mentioned command.

# For Windows Server 2016
Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Features
Dism /Online /Enable-Feature /FeatureName:Windows-Defender
Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Gui

# For Windows Server 1803 and later, including Windows Server 2019 and 2022
Dism /Online /Enable-Feature /FeatureName:Windows-Defender

Now the Challenge is, i want to run this on multiple systems and for server and it ask for reboot in the second command then only we can run 3rd command. How we can achieve this from SCCM and can run all three command via...
Hello All,

Hope you all are doing great,

I need your help in Enablement of the Defender antivirus in my environment on servers, i am using below mentioned command.

# For Windows Server 2016
Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Features
Dism /Online /Enable-Feature /FeatureName:Windows-Defender
Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Gui

# For Windows Server 1803 and later, including Windows Server 2019 and 2022
Dism /Online /Enable-Feature /FeatureName:Windows-Defender

Now the Challenge is, i want to run this on multiple systems and for server and it ask for reboot in the second command then only we can run 3rd command. How we can achieve this from SCCM and can run all three command via script or anything.

Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Features
Dism /Online /Enable-Feature /FeatureName:Windows-Defender --------(Reboot)
Dism /Online /Enable-Feature /FeatureName:Windows-Defender-Gui

Thank you in Advance.

Best Regards
Ravi Kumar
I would do this as a task sequence.
 
Solution
Status
Not open for further replies.
Back
Top