1 Answer
- Newest
- Most votes
- Most comments
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**
answered 2 years ago
Relevant content
- asked 2 years ago
- asked 2 years ago
- Accepted Answerasked 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago