###command line: powershell.exe -ExecutionPolicy Bypass .\\InjectOEMInformation.ps1 -Manufacturer 'Company Name Here' -model 'Windows 8.1 x64 SOE' -SupportHours '07:30 to 16:00' -SupportPhone '07 12346798' -SupportURL 'http://www.my\_company.qld.edu.au/'
PARAM(
    \[string\]$logofile = 'oemlogo.bmp',
    \[string\]$Manufacturer = '',
    #\[string\]$model = '',
    \[string\]$SupportHours = '',
    \[string\]$SupportPhone = '',
    \[string\]$SupportURL = ''
)

#\*\*\* Variables \*\*
$model = (get-wmiobject win32\_computersystem).model
$regfolder = "hklm:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\OEMInformation"
$sys32dir = $env:SystemRoot + "\\system32"

if ((Test-Path -Path ($logofile)) -eq $true)
{
	if ((Test-Path -Path ($sys32dir + "\\$logofile")) -ne $true)
	{
		Copy-Item $logofile -destination $sys32dir 
	}
}
if ($SupportURL.IndexOf('http://') -eq -1) { $SupportURL = 'http://' + $SupportURL }

#\*\* Updating registry
Set-ItemProperty -path $regfolder -name Logo -value ($sys32dir + "\\$logofile")
if ($Manufacturer.Length -gt 0) { Set-ItemProperty -path $regfolder -name Manufacturer -value $Manufacturer }
if ($model.Length -gt 0) { Set-ItemProperty -path $regfolder -name Model -value $model }
if ($SupportHours.Length -gt 0) { Set-ItemProperty -path $regfolder -name SupportHours -value $SupportHours }
if ($SupportPhone.Length -gt 0) { Set-ItemProperty -path $regfolder -name SupportPhone -value $SupportPhone }
if ($SupportURL.Length -gt 0) { Set-ItemProperty -path $regfolder -name SupportURL -value $SupportURL }