Good Morning All,
I have been working on a powershell script to change the date on our cs1000 pbx. I am able to login to the Linux bash but once the cslogin command is executed the script hangs, however if I hit the enter key I get into the cslogin console. I have attached a screenshot.
Anyone knows why the script hangs? Any helpful feedback would be greatly appreciated.
Here's my script:
I have been working on a powershell script to change the date on our cs1000 pbx. I am able to login to the Linux bash but once the cslogin command is executed the script hangs, however if I hit the enter key I get into the cslogin console. I have attached a screenshot.
Anyone knows why the script hangs? Any helpful feedback would be greatly appreciated.
Here's my script:
Code:
$username = "user"
$password = "pass"
$hostname = "192.168.1.x"
C:\plink.exe -ssh -l $username -pw $password $hostname "cslogin"