mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
debug update powershell.config.json
This commit is contained in:
7
.github/workflows/golang-test-windows.yml
vendored
7
.github/workflows/golang-test-windows.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user