PowerShell: remove or replace quote marks from variable

后端 未结 6 1018
栀梦
栀梦 2021-02-19 02:24

I\'m using Get-EventLog to set a variable, and then setting another variable with the event ID description. I then use blat.exe to email this information to a group.

Th

6条回答
  •  攒了一身酷
    2021-02-19 02:52

    If you use Powershell's built-in send-mailmessage (2.0 required), you can eliminate your dependency on blat.exe and properly handle this issue without editing the description from the event log.

提交回复
热议问题