Skip to content
This repository was archived by the owner on May 22, 2022. It is now read-only.

Execute script

SoftwareRat edited this page Mar 31, 2021 · 5 revisions

Execute script on Azure

(When you have Server 2012 R2, visit THIS first)

  1. Use AnyDesk, TeamViewer or VNC, but not RDP for driver reasons
  2. Open elevated Windows PowerShell
  3. 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
  1. Follow the instructions from the script
Clone this wiki locally