General Discussion

Powershell cmdlets for event generate

Abhishar
1,181 Views

Hi,

 

I need help, need to run the below command in powershell.

 

event generate -node segotx01-01 -message-name tcpip.duplicate.ip -values 0.0.0.0 0.0.0.0

 

Please help

1 REPLY 1

donny_lang
1,142 Views

I was not able to find a PowerShell cmdlet in the Toolkit that satisfies your requirement, but you could run the native command using the "Invoke-NcSsh" cmdlet, like this: 

 

Invoke-NcSsh -Command "set d; y; event generate -node segotx01-01 -message-name tcpip.duplicate.ip -values 0.0.0.0 0.0.0.0"

 

 

Public