Skip to content

Commit

Permalink
Disabling Windows Firewall
Browse files Browse the repository at this point in the history
  • Loading branch information
divdavem committed Dec 9, 2022
1 parent 8420732 commit 2c39da3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vagrant/win10-chromium-nvda/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Vagrant.configure("2") do |config|
type: "shell",
inline: <<-SHELL
\$ErrorActionPreference = "Stop"
netsh advfirewall firewall add rule name="Allow WinRM" localport=5985 protocol=tcp dir=in action=allow
echo "Disabling Windows Firewall..."
New-NetFirewallRule -DisplayName "Allow all" -Enabled True -Action Allow
echo "Configuring auto-login..."
Set-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon' -Name DefaultUserName -Type String -Value IEUser
Expand Down Expand Up @@ -86,7 +87,6 @@ namespace Win32Api
echo "Installing node.js..."
\$p = Start-Process msiexec.exe -ArgumentList "/I","c:\\vagrant\\software\\node.msi","/quiet" -Wait -NoNewWindow -PassThru
if ( \$p.ExitCode -ne 0 ) { exit \$p.ExitCode }
netsh advfirewall firewall add rule name="Allow nodejs" dir=in action=allow program="c:\\Program Files\\nodejs\\node.exe" enable=yes
\$Env:PATH += ";c:\\Program Files\\nodejs"
echo "Installing assistive-playwright-server..."
Expand All @@ -103,7 +103,6 @@ namespace Win32Api
echo "Installing java..."
Expand-Archive -Path C:\\vagrant\\software\\openjdk.zip -DestinationPath C:\\
netsh advfirewall firewall add rule name="Allow java" dir=in action=allow program="c:\\jdk-17.0.2\\bin\\java.exe" enable=yes
echo "Installing selenium-server..."
Copy-Item "C:\\vagrant\\software\\selenium-server.jar" -Destination C:\\
Expand Down

0 comments on commit 2c39da3

Please sign in to comment.