HancomAC / InitCom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InitCom

Set-ExecutionPolicy Unrestricted

$scriptUrl = "https://raw.githubusercontent.com/HancomAC/InitCom/main/final.ps1"
$destination = "c:\test.txt"
$scriptName = "c:\test.ps1"

Invoke-WebRequest $scriptUrl -OutFile $destination -Headers @{"Cache-Control"="no-cache"}

# if the file was downloaded, delete the old script file and rename the new
# file
if(test-path $destination){
    remove-item $scriptName
    Rename-Item $destination $scriptName
}

&$scriptName

About


Languages

Language:PowerShell 100.0%