
# -*- coding: utf-8 -*-

name = 'hide-volumeicon-GPO'
description = 'set setting for GPO to hide volume icon in taskbar'
args = {
	'name': dict(help='Name of the GPO'),
	'guid': dict(help='guid of gpo'),
}

ps = '''
$ErrorActionPreference = "Stop"
$guid="%(guid)s"
if($guid -ne "None" ){
set-GPPrefRegistryValue -Guid %(guid)s -Context User -key "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -ValueName HideSCAVolume -Type DWORD -value 1 -Action Update
}else{
set-GPPrefRegistryValue -Name "%(name)s" -Context User -key "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -ValueName HideSCAVolume -Type DWORD -value 1 -Action Update
}
'''
