예제 #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")
예제 #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")
예제 #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
예제 #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")
예제 #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")
예제 #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")
예제 #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")
예제 #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