Actualiser Copy-PowerBGInfoGlobal.ps1
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
# ============================================================
|
# ============================================================
|
||||||
# CONFIG
|
# CONFIG
|
||||||
# ============================================================
|
# ============================================================
|
||||||
$BaseUrl = "https://repo.luckyden.org/admin_tan/PowerBGInfoGlobal/src/branch/main/PowerBGInfoGlobal.zip"
|
$BaseUrl = "https://repo.luckyden.org/admin_tan/PowerBGInfoGlobal/src/branch/main"
|
||||||
|
|
||||||
$ModuleZip = "$env:TEMP\PowerBGInfoGlobal.zip"
|
|
||||||
$ModuleDest = "$Env:ProgramFiles\WindowsPowerShell\Modules"
|
$ModuleDest = "$Env:ProgramFiles\WindowsPowerShell\Modules"
|
||||||
|
|
||||||
$DataPath = "C:\ProgramData\PowerBGInfo"
|
$DataPath = "C:\ProgramData\PowerBGInfo"
|
||||||
@@ -17,7 +16,6 @@ New-Item -Path $DataPath -ItemType Directory -Force | Out-Null
|
|||||||
# ============================================================
|
# ============================================================
|
||||||
# DOWNLOAD
|
# DOWNLOAD
|
||||||
# ============================================================
|
# ============================================================
|
||||||
Invoke-WebRequest "$BaseUrl/PowerBGInfoGlobal.zip" -OutFile $ModuleZip
|
|
||||||
Invoke-WebRequest "$BaseUrl/Set-WallpaperPowerBGInfoGlobal.ps1" -OutFile "$DataPath\Set-WallpaperPowerBGInfoGlobal.ps1"
|
Invoke-WebRequest "$BaseUrl/Set-WallpaperPowerBGInfoGlobal.ps1" -OutFile "$DataPath\Set-WallpaperPowerBGInfoGlobal.ps1"
|
||||||
Invoke-WebRequest "$BaseUrl/Set-ScheduledTaskPowerBGInfo.ps1" -OutFile "$DataPath\Set-ScheduledTaskPowerBGInfo.ps1"
|
Invoke-WebRequest "$BaseUrl/Set-ScheduledTaskPowerBGInfo.ps1" -OutFile "$DataPath\Set-ScheduledTaskPowerBGInfo.ps1"
|
||||||
Invoke-WebRequest "$BaseUrl/img19-resize.jpg" -OutFile $WallpaperPath
|
Invoke-WebRequest "$BaseUrl/img19-resize.jpg" -OutFile $WallpaperPath
|
||||||
@@ -25,7 +23,7 @@ Invoke-WebRequest "$BaseUrl/img19-resize.jpg" -OutFile $WallpaperPath
|
|||||||
# ============================================================
|
# ============================================================
|
||||||
# INSTALL MODULE
|
# INSTALL MODULE
|
||||||
# ============================================================
|
# ============================================================
|
||||||
Expand-Archive $ModuleZip -DestinationPath $ModuleDest -Force
|
Expand-Archive -DestinationPath $ModuleDest -Force
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# CREATE SCHEDULED TASK
|
# CREATE SCHEDULED TASK
|
||||||
|
|||||||
Reference in New Issue
Block a user