def wininfo(): print("----------Windows Info------------") import platform as p print(p.platform()) print(p.processor()) print("----------------------------------") note_alert(p.platform())
def setup(): p = subprocess.Popen([ "powershell.exe", '-ExecutionPolicy', 'Unrestricted', "scripts\\setup.ps1" ], stdout=sys.stdout) p.communicate() note_alert("Longhorn Succesfully Setup")
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")
def block(): subprocess.call([r'lib\\spotiblock.bat']) note_alert("Spotify Ads blocked! Please Restart Spotify", "Success!")
def blockupdate(): subprocess.call([r'lib\\blockupdate.bat']) note_alert("Spotify Updates Blocked", "Ok")
def reset(): subprocess.call([r'lib\\reset.bat']) note_alert("Spotify Blocking Reset", "Ok")
def about(): note_alert("""Longhorn is a Windows Debloater made by VincentXII.\n Please read the included "README.md" for more information on Longhorn""")
def services(): p = subprocess.Popen(["powershell.exe", "scripts\\disable-services.ps1"], stdout=sys.stdout) p.communicate() note_alert("Intrusive Services Disabled Successfully")
def restorepoint(): p = subprocess.Popen( ["powershell.exe", "scripts\\create-restore-point.ps1"], stdout=sys.stdout) p.communicate() note_alert("Created Restore Point")
def telemetry(): p = subprocess.Popen(["powershell.exe", "scripts\\block-telemetry.ps1"], stdout=sys.stdout) p.communicate() note_alert("Telemetry Blocked Successfully")
def onedrive(): p = subprocess.Popen(["powershell.exe", "scripts\\remove-onedrive.ps1"], stdout=sys.stdout) p.communicate() note_alert("Onedrive Uninstalled Sucessfully")
def defaultapps(): p = subprocess.Popen( ["powershell.exe", "scripts\\remove-default-apps.ps1"], stdout=sys.stdout) p.communicate() note_alert("Default Apps Removed Successfully")
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")