Information
Supports file, print, and named-pipe sharing over the network for this computer. If this service is stopped, these functions will be unavailable.
The recommended state for this setting is: Disabled
In a high security environment, a secure workstation should only be a
client
, not a server. Sharing workstation resources for remote access increases security risk as the attack surface is notably higher.
Solution
Remediation of this service is currently not possible through Settings Catalog or a custom profile OMA-URI. Instead, it can be scripted and deployed through the Intune Scripts or Remediations blade or by other means.
To establish the recommended configuration via PowerShell, run the following cmdlet:
Set-Service -Name LanmanServer -StartupType Disabled
Impact:
File, print and named-pipe sharing functions will be unavailable from this machine over the network.
Note: Many remote administration tools, such as System Center Configuration Manager (SCCM), require the Server service to be operational for remote management. In addition, many vulnerability scanners use this service to scan the file system remotely.