Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mranv/execremotesigned
A Rust program to set the PowerShell execution policy to RemoteSigned, enabling the execution of local unsigned and remote signed scripts on Windows. Requires administrative privileges.
https://github.com/mranv/execremotesigned
rust rust-lang win-api windows windowsregistry
Last synced: 3 days ago
JSON representation
A Rust program to set the PowerShell execution policy to RemoteSigned, enabling the execution of local unsigned and remote signed scripts on Windows. Requires administrative privileges.
- Host: GitHub
- URL: https://github.com/mranv/execremotesigned
- Owner: mranv
- Created: 2024-07-13T12:47:57.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-15T07:59:30.000Z (4 months ago)
- Last Synced: 2024-07-15T09:33:14.848Z (4 months ago)
- Topics: rust, rust-lang, win-api, windows, windowsregistry
- Language: Rust
- Homepage:
- Size: 445 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`execRemoteSigned` is a Rust program designed to set the PowerShell execution policy to `RemoteSigned`. This allows local unsigned scripts and remote signed scripts to be executed on a Windows system. The program ensures compatibility with various Windows versions and includes necessary safety checks.
## Features
- **Windows Version Detection**: Uses the `GetVersionExW` API to detect Windows versions, ensuring compatibility with Windows XP, 7, 8, 8.1, 10, and 11.
- **Registry Operations**: Interacts with the Windows Registry to set the PowerShell execution policy.
- **Error Handling**: Includes error handling for potential failures, such as inability to open/create the registry key or set the execution policy value.
- **Administrative Privileges Required**: The binary must be run with administrative privileges to modify the registry.## Installation
1. **Clone the Repository**:
```bash
git clone https://github.com/mranv/execRemoteSigned.git
cd execRemoteSigned
```2. **Build the Project**:
Ensure you have Rust and Cargo installed. Then run:
```bash
cargo build --release
```## Usage
1. **Run the Program**:
Execute the binary with administrative privileges to modify the registry:```bash
./target/release/execRemoteSigned
```This will set the PowerShell execution policy to `RemoteSigned`.
## Contribution
Contributions are welcome! Follow these steps to contribute:
1. **Fork the Repository**:
Click on the `Fork` button at the top right of the repository page.2. **Clone Your Fork**:
```bash
git clone https://github.com/your-username/execRemoteSigned.git
cd execRemoteSigned
```3. **Create a Branch**:
```bash
git checkout -b feature/your-feature-name
```4. **Make Changes and Commit**:
```bash
git commit -m "Add your feature description"
```5. **Push to Your Fork**:
```bash
git push origin feature/your-feature-name
```6. **Create a Pull Request**:
Open a pull request from your fork's branch to the main repository.## Contact
For any issues or questions, please open an issue on GitHub or contact the repository owner.
---
© 2024 mranv. All rights reserved.