More output
This commit is contained in:
@@ -32,6 +32,7 @@ function InstallOffice {
|
|||||||
$mountResult = Mount-DiskImage -ImagePath $imagePath -PassThru
|
$mountResult = Mount-DiskImage -ImagePath $imagePath -PassThru
|
||||||
$driveLetter = ($mountResult | Get-Volume).DriveLetter
|
$driveLetter = ($mountResult | Get-Volume).DriveLetter
|
||||||
$setupPath = Join-Path $driveLetter "\Office\Setup64.exe"
|
$setupPath = Join-Path $driveLetter "\Office\Setup64.exe"
|
||||||
|
Write-Host "Office setup path: $setupPath"
|
||||||
Start-Process -FilePath $setupPath -Wait
|
Start-Process -FilePath $setupPath -Wait
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Office setup files not found."
|
Write-Host "Office setup files not found."
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ function SetupEleveReg {
|
|||||||
|
|
||||||
|
|
||||||
function EnableRDP {
|
function EnableRDP {
|
||||||
|
Write-Host "Enabling RDP..."
|
||||||
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" -Value 0
|
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" -Value 0
|
||||||
Enable-NetFirewallRule -Group "@FirewallAPI.dll,-28752"
|
Enable-NetFirewallRule -Group "@FirewallAPI.dll,-28752"
|
||||||
|
Write-Host "RDP enabled."
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user