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