1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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**
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 4 mois
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an