This Vagrantfile is able to configure WinRM automatically on the box distributed by Microsoft. In other words this Vagrantfile is able to:
- Disable firewall (the box distributed by Microsoft is configured with firewall enabled by default);
- Change Network location type to "Work network" (the box distributed by Microsoft is configured as "Public network" by default);
- Enable WinRM.
It was tested only Win10-Stable-MSEdge and Win7-IE11 box provided by Microsoft.
vagrant plugin install vagrant-vbguest
mkdir c:\mybox && cd c:\mybox
git clone https://github.com/danielmenezesbr/modernie-winrm.git .
For IE11-Win7 download the box and unzip it into c:\mybox. If you have curl and 7z, you can do:
curl -LOk http://aka.ms/ie11.win7.vagrant
7z e ie11.win7.vagrant
For MSEdge-Win10-Stable download the box and unzip it into c:\mybox. If you have curl and 7z, you can do:
curl -LOk http://aka.ms/msedge.win10.vagrant
7z e msedge.win10.vagrant
Just for MSEdge-Win10-Stable needs change Vagrantfile as bellow:
First time you need to execute "vagrant up" twice.
vagrant up && vagrant up
Configuration changed after provisioning.
Network location type:
Firewall status:
WinRM: