This repository was archived by the owner on May 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Execute script
SoftwareRat edited this page May 3, 2021
·
1 revision
(When you have Server 2012 R2, visit THIS first)
- Use AnyDesk, TeamViewer or VNC, but not RDP for driver reasons
- Open elevated Windows PowerShell
- Copy paste this into PowerShell:
IF ($PSVersionTable.PSVersion.Major -le 4) {throw "PowerShell version outdated, please see Server 2012 R2 workarround in GitHub", "https://github.com/SoftwareRat/PostAWSScript/wiki/Server2012WAR"}; New-Item -Path 'C:\AWSTools' -ItemType Directory | Out-Null; [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"; (New-Object System.Net.WebClient).DownloadFile("https://github.com/SoftwareRat/PostAWSScript/archive/refs/heads/main.zip", "C:\AWSTools\PostScript.zip"); Expand-Archive -Path "C:\AWSTools\PostScript.zip" -DestinationPath "C:\AWSTools"; Rename-Item -Path 'C:\AWSTools\PostAWSScript-main' -NewName 'Scripts' -Force; Unblock-File -Path "C:\AWSTools\Scripts\PostNV6.ps1"; Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine -Force; Start-Process -FilePath 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' -ArgumentList '-File ""C:\AWSTools\Scripts\PostNV6.ps1""'; EXIT
- Follow the instructions from the script