debug update powershell.config.json

This commit is contained in:
Maycon Santos
2023-04-08 22:19:11 +02:00
parent 4c9fc9850c
commit b6aafd8f09

View File

@@ -54,12 +54,11 @@ jobs:
if: ${{ always() }} if: ${{ always() }}
run: | run: |
$ConfigPath = "$PSHOME\powershell.config.json" $ConfigPath = "$PSHOME\powershell.config.json"
$list = New-Object System.Collections.ArrayList
$list = "BestPractices","UpdateServices"
$ConfigJSON = ConvertTo-Json -InputObject @{ $ConfigJSON = ConvertTo-Json -InputObject @{
"Microsoft.PowerShell:ExecutionPolicy" = "RemoteSigned", "Microsoft.PowerShell:ExecutionPolicy" = "RemoteSigned",
"WindowsPowerShellCompatibilityModuleDenyList" = [ "WindowsPowerShellCompatibilityModuleDenyList" = $list
"BestPractices",
"UpdateServices"
]
} }
$ConfigJSON | Out-File -Force $ConfigPath $ConfigJSON | Out-File -Force $ConfigPath