PowerShell script error: the string is missing the terminator:

前端 未结 2 1699
说谎
说谎 2021-01-12 23:34

Incredibly simple powershell script...

#Server side storage copy

$SourceStorageAccount = \"myStorageAccount\"
$SourceStorageKey = \"myKey\"

$SourceStorageC         


        
2条回答
  •  [愿得一人]
    2021-01-13 00:16

    It's similar with this question.

    When you copy cmdlets from Web, maybe there are some special characters. I suggest you could copy the cmdlets to Notepad then copy to PowerShell.

    It's helpful to use cat filename.ps1 in the terminal you can see determine which characters are bad, it's not obvious in the editor.

提交回复
热议问题