init-node-setup.ps1 1.3 KB

1234567891011121314151617181920212223242526272829
  1. <#
  2. Copyright (c) Contributors to the Open 3D Engine Project.
  3. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. SPDX-License-Identifier: Apache-2.0 OR MIT
  5. #>
  6. # Disable Windows Defender
  7. Set-MpPreference -DisableRealtimeMonitoring $true
  8. # Disable Admin prompts
  9. New-ItemProperty -Path HKLM:Software\Microsoft\Windows\CurrentVersion\policies\system -Name EnableLUA -PropertyType DWord -Value 0 -Force
  10. New-ItemProperty -Path HKLM:Software\Microsoft\Windows\CurrentVersion\policies\system -Name ConsentPromptBehaviorAdmin -PropertyType DWord -Value 0 -Force
  11. # Enable crash reporting (defaults to %LOCALAPPDATA%\CrashDumps as minidumps)
  12. New-Item -Path HKLM:Software\Microsoft\Windows\Windows Error Reporting\LocalDumps
  13. # Increase port number availablity (for P4)
  14. netsh int ipv4 set dynamicport tcp start=1025 num=64511
  15. # Install Chocolatey and Carbon (local user util)
  16. [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  17. $env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.."
  18. Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
  19. choco install Carbon -y
  20. choco install awscli -y
  21. refreshenv