Separate package with ps1 script only

This commit is contained in:
seerge
2023-02-14 23:03:02 +01:00
parent c9e25b6358
commit 23405632ad
7 changed files with 60 additions and 24 deletions

13
events.ps1 Normal file
View 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) {
}