Reorganisation of the setup
- Autounattend files moved to Autounattend folder - WDAC files moved to WDAC folder - Added WDAC check to setupScript - Moved RDP to setupRDP - Moved Activate to setupActivate - Added online setup of Office with offline fallback - Changed setupUsers to be more standard and allow customisation - Added rastop setup
This commit is contained in:
10
setupReg.ps1
10
setupReg.ps1
@@ -52,7 +52,7 @@ function SetRegistry {
|
||||
}
|
||||
}
|
||||
|
||||
function SetupEleveReg {
|
||||
function SetupUserReg {
|
||||
param (
|
||||
[string] $username
|
||||
)
|
||||
@@ -103,12 +103,4 @@ function SetupEleveReg {
|
||||
} else {
|
||||
Write-Host "Unable to get the user's HKU registry."
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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