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
This repository was archived by the owner on Jun 29, 2023. It is now read-only.
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|