Example #1
0
def wininfo():
    print("----------Windows Info------------")
    import platform as p
    print(p.platform())
    print(p.processor())
    print("----------------------------------")
    note_alert(p.platform())
Example #2
0
def setup():
    p = subprocess.Popen([
        "powershell.exe", '-ExecutionPolicy', 'Unrestricted',
        "scripts\\setup.ps1"
    ],
                         stdout=sys.stdout)
    p.communicate()
    note_alert("Longhorn Succesfully Setup")
Example #3
0
def defender():
    note_alert(
        "Please run this once, restart, and run this again for it to work.")
    p = subprocess.Popen(
        ["powershell.exe", "scripts\\disable-windows-defender.ps1"],
        stdout=sys.stdout)
    p.communicate()
    note_alert("Windows Defender Disabled Successfully")
Example #4
0
def block():
    subprocess.call([r'lib\\spotiblock.bat'])
    note_alert("Spotify Ads blocked! Please Restart Spotify", "Success!")
Example #5
0
def blockupdate():
    subprocess.call([r'lib\\blockupdate.bat'])
    note_alert("Spotify Updates Blocked", "Ok")
Example #6
0
def reset():
    subprocess.call([r'lib\\reset.bat'])
    note_alert("Spotify Blocking Reset", "Ok")
Example #7
0
def about():
    note_alert("""Longhorn is a Windows Debloater made by VincentXII.\n
Please read the included "README.md" for more information on Longhorn""")
Example #8
0
def services():
    p = subprocess.Popen(["powershell.exe", "scripts\\disable-services.ps1"],
                         stdout=sys.stdout)
    p.communicate()
    note_alert("Intrusive Services Disabled Successfully")
Example #9
0
def restorepoint():
    p = subprocess.Popen(
        ["powershell.exe", "scripts\\create-restore-point.ps1"],
        stdout=sys.stdout)
    p.communicate()
    note_alert("Created Restore Point")
Example #10
0
def telemetry():
    p = subprocess.Popen(["powershell.exe", "scripts\\block-telemetry.ps1"],
                         stdout=sys.stdout)
    p.communicate()
    note_alert("Telemetry Blocked Successfully")
Example #11
0
def onedrive():
    p = subprocess.Popen(["powershell.exe", "scripts\\remove-onedrive.ps1"],
                         stdout=sys.stdout)
    p.communicate()
    note_alert("Onedrive Uninstalled Sucessfully")
Example #12
0
def defaultapps():
    p = subprocess.Popen(
        ["powershell.exe", "scripts\\remove-default-apps.ps1"],
        stdout=sys.stdout)
    p.communicate()
    note_alert("Default Apps Removed Successfully")
Example #13
0
def cortana():
    p = subprocess.Popen(["scripts\\delCortana.bat"])
    p = subprocess.Popen(["scripts\\delCortana.bat"])
    p = subprocess.Popen(["scripts\\delCortana.bat"])
    note_alert("Cortana Removed Successfully")