mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +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() }}
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user