Skip to content

Instantly share code, notes, and snippets.

View golflima's full-sized avatar

Jérémy WALTHER golflima

View GitHub Profile
@golflima
golflima / pyuac.py
Last active September 2, 2020 01:17 — forked from Preston-Landers/pyuac.py
pyuac - elevate a Python process with UAC on Windows - Python3 on Win10
#!/usr/bin/env python
# -*- coding: utf-8; mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vim: fileencoding=utf-8 tabstop=4 expandtab shiftwidth=4
"""User Access Control for Microsoft Windows Vista and higher. This is
only for the Windows platform.
This will relaunch either the current script - with all the same command
line parameters - or else you can provide a different script/program to
run. If the current user doesn't normally have admin rights, he'll be