Adjusting Windows Volume settings for users during Intune Enrolment

Mar 4, 2022 2 min read
Adjusting Windows Volume settings for users during Intune Enrolment

Introduction

One of our customers came up with an unusual request this week: In order to minimize the help desk requests regarding low speakers or sound settings particularly in meeting apps like Microsoft Teams, Cisco Webex or Zoom, the system sound volume bar should be set to 100% during or close after the enrollment of a device. Per default the setting is set to 67% according to Microsoft.

Implementation

As the Windows 11 devices are rolled out and managed with Microsoft Endpoint Manager, we decided to do this during the Windows Autopilot enrollment.

The following script needs to be executed on the device:

Function Set-Speaker($Volume){$wshShell = new-object -com wscript.shell;1..50 | % {$wshShell.SendKeys([char]174)};1..$Volume | % {$wshShell.SendKeys([char]175)}}
#Sets volume to 100% - Please keep in mind: each tick is 2%
Set-Speaker -Volume 50

This script will be saved as a PowerShell file and uploaded to your Microsoft Endpoint Manager console.

To do this please connect to your Microsoft Endpoint Manager console and navigate to "Devices -> Scripts" Click on "Add -> Windows 10 and later".

Give it a name:

Blog1

Make sure the Script setting is set to "Run this script used the logged on credentials", otherwise the speaker volume is not changed for the logged on user.

Blog2

After assigning to the required users the summary of the profile will look like this:

Blog3

Time to check the Windows device now !

Result

The speaker volume has been set to the configured value. The user can change it afterwards if needed.

Conclusion

We have just seen how simple it is to distribute Scripts with Microsoft Endpoint Manager and achieve some customization on the end user devices.

We regularly add tips like this to the blog, so stay tuned! Thanks for reading us.

Great! Next, complete checkout for full access to Mobinergy Blog.
Welcome back! You've successfully signed in.
You've successfully subscribed to Mobinergy Blog.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info has been updated.
Your billing was not updated.