Exemplo n.º 1
0
def test_global_reg2():
    code = api.set_reg(
        [host],
        key=r"HKU:\*\Software\Microsoft\Windows\CurrentVersion\Policies\System",
        value="Wallpaper",
        data=r"C:\pic1.jpg")
    code = api.set_reg(
        [host],
        key=r"HKU:\*\Software\Microsoft\Windows\CurrentVersion\Policies\System",
        value="NoDispScrSavPage",
        data=1,
        datatype="dword")
Exemplo n.º 2
0
def change_defualt_user_reg():
    code = api.set_reg(
        [host],
        key=
        r"HKU:\default_profile\Software\Microsoft\Windows\CurrentVersion\Policies\System",
        value="Wallpaper",
        data=r"C:\pic.jpg")
    code = api.set_reg(
        [host],
        key=
        r"HKU:\default_profile\Software\Microsoft\Windows\CurrentVersion\Policies\System",
        value="NoDispScrSavPage",
        data=1,
        datatype="dword")
Exemplo n.º 3
0
def test_reg():
    # api.set_reg([host], key="HKU:\.DEFAULT\Software\MyCompany", value="Young", data="good")
    code = api.set_reg(
        [host],
        key=r"HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System",
        value="Wallpaper",
        data=r"C:\pic1.jpg")
    print "return code:", code
    code = api.set_reg(
        [host],
        key=r"HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System",
        value="NoDispScrSavPage",
        data=1,
        datatype="dword")
    print "return code:", code
Exemplo n.º 4
0
def hide_user():
    code = api.set_reg(
        [host],
        key=
        r"HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList",
        value="iscas",
        data=0,
        datatype="dword")
Exemplo n.º 5
0
def hide_user():
    code = api.set_reg([host], key=r"HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList", value="iscas", data=0, datatype="dword")
Exemplo n.º 6
0
def change_defualt_user_reg():
    code = api.set_reg([host], key=r"HKU:\default_profile\Software\Microsoft\Windows\CurrentVersion\Policies\System", value="Wallpaper", data=r"C:\pic.jpg")
    code = api.set_reg([host], key=r"HKU:\default_profile\Software\Microsoft\Windows\CurrentVersion\Policies\System", value="NoDispScrSavPage", data=1, datatype="dword")
Exemplo n.º 7
0
def test_global_reg2():
    code = api.set_reg([host], key=r"HKU:\*\Software\Microsoft\Windows\CurrentVersion\Policies\System", value="Wallpaper", data=r"C:\pic1.jpg")
    code = api.set_reg([host], key=r"HKU:\*\Software\Microsoft\Windows\CurrentVersion\Policies\System", value="NoDispScrSavPage", data=1, datatype="dword")
Exemplo n.º 8
0
def test_reg():
    # api.set_reg([host], key="HKU:\.DEFAULT\Software\MyCompany", value="Young", data="good")
    code = api.set_reg([host], key=r"HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System", value="Wallpaper", data=r"C:\pic1.jpg")
    print "return code:", code
    code = api.set_reg([host], key=r"HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System", value="NoDispScrSavPage", data=1, datatype="dword")
    print "return code:", code