我是python编程的新手,正在尝试使用pywinrm从linux机器编辑位于Windows机器上的powershell文件。
有人可以帮我解决这个问题吗?
Powershell脚本看起来像:
$db_base_path_local = "C:\dev"
$db_base_path_remote = "{{db_base_path_remote}}"
$dwh_sql_instance=".\sql2014"
$sql_remote_machine_name = ""
$remote_machine_user_name=""
$remote_machine_user_password=""
# Target deployed database name
#$pa_db_name = "{{pa_db_name}}"
$pa_db_name = "PA"
# Target deployed database name for the Job Control database
#$jobcontrol_db_name = "{{jobcontrol_db_name}}"
$jobcontrol_db_name ="JobControl"
# SSIS Jobs Path
$SSISPath = $db_base_path_local + "\SSIS"
$SSISPackageExecutable="C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\DTEXEC.EXE"
在这里,我想使用pywinrm编辑“ $ pa_db_name”和“ $ dwh_sql_instance”。
请帮助我!