Quantcast
Channel: AutoSPInstaller
Viewing all articles
Browse latest Browse all 2279

New Post: Problem while installing withnew AutoSpInstaller

$
0
0
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)
{
__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"
}

Viewing all articles
Browse latest Browse all 2279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>