mimikatz icon indicating copy to clipboard operation
mimikatz copied to clipboard

can't find a syntax to call Mimikatz from the command line with embedded quotes

Open rick-engle opened this issue 1 year ago • 1 comments

I'd like to pass all of these commands to Mimikatz as command line arguments, but I can't figure out how to wrap one of the parameters so that it is handled properly:

mimikatz.exe privilege::debug sid::patch sid::add /sam:jeffl /new:"Domain Admins" exit

The /new:"Domain Admins" is what I am having problems with. The Domain Admins group has a space in it so I need to wrap it in quotes. But mimikatz does not parse the properly and breaks the command link flow.

Is there a way to properly pass embedded or escaped quotes so that the command line succeeds?

Thanks.

rick-engle avatar Mar 28 '23 23:03 rick-engle