Skip to content

Commit

Permalink
Added ConnectVIARDP.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
DeploymentBunny committed Nov 25, 2016
1 parent 0a88ccd commit cb29257
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Tools/Connect-VIARDP/ConnectVIARDP.psm1
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Function Connect-VIARDP {
<#
.Synopsis
Connect-VIARDP
.DESCRIPTION
Connect-VIARDP
.EXAMPLE
Connect-VIARDP -Connection SERVER01
.NOTES
Created: July 15, 2016
Version: 1.0
Updated: Nov 25, 2016
Version: 1.1
Author - Mikael Nystrom
Twitter: @mikael_nystrom
Blog : http://deploymentbunny.com
Disclaimer:
This script is provided 'AS IS' with no warranties, confers no rights and
is not supported by the author.
.LINK
http://www.deploymentbunny.com
#>
Param
(
[Parameter(Mandatory=$true,
ValueFromPipelineByPropertyName=$true,
Position=0)]
$Connection
)
do
{
$ConTest = (Test-NetConnection -ComputerName $Connection -CommonTCPPort RDP).TcpTestSucceeded
}
until ($ConTest -eq "True")
mstsc.exe /v:$Connection
}

0 comments on commit cb29257

Please sign in to comment.