Powershell : OpsMgr : SCOM 2012 Prereqs Powershell
Start-Transcript -Path c:transcript0.txt -noclobber # This scripts needs unrestricted access Write-Host "This scripts needs unrestricted access (Set-ExecutionPolicy Unrestricted.)" -ForegroundColor Green Write-Host "The prereq setup for System Center 2012 R2 Operations Manager takes around 15 minutes depending on your internet speed" -ForegroundColor Green # Setting the variables. $folderpath0 = 'C:Source' $ShareName = "Source$" #Check if folder exists, if not, create it if (Test-Path $folderpath0){ Write-Host "The folder $folderPath0 exists." } else{ Write-Host "The folder $folderPath0 does not exist, creating..." -NoNewline New-Item $folderpath0 -type directory | Out-Null Write-Host "done!" -ForegroundColor Green } # Check if file exists, if not, download it $file0 = $folderPath0+"SQLSysClrTypes.msi" $file1 = $folderPath0+"Reportviewer.msi" if (Te...