Skip to content

Commit

Permalink
adding named paramerter to import-module
Browse files Browse the repository at this point in the history
  • Loading branch information
SSvilen committed Apr 16, 2020
1 parent 4309bab commit 2a69010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Modules/xExchangeHelper/xExchangeHelper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function Get-RemoteExchangeSession
}
}

Import-Module $script:DSCExchangeModulePath\$script:DSCExchangeModuleName.psm1 -ArgumentList $session -Global -DisableNameChecking -Force
Import-Module -Name $script:DSCExchangeModulePath\$script:DSCExchangeModuleName.psm1 -ArgumentList $session -Global -DisableNameChecking -Force
}
}

Expand Down Expand Up @@ -221,7 +221,7 @@ function Import-RemoteExchangeModule
)

Export-PSSession -Session $Session -OutputModule $script:DSCExchangeModulePath
Import-Module $script:DSCExchangeModulePath -Global -DisableNameChecking -Function $CommandsToLoad
Import-Module -Name $script:DSCExchangeModulePath -Global -DisableNameChecking -Function $CommandsToLoad
}

<#
Expand Down

0 comments on commit 2a69010

Please sign in to comment.