# Running mattermost via script

**URL:** <https://forum.mattermost.com/t/running-mattermost-via-script/16395>\
**Category:** Troubleshooting\
**Created:** [July 13, 2023, 12:38pm UTC](https://forum.mattermost.com/t/running-mattermost-via-script/16395 "2023-07-13T12:38:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![weird-wired](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/weird-wired/32/7030_2.png) [@weird-wired](https://forum.mattermost.com/u/weird-wired)\
**Post date:** [July 13, 2023, 12:38pm UTC](https://forum.mattermost.com/t/running-mattermost-via-script/16395/1 "2023-07-13T12:38:41Z")

</div>

**Summary**  
When running mattermost from script ( \*.bat or \*.ps1) there is no option to Allow access to microphone.

**Steps to reproduce**  
run bat script “start mattermost.exe”

**Expected behavior**  
Everything is similar to running mattermost.exe via GUI.

**Observed behavior**  
Microphone is not working. Got message “Allow mattermost access to microphone”.

Also when entering "await navigator.mediaDevices.enumerateDevices(); " in console, get:  
InputDeviceInfo {deviceId: ‘f83074a59e8183561342916ec8a0d83f71bf18990b2acd04b872b62041b5c64f’, kind: ‘audioinput’, label: ‘Микрофон (VT Lync USB Mono)’, groupId: ‘6d3029d338b21336dd435f14e1d5efc4f035ab38e17bbb63e753aa9f8a20a3d3’}

When entering “await navigator.mediaDevices.getUserMedia({audio: true, video: false});”  
get “Uncaught DOMException: Could not start audio source”

When entering “await navigator.mediaDevices.getUserMedia({audio: {deviceId: {exact: ‘f83074a59e8183561342916ec8a0d83f71bf18990b2acd04b872b62041b5c64f’}}});” (id from enumerateDevices)  
also get “Uncaught DOMException: Could not start audio source”
