Created
March 4, 2017 17:59
-
-
Save gpduck/1cdc1c7c1083da829ac6e7b0268f9c6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$RemoteComputer = "remotecomputer" | |
Invoke-Command -Computer $RemoteComputer -ScriptBlock { import-module bitstransfer; get-module bitstransfer; } | |
$S = New-PSSession -Computer $RemoteComputer | |
Invoke-Command -Session $S -ScriptBlock { Import-Module bitstransfer} | |
Invoke-Command -Session $S -ScriptBlock { get-Module bitstransfer} | |
Remove-PSSession $S |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment