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 1
Execute script
SoftwareRat edited this page Mar 31, 2021
·
5 revisions
(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/PostAzureScript/wiki/Server2012WAR"}; New-Item -Path 'C:\AzureTools' -ItemType Directory | Out-Null; [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"; (New-Object System.Net.WebClient).DownloadFile("https://github.com/SoftwareRat/PostAzureScript/archive/refs/heads/main.zip", "C:\AzureTools\PostScript.zip"); Expand-Archive -Path "C:\AzureTools\PostScript.zip" -DestinationPath "C:\AzureTools"; Rename-Item -Path 'C:\AzureTools\PostAzureScript-main' -NewName 'Scripts' -Force; Unblock-File -Path "C:\AzureTools\Scripts\PostNV6.ps1"; Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine -Force; Start-Process -FilePath 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' -ArgumentList '-File ""C:\AzureTools\Scripts\PostNV6.ps1""'; EXIT
- Follow the instructions from the script