Skip to content

Commit d4ec3e4

Browse files
committed
Fix Forest
1 parent 97325fc commit d4ec3e4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/public/Remove-ADSISite.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
Write-Verbose "[$FunctionName] Found Credential Parameter"
5050
$ContextSplatting.Credential = $Credential
5151
}
52+
53+
if ($PSBoundParameters['ForestName']){
54+
Write-Verbose "[$FunctionName] Found ForestName Parameter"
55+
$ContextSplatting.ForestName = $ForestName
56+
}
5257
}
5358
process
5459
{

src/public/Remove-ADSISiteSubnet.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
Write-Verbose "[$FunctionName] Found Credential Parameter"
5252
$ContextSplatting.Credential = $Credential
5353
}
54+
55+
if ($PSBoundParameters['ForestName']){
56+
Write-Verbose "[$FunctionName] Found ForestName Parameter"
57+
$ContextSplatting.ForestName = $ForestName
58+
}
5459
}
5560
process
5661
{

0 commit comments

Comments
 (0)