I have the following problem: I created a powershell script that copies the sccm client setup to C:\windows\temp. Then it is supposed to run the sccm setup.
I run the script from our management server. The files are copied, ccmsetup.exe starts, and then quits with the following error in the ccmsetup.log:
[LOG[File 'C:\Windows\ccmsetup\Silverlight.exe' with hash '8C5D1DDAEFD629670033841FB88188789F2F63170B2FE1AADDB2C9B33D4532EA' from manifest doesn't match with the file hash 'E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855']LOG]!>
I aslo see this error in the security eventlog: event ID 4763 audit failure SeTCBPrivilege
Now when I run the same powershell script locally in powershell on the server, everything is fine, no errors, script finishes.
So it probably has something to do with remoting or whatsoever, I just cannot find out what to do. Most people use side wide client push but that is not an option in our environment. I have searched and searched and just cannot find a script that does this. How hard can it be? I hope any of you guys can get me on track with this!
Here is the script I use:
# Vraag naar de naam van server$ServerName = Read-Host 'Wat is de naam van de server?'
#Kopieer de SCCM 2012 Client installatie folder naar TEMP
Copy-item "\\yadayadayada\install\ServerInstall\SCCM2012R2Client_5.00.7958.1000" -container -recurse \\$ServerName\c$\windows\temp\
#Start de installatie van SCCM Client
Invoke-Command -Computername $ServerName -ScriptBlock {
Start-process "C:\windows\temp\SCCM2012R2Client_5.00.7958.1000\ccmsetup.exe" -argumentlist "SMSSITECODE=FSP" -Wait}
if ($setup.exitcode -eq 0) {
$result = "Successfully installed the SCCM 2012 Client"
}
else
{
$Result = "Installation of SCCM 2012 Client Failed"
}
Write-Host $result
#Output naar outputfile op de de beheershare
"Computer name: $ServerName Result: $result"| Out-File -FilePath \\yadayada\install\ServerInstall\Output\ServerFinalConfigLog_"$ServerName".txt
Thanks in advance!