tamaacu.blogg.se

Sound lock windows 10
Sound lock windows 10








sound lock windows 10

Replace the 100 with whatever volume level you want to increase the system volume to. Open another Notepad file, and paste the following in it. Save it with a name that tells you what the script is for, and with the PS1 file extension. You can replace the 20 with whatever volume you want to lower your system’s volume to. Open Notepad and paste the following in it. One script will set the volume when you lock your system, and the other will set the volume when you unlock it. Next, you need to create two PowerShell scripts. Set-Location "$($profile | Split-Path)\Modules\AudioDeviceCmdlets"

sound lock windows 10

New-Item "$($profile | split-path)\Modules\AudioDeviceCmdlets" -Type directory -ForceĬopy-Item "C:\Path-to-file\AudioDeviceCmdlets.dll" "$($profile | split-path)\Modules\AudioDeviceCmdlets\AudioDeviceCmdlets.dll" Replace the path next to ‘Copy-Item’ with the path to the file you downloaded from Github earlier. You’re going to need to enter the path to this file in the next step. Move this file some place you won’t delete it. You need to download a file from Github called AudioDeviceCmdlets.










Sound lock windows 10