1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
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**
respondido há 2 anos
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos