#To define a particular parameter, replace the 'parameterName' inside itsm.getParameter('parameterName') with that parameter's name
import _winreg
Key= r"SOFTWARE\Policies\Microsoft\PassportForWork" ## Here give the registry Key path. STRING
Sub_Key= ["Enabled","DisablePostLogonProvisioning"] ## Here give the sub Key of the registry. STRING
Field= _winreg.REG_DWORD ##Here give the field of it
value = 0 ##Mention the value 

import os
from _winreg import *
try:
    Key=r"SOFTWARE\Policies\Microsoft\PassportForWork"    
    if not os.path.exists(Key):
        key = _winreg.CreateKey(HKEY_LOCAL_MACHINE,Key)
    Registrykey= OpenKey(HKEY_LOCAL_MACHINE,Key, 0,KEY_WRITE)

    for skey in Sub_Key:
        _winreg.SetValueEx(Registrykey,skey,0,Field,value)
    CloseKey(Registrykey)
    
    print "Successfully disabled Hello for Business"
except WindowsError:
    print "Error"
