Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
build:

runs-on: windows-2019
runs-on: windows-latest

steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [pull_request]
jobs:
validate:

runs-on: windows-2019
runs-on: windows-latest

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions DCManagement/DCManagement.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
RootModule = 'DCManagement.psm1'

# Version number of this module.
ModuleVersion = '1.2.25'
ModuleVersion = '1.2.26'

# ID used to uniquely identify this module
GUID = '998b2262-9b38-4b54-8ce6-493a00d70b03'
Expand All @@ -26,7 +26,7 @@
# Modules that must be imported into the global environment prior to importing
# this module
RequiredModules = @(
@{ ModuleName = 'PSFramework'; ModuleVersion = '1.6.198' }
@{ ModuleName = 'PSFramework'; ModuleVersion = '1.13.416' }

# Additional Dependencies, cannot declare due to bug in dependency handling in PS5.1
# @{ ModuleName = 'ResolveString'; ModuleVersion = '1.0.0' }
Expand Down
4 changes: 4 additions & 0 deletions DCManagement/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.2.26 (2025-10-31)

- Upd: Access Rules - Use the shared managed remoting feature, allowing configuring session options.

## 1.2.25 (2021-07-13)

- Upd: Test-DCShare - added message tag DCTarget to allow message level modifiers to raise per-server processing messages.
Expand Down
2 changes: 1 addition & 1 deletion DCManagement/functions/AccessRules/Invoke-DCAccessRule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@

if (-not $psSessions[$testItem.Server])
{
try { $psSessions[$testItem.Server] = New-PSSession -ComputerName $testItem.Server @psCred -ErrorAction Stop }
try { $psSessions[$testItem.Server] = New-AdcPSSession -ComputerName $testItem.Server @psCred -ErrorAction Stop }
catch { Stop-PSFFunction -String 'Invoke-DCAccessRule.Access.Error' -StringValues $testItem.Server -Target $testItem -Continue -EnableException $EnableException -ErrorRecord $_ }
}
$psSession = $psSessions[$testItem.Server]
Expand Down
2 changes: 1 addition & 1 deletion DCManagement/functions/AccessRules/Test-DCAccessRule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
}

Write-PSFMessage -String 'Test-DCAccessRule.Processing' -StringValues $domainController.Name -Target $domainController.Name -Tag DCTarget
try { $psSession = New-PSSession -ComputerName $domainController.Name @psCred -ErrorAction Stop }
try { $psSession = New-AdcPSSession -ComputerName $domainController.Name @psCred -ErrorAction Stop }
catch { Stop-PSFFunction -String 'Test-DCAccessRule.PSSession.Failed' -StringValues $domainController.Name -EnableException $EnableException -Cmdlet $PSCmdlet -Continue -Target $domainController.Name -ErrorRecord $_ }
$accessConfigurations = Get-DCAccessRule | Where-Object {
$_.ServerRole -eq 'ALL' -or
Expand Down