Summary: Cause Windows PowerShell to wait for a specific event to be generated.
How can I make my Windows PowerShell console halt until an event that I registered by using the
Register-CimIndicationEvent cmdlet occurs?
Use the Wait-Event cmdlet and specifiy the source identifier. For example, if you registered
for an event named nq, use the following command:
Wait-Event -SourceIdentifier nq
0 comments