mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-08 17:14:28 +01:00
Add open-rdp.ps1
This commit is contained in:
parent
e518b37d92
commit
580275de6e
@ -1958,9 +1958,7 @@ OSI,Open Systems Interconnection
|
||||
OSP,online service provider
|
||||
OSP,Open Settlement Protocol
|
||||
OSPF,Open Shortest Path First
|
||||
OSS,Online Service System
|
||||
OSS,open source software
|
||||
OSS,operational support system
|
||||
OSS,"Online Service System, Open Source Software, Operational Support System, Off-the-shelf Software Support"
|
||||
OTA,Over the Air
|
||||
OTC,order to cash
|
||||
OTCR,On-Time delivery performance to Customer Request Date
|
||||
|
|
@ -3643,7 +3643,7 @@ OSOTPBOIAS,"One Sec,On The Phone,Be Off In A Sec"
|
||||
OSPA,Operations Security Professional's Association site of OSPA
|
||||
OSPA,Oregon School Psychologists Association [3]
|
||||
OSRH,Oružane Snage Republike Hrvatske (en: Armed forces of the Republic of Croatia)
|
||||
OSS,Office of Strategic Services (1942-1945,forerunner of CIA)
|
||||
OSS,"Office of Strategic Services (1942-1945, forerunner of CIA)"
|
||||
OSU,"Ohio State University,Oklahoma State University"
|
||||
OTA,"Office of Technology Assessment, Orthodontic Technicians Association"
|
||||
OTAC,"Orthodontic Technicians Association Conference,Orthodontic Technicians Association Council"
|
||||
|
Can't render this file because it has a wrong number of fields in line 7.
|
21
Scripts/open-rdp.ps1
Normal file
21
Scripts/open-rdp.ps1
Normal file
@ -0,0 +1,21 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Opens the RDP app
|
||||
.DESCRIPTION
|
||||
This script launches the Remote Desktop Protocol (RDP) application.
|
||||
.EXAMPLE
|
||||
PS> ./open-rdp.ps1
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
param([string]$hostname = "")
|
||||
|
||||
if ($hostname -eq "") {
|
||||
& Start-Process "$env:windir\system32\mstsc.exe"
|
||||
} else {
|
||||
& Start-Process "$env:windir\system32\mstsc.exe" -ArgumentList "/v:$hostname"
|
||||
}
|
||||
exit 0 # success
|
Loading…
Reference in New Issue
Block a user