Suppress/Workaround: Remote Desktop Connection: A website wants to start a remote connection.

Issue: When you are connecting to an RDP session of Windows systems starting Server 2008 and Vista OSes, you’ll see below prompt that user needs to respond. This is an expected behavior by RDP starting these versions. However, this becomes an issue if you are automating RDP access to the servers via ActiveX or other programming models.   Suppressing above prompt for Automation tasks: Download WASP module files from: Windows Automation Snapin for PowerShell Import the WASP module into the Powershell: PS C:> Import-Module "C:DownloadsWASPWASPWASP.dll" PS C:> Verify that WASP module is loaded fine by running below command: PS C:> […]

Read more

Proof Of Concept Implementation Guide to Clone and Apply changes to VM images in VMware

POC Scope: The goal of this POC is to evaluate automation to clone and apply changes to VM images. So that users from other teams or external customers can apply their changes directly to the VMs and save them for later use.   POC Architecture: POC is built on top of Powershell snapin called “VMware vSphere PowerCLI” for automated communications with VMware infrastructure that is hosting VMs. POC UI is developed in PowerGUI editor to simplify the communication between UI to the backend operations and presenting back their results to the user. A vanilla Windows Server 2008 R2 standalone server […]

Read more

Automating/Scripting VMware VM operations in PowerShell

Connect to your VCenter/VMHost: PowerCLI C:> Connect-VIServer VMHOST01 Specify Credential Please specify server credential User: root Password for user root: ************ Name                           Port  User —-                           —-  —- VMHOST01                       443   root PowerCLI C:>   Know your VMHost hypervisor version running: PowerCLI C:> vmhost | select-object version Version ——- 4.1.0 PowerCLI C:> PowerCLI C:> Get-VMHost | % { (Get-View $_.ID).Config.Product } Name                  : VMware ESXi FullName              : VMware ESXi 4.1.0 build-260247 Vendor                : VMware, Inc. Version               : 4.1.0 Build                 : 260247 LocaleVersion         : INTL LocaleBuild           : 000 OsType                : vmnix-x86 ProductLineId         : embeddedEsx ApiType               : HostAgent ApiVersion            : 4.1 InstanceUuid          : LicenseProductName    […]

Read more