psievm is a powershell module for automating an IE Virtual Machine quickly and without hassle to help make cross browser testing easier. This will do all the steps needed to get the VM running.
- Install the VM Host (if needed, and supported)
- Download the VM image
- Extract the image
- Import the image to VirtualBox
- Take the initial snapshot
- Start the VM Host with the VM
From PowerShell console:
PS > iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/camalot/psievm/master/psievm/psievm.package/tools/chocolateyInstall.ps1"));
From command console:
C:\> @powershell -NoProfile -ExecutionPolicy -ByPass -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/camalot/psievm/master/psievm/psievm.package/tools/chocolateyInstall.ps1'))"
From Powershell Gallery:
Installing modules from the Powershell Gallery requires the latest version of the PowerShellGet module, which is available in Windows 10, in Windows Management Framework (WMF) 5.0 or from the PackageManagement PowerShell Modules Preview.
Inspect:
PS > Save-Module -Name psievm -Path <path>
Install:
PS > Install-Module -Name psievm
Chocolatey:
> choco install psievm
PS > Import-Module psievm
PS > Get-IEVM -OS XP -IEVersion 6
Name | Required | Type | Default | Description |
---|---|---|---|---|
OS | YES | String | [Empty] | The Windows OS Version |
IEVersion | YES | String | [Empty] | The IE Version |
Shares | NO | String[] | [Empty] | |
AlternateVMLocation | NO | String | [Empty] | The alternate location to use to find the VM images |
VMHost | NO | String | VirtualBox | The VM Host |
IgnoreInvalidMD5 | NO | Switch | $False | If the script should ignore failed MD5 hash validation |
VMRootPath | NO | String | $PWD | The location to put the VM images |
PS > Update-PSIEVM
This will update your installed version of PSIEVM by getting the latest release that is available on GitHub. Once there is a "non-pre-release" version There will be an option to get the latest pre-release.
This is the version of the OS that you want hosted and the version of Internet Explorer / Edge you want with it. Here are the supported values:
IE 6 | IE 7 | IE 8 | IE 9 | IE 10 | IE 11 | MS Edge | Requires 64-bit Emulation | |
---|---|---|---|---|---|---|---|---|
XP | X | X | ||||||
Vista | X | |||||||
Win7 | X | X | X | X | ||||
Win8 | X | |||||||
Win8.1 | X | X | ||||||
Win10 | X | X |
- VirtualBox [default]
- If not installed, chocolatey will be used to install VirtualBox, and the Guest Additions.
End of support is coming for older versions of Internet Explorer.
Beginning January 12, 2016, only the current version of Internet Explorer available for a supported operating system will receive technical support and security updates. Microsoft recommends that customers running older versions of Internet Explorer upgrade to the most recent version, which is Internet Explorer 11 on Windows 7, Windows 8.1, and Windows 10.
For a complete list of browser/OS combinations supported after January 12, 2016, please see the Microsoft Support Lifecycle FAQ for Internet Explorer.