mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Separate package with ps1 script only
This commit is contained in:
13
events.ps1
Normal file
13
events.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
Get-EventSubscriber | Unregister-Event
|
||||
|
||||
|
||||
$ProcessAsusWmiEvent = {
|
||||
$event_id = $Event.SourceEventArgs.NewEvent.EventID
|
||||
Write-Host $event_id
|
||||
}
|
||||
|
||||
Register-CimIndicationEvent -Namespace root\wmi -query "Select * From AsusAtkWmiEvent" ` -sourceIdentifier "GHAsus" ` -action $ProcessAsusWmiEvent
|
||||
|
||||
while (1) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user