Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What about ssh only ? #5

Open
clement-igonet opened this issue Jan 15, 2018 · 1 comment
Open

What about ssh only ? #5

clement-igonet opened this issue Jan 15, 2018 · 1 comment

Comments

@clement-igonet
Copy link

Do you mean ssh service is available in modern.ie VM by default ?
If so, why not rely only on it. I mean, without winrm ?

@xuhcc
Copy link

xuhcc commented Jun 11, 2019

Yes, it is possible to use only SSH for Windows 7 box. Here is my version of ie-box-automation-plugin.rb: https://gist.github.com/xuhcc/17cd857891b1e46573894d849f399a2b

With this plugin you can run shell-like script using the following directive in Vagrantfile:

config.vm.provision "winssh", type: "ie_box_automation", script: "vagrant/windows_install.sh"

Example of script:

echo "Disabling Auto Update..."
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 00000001 /f

echo "Disabling Windows Defender..."
sc config WinDefend start= disabled
sc stop WinDefend

echo "Disabling Firewall..."
netsh advfirewall set allprofiles state off

echo "Installing Chocolatey..."
powershell -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"

echo "Installing DirectX..."
PATH="$PATH;$ALLUSERSPROFILE\chocolatey\bin" choco install -y directx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants