I'm thinking of getting event logs with Powershell.
If i try to get the event log with the following PowerShell command, access will be denied if"(double quotation) exists in the password.
If the password has "(double quotes), how can I register it in a variable with powershell and execute it?


Host name: TestServer
Connected user: TestUser
Password: TEST01"


wevtutil qe Security/r: TestServer/u: TestUser/p: $LOGIN_PASS/f: XML/c: 10>TEST.xml

If i change the server password to "TEST01" and execute it after editing to assign "TEST01" to the variable ($LOGIN_PASS), you can get the event log without any problem.