run_as_task


Namerun_as_task JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/th-yoo/run_as_task
Summary`run_as_task` is a Python package that allows scripts to escalate their privileges to Administrator (Local Service) without requiring UAC approval.
upload_time2024-10-07 11:13:51
maintainerNone
docs_urlNone
authorth yoo
requires_python<4.0,>=3.9
licenseMIT
keywords admin windows elevation privileges task scheduler
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # run\_as\_task
**run_as_task** is a Python package that allows scripts to escalate their privileges to Administrator (Local Service) on Windows, without requiring UAC approval. This project is a port of AHK [RunAsTask](https://www.autohotkey.com/boards/viewtopic.php?f=83&t=119710).

## Installation
```powershell
PS > pip install run_as_task
```

## Usage
Here is a basic example of how to use `run_as_task` to run the Windows Registry Editor (`regedit`) with escalated privileges:

```python
# regedit.py
from run_as_task import run_as_task
import subprocess

run_as_task()
subprocess.Popen(['regedit'], creationflags=subprocess.CREATE_NO_WINDOW)
```

### Important Notes
1. **First Run Setup**: When you run the script for the first time, `run_as_task` will register the script as a Windows Scheduled Task to allow for escalated execution. This initial setup will prompt you for UAC (User Account Control) permissions.

2. **Subsequent Runs**: After the initial setup, running the script again will not prompt for UAC. Instead, it will trigger the scheduled task to run with escalated privileges.

To execute the script, use the following command in PowerShell:
```powershell
PS > pythonw regedit.py
```

## License
This project is licensed under the MIT License. See the LICENSE file for details.

## Contact
For any questions or support, please reach out to me via [GitHub Issues](https://github.com/th-yoo/run_as_task/issues).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/th-yoo/run_as_task",
    "name": "run_as_task",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "admin, windows, elevation, privileges, task scheduler",
    "author": "th yoo",
    "author_email": "taihyungyoo@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f8/d0/34605e5ac072b12c808dc48720c75fb8177937aa1983be8ef2a6bd7f9b59/run_as_task-0.1.4.tar.gz",
    "platform": null,
    "description": "# run\\_as\\_task\n**run_as_task** is a Python package that allows scripts to escalate their privileges to Administrator (Local Service) on Windows, without requiring UAC approval. This project is a port of AHK [RunAsTask](https://www.autohotkey.com/boards/viewtopic.php?f=83&t=119710).\n\n## Installation\n```powershell\nPS > pip install run_as_task\n```\n\n## Usage\nHere is a basic example of how to use `run_as_task` to run the Windows Registry Editor (`regedit`) with escalated privileges:\n\n```python\n# regedit.py\nfrom run_as_task import run_as_task\nimport subprocess\n\nrun_as_task()\nsubprocess.Popen(['regedit'], creationflags=subprocess.CREATE_NO_WINDOW)\n```\n\n### Important Notes\n1. **First Run Setup**: When you run the script for the first time, `run_as_task` will register the script as a Windows Scheduled Task to allow for escalated execution. This initial setup will prompt you for UAC (User Account Control) permissions.\n\n2. **Subsequent Runs**: After the initial setup, running the script again will not prompt for UAC. Instead, it will trigger the scheduled task to run with escalated privileges.\n\nTo execute the script, use the following command in PowerShell:\n```powershell\nPS > pythonw regedit.py\n```\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n## Contact\nFor any questions or support, please reach out to me via [GitHub Issues](https://github.com/th-yoo/run_as_task/issues).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "`run_as_task` is a Python package that allows scripts to escalate their privileges to Administrator (Local Service) without requiring UAC approval.",
    "version": "0.1.4",
    "project_urls": {
        "Homepage": "https://github.com/th-yoo/run_as_task"
    },
    "split_keywords": [
        "admin",
        " windows",
        " elevation",
        " privileges",
        " task scheduler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "25d5e44f7fa94cbb217c80fdbb3c9850c4b72cff2a663b28a3f78c6b11cee0d2",
                "md5": "acb51b55daa900fd19f826a196b7cb99",
                "sha256": "ee08fa49ca8f23d8aca19116ef9def028125ed4a738929e991f5ce895f3dd487"
            },
            "downloads": -1,
            "filename": "run_as_task-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "acb51b55daa900fd19f826a196b7cb99",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 5193,
            "upload_time": "2024-10-07T11:13:50",
            "upload_time_iso_8601": "2024-10-07T11:13:50.331859Z",
            "url": "https://files.pythonhosted.org/packages/25/d5/e44f7fa94cbb217c80fdbb3c9850c4b72cff2a663b28a3f78c6b11cee0d2/run_as_task-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f8d034605e5ac072b12c808dc48720c75fb8177937aa1983be8ef2a6bd7f9b59",
                "md5": "ddc05180d7199339d9ead72095f989ee",
                "sha256": "bf8e040a6e3b44591dd772bc9101904556ca59ac115e0548a095e2305fa4cb33"
            },
            "downloads": -1,
            "filename": "run_as_task-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "ddc05180d7199339d9ead72095f989ee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 4568,
            "upload_time": "2024-10-07T11:13:51",
            "upload_time_iso_8601": "2024-10-07T11:13:51.619518Z",
            "url": "https://files.pythonhosted.org/packages/f8/d0/34605e5ac072b12c808dc48720c75fb8177937aa1983be8ef2a6bd7f9b59/run_as_task-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-07 11:13:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "th-yoo",
    "github_project": "run_as_task",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "run_as_task"
}
        
Elapsed time: 0.33662s