1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Found a solution (Well, CIO did, good on him) The diff tools I was using sucked.
We tried WinMerge and made a JSON file from scratch, but instead of using
[ " write-host STUFF", " write-host "MORESTUFF", " ### SIGNATURE BLOCK STUFF ### ", "" ]
I used \r\n for CRLF's and "",s in place of ""
`
"runCommand": [
"",
"Write-Host Test\r\nWrite-Host Line2\r\nWrite-Host Line3\r\n",
"\r\n# SIG # Begin signature block\r\n# ABCDEFGHJIKLMNOPQRSTUVWXYZ\r\n# etc etc
`
Don't forget to place your Certificate in TrustedPublishers as well, otherwise you'll get a **AuthorizationManager check failed.
- CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException
- FullyQualifiedErrorId : UnauthorizedAccess failed to run commands: exit status 1**
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전