Changes required after deploy image via sccm

vikas j 1 Reputation point
2020-10-01T16:09:09.99+00:00

We required below two changes after deploy image using sccm

Remove mail icon from windows taskbar

Power and sleep settings Sleep - When plugged in PC goes to sleep _ Never

Microsoft Configuration Manager
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Fiona Yan-MSFT 2,311 Reputation points
    2020-10-02T04:54:26.15+00:00

    @vikas j

    We could add two additional steps after applying OS settings like "remove mail icon from task bar" and "disable sleep mode" and then deploy this task sequence to our required client.

    1. For remove mail step, we may use this script to remove the icon.Here is the script below(We must use the admin permission account):
      if(Get-ProvisionedAppxPackage -Online | Where-Object {$.DisplayName -match "Microsoft.windowscommunicationsapps"}){Get-ProvisionedAppxPackage -Online | Where-Object {$.DisplayName -match "Microsoft.windowscommunicationsapps"} | Remove-AppxProvisionedPackage -Online -AllUsers -Verbose -ErrorAction Continue}
      else { Write-Output "Mail app is not installed for the system"}
    2. For disable sleep mode step, we could use powercfg command line to reach our goal.
      we could run like this "c:\windows\system32\powercfg.exe -change -standby-timeout-ac 0"
      The step image as shown below:

    29757-remove-and-disable.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.