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:
Shawn Neal 2014-04-24 08:03:05 -07:00
parent 045e06455a
commit 1dd081d866
1 changed files with 2 additions and 2 deletions

View File

@ -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"