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() }}
run: |
$ConfigPath = "$PSHOME\powershell.config.json"
$list = New-Object System.Collections.ArrayList
$list = "BestPractices","UpdateServices"
$ConfigJSON = ConvertTo-Json -InputObject @{
"Microsoft.PowerShell:ExecutionPolicy" = "RemoteSigned",
"WindowsPowerShellCompatibilityModuleDenyList" = [
"BestPractices",
"UpdateServices"
]
"WindowsPowerShellCompatibilityModuleDenyList" = $list
}
$ConfigJSON | Out-File -Force $ConfigPath