Powershell – Copy files from UNC and elevate to get rights
Install.ps1 $identity = [Security.Principal.WindowsIdentity]::GetCurrent() $principal = new-object Security.Principal.WindowsPrincipal $identity if ($principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) -eq $false) { $psArgs = ’-noprofile -nologo -executionpolicy bypass […]
