Hi Waaromikniet,
My config and binaries are hosted on a central server, using version 3.87 I get the security prompt unless I add low risk files to the VM.
I add a PS method to do the change. In AutoSPInstallerMain.ps1 I add the line of code in this section of code:
If (MatchComputerName $farmServers $env:COMPUTERNAME)
{
Function Add-LowRiskFileTypes(){
$Lowriskregpath ="HKCU:\Software\Microsoft\Windows\Currentversion\Policies\Associations"
$Lowriskregfile = "LowRiskFileTypes"
$LowRiskFileTypes = ".exe;.msp;.msi;"
New-Item -Path $Lowriskregpath -erroraction silentlycontinue | Out-null
New-ItemProperty $Lowriskregpath -name $Lowriskregfile -value $LowRiskFileTypes -propertyType String -erroraction silentlycontinue | Out-null
Write-Host "Added Low Risk File Types $LowRiskFileTypes"
}
My config and binaries are hosted on a central server, using version 3.87 I get the security prompt unless I add low risk files to the VM.
I add a PS method to do the change. In AutoSPInstallerMain.ps1 I add the line of code in this section of code:
If (MatchComputerName $farmServers $env:COMPUTERNAME)
{
__Add-LowRiskFileTypes__
...
I then add the Method to AutoSPInstallerFunctionsCustom.ps1 :Function Add-LowRiskFileTypes(){
$Lowriskregpath ="HKCU:\Software\Microsoft\Windows\Currentversion\Policies\Associations"
$Lowriskregfile = "LowRiskFileTypes"
$LowRiskFileTypes = ".exe;.msp;.msi;"
New-Item -Path $Lowriskregpath -erroraction silentlycontinue | Out-null
New-ItemProperty $Lowriskregpath -name $Lowriskregfile -value $LowRiskFileTypes -propertyType String -erroraction silentlycontinue | Out-null
Write-Host "Added Low Risk File Types $LowRiskFileTypes"
}