https://github.com/virtualox/reset-grouppolicy.ps1
Resets the group policy settings on a client to their defaults. A PowerShell version.
https://github.com/virtualox/reset-grouppolicy.ps1
Last synced: 9 days ago
JSON representation
Resets the group policy settings on a client to their defaults. A PowerShell version.
- Host: GitHub
- URL: https://github.com/virtualox/reset-grouppolicy.ps1
- Owner: virtualox
- License: gpl-3.0
- Created: 2023-03-24T12:04:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-24T12:10:32.000Z (about 3 years ago)
- Last Synced: 2023-03-24T12:45:51.669Z (about 3 years ago)
- Language: PowerShell
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Reset Group Policy (PowerShell)
This PowerShell script resets the group policies on a Windows client to their default settings. It also writes an informational event to the Event Viewer.
## Requirements
- Windows operating system
- PowerShell 5.1 or higher
- Administrator privileges
## Usage
1. Open an elevated PowerShell console (Run as Administrator).
2. Navigate to the directory containing the script.
3. Run the script using the following command:
```powershell
.\Reset-GroupPolicy.ps1 [-Verbose] [-Help]
```
## Command-Line options
* `-Verbose`: Enable verbose logging. When this switch is used, the script will print detailed information about its progress to the console.
* `-Help`: Show a help message with a description of the command-line options.
## Example
To run the script with verbose logging, use the following command:
```powershell
.\Reset-GroupPolicy.ps1 -Verbose
```