Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zoicware/regapiwrapper
Windows Registry API Functions Wrapped in PowerShell
https://github.com/zoicware/regapiwrapper
Last synced: about 13 hours ago
JSON representation
Windows Registry API Functions Wrapped in PowerShell
- Host: GitHub
- URL: https://github.com/zoicware/regapiwrapper
- Owner: zoicware
- Created: 2024-08-24T17:35:32.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-24T19:01:00.000Z (4 months ago)
- Last Synced: 2024-11-05T15:33:55.057Z (about 2 months ago)
- Language: PowerShell
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Windows Registry API Wrapper
### About
This PowerShell module allows you to easily interact with the [Registry Functions](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry-functions) apart of the advapi32 dll.Current Implemented Functions
- Create-RegKey (RegCreateKeyEx)
- Delete-RegKey (RegDeleteKeyEx)
- Set-RegKeyValue (RegSetValueEx & RegOpenKeyEx)### Usage
Import the module in PowerShell :
```powershell
Import-Module "PATH_TO_MODULE"
```View the module file for a description and examples of usage for each function
### Script Example
```powershellImport-Module 'C:\Users\Admin\Desktop\RegAPIWrapper.psm1' *>$null #suppress warning
#create reg key 'HKLM\Software\TEST'
Create-RegKey -Hive HKLM -Subkey 'Software\TEST'
#add a value to the key
Set-RegKeyValue -Hive HKLM -Subkey 'Software\TEST' -ValueName 'TestKey' -ValueType DWord -ValueData 69
#delete the reg key
Delete-RegKey -Hive HKLM -Subkey 'Software\TEST'```