1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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**
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 6 mesi fa
- AWS UFFICIALEAggiornata 3 anni fa