Don't use interpolated strings for username and password
Its possible that usernames and passwords may contain special characters like $
This commit is contained in:
parent
045e06455a
commit
1dd081d866
|
@ -1,6 +1,6 @@
|
|||
$command = "<%= options[:command] %>"
|
||||
$user = "<%= options[:username] %>"
|
||||
$password = "<%= options[:password] %>"
|
||||
$user = '<%= options[:username] %>'
|
||||
$password = '<%= options[:password] %>'
|
||||
|
||||
$task_name = "WinRM_Elevated_Shell"
|
||||
$out_file = "$env:SystemRoot\Temp\WinRM_Elevated_Shell.log"
|
||||
|
|
Loading…
Reference in New Issue