Skip to content

Commit 0b92f07

Browse files
author
William Lam
committed
Updated VMKeystrokes.ps1 to publish to PS Gallery
1 parent 3dd0c92 commit 0b92f07

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

powershell/VMKeystrokes.ps1

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
Function Set-VMKeystrokes {
1+
<#PSScriptInfo
2+
.VERSION 1.0.0
3+
.GUID 4b78ccc0-dfb5-44bb-b550-1cfb0b194585
4+
.AUTHOR William Lam
5+
.COMPANYNAME VMware
6+
.COPYRIGHT Copyright 2020, William Lam
7+
.TAGS VMware ScanCode
8+
.LICENSEURI
9+
.PROJECTURI https://github.com/lamw/vghetto-scripts/blob/master/powershell/VMKeystrokes.ps1
10+
.ICONURI https://blogs.vmware.com/virtualblocks/files/2018/10/PowerCLI.png
11+
.EXTERNALMODULEDEPENDENCIES
12+
.REQUIREDSCRIPTS
13+
.EXTERNALSCRIPTDEPENDENCIES
14+
.RELEASENOTES
15+
1.0.0 - Initial Release
16+
.PRIVATEDATA
17+
.DESCRIPTION This function sends a series of character keystrokse to a particular vSphere VM
18+
#>
19+
Function Set-VMKeystrokes {
220
<#
321
.NOTES
422
===========================================================================
@@ -7,8 +25,6 @@
725
Blog: www.virtuallyghetto.com
826
Twitter: @lamw
927
===========================================================================
10-
.DESCRIPTION
11-
This function sends a series of character keystrokse to a particular VM
1228
.PARAMETER VMName
1329
The name of a VM to send keystrokes to
1430
.PARAMETER StringInput
@@ -17,15 +33,12 @@
1733
Enable debugging which will output input charcaters and their mappings
1834
.EXAMPLE
1935
Set-VMKeystrokes -VMName $VM -StringInput "root"
20-
2136
Push "root" to VM $VM
2237
.EXAMPLE
2338
Set-VMKeystrokes -VMName $VM -StringInput "root" -ReturnCarriage $true
24-
2539
Push "root" with return line to VM $VM
2640
.EXAMPLE
2741
Set-VMKeystrokes -VMName $VM -StringInput "root" -DebugOn $true
28-
2942
Push "root" to VM $VM with some debug
3043
===========================================================================
3144
Modified by: David Rodriguez
@@ -45,9 +58,7 @@
4558
Keyboard Up, Down, Left Right
4659
.EXAMPLE
4760
Set-VMKeystrokes -VMName $VM -SpecialKeyInput "F2"
48-
4961
Push SpecialKeyInput F2 to VM $VM
50-
5162
#>
5263
param(
5364
[Parameter(Mandatory = $true)][String]$VMName,

0 commit comments

Comments
 (0)