How to deploy BGinfo sccm 2012 R2? Can users change the background??
Hi
I deployed Bginfo för HP machines I use this site:
http://www.mockbox.net/server-stuff/configmgr-sccm/178-install-bginfo-silently.
But all the computers got a black desktop backgound, :-(
I would like to have the user background or Windows 7 classic...
Help !!!!
-
what or where i need to change?? Do i need to define the backgroung pic? - Avshalom 10 years ago
Answers (2)
'========================================================================================
' BGinfo Installation Script
'========================================================================================
'
' Script Details:
' --------------
' This script copies the BGinfo files to the C:\bginfo folder and sets the run registry key
'========================================================================================
Option Explicit
'Declare Variables and constants
Dim objShell, objFSO, intErrorCode
'Create objects
Set objShell = CreateObject("WScript.Shell")
Set objFSO = createobject("scripting.filesystemobject")
'========================================================================================
'Main body
'========================================================================================
On Error Resume Next
'Create the c:\bginfo folder
If not objFSO.FolderExists("C:\bginfo") Then
objFSO.CreateFolder("C:\bginfo")
End If
'Copy the bginfo files
intErrorCode = intErrorCode + objFSO.CopyFile(objShell.CurrentDirectory & "\Bginfo.exe", "C:\bginfo\")
intErrorCode = intErrorCode + objFSO.CopyFile(objShell.CurrentDirectory & "\wstat.bgi", "C:\bginfo\")
'Add the bginfo shortcut to the run registry key
intErrorCode = intErrorCode + objshell.RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\bginfo", "C:\bginfo\Bginfo.exe /accepteula /ic:\bginfo\wstat.bgi /timer:0", "REG_SZ")
objShell.Run "C:\bginfo\Bginfo.exe /accepteula /ic:\bginfo\wstat.bgi /timer:0"
'Cleanup
Set objShell = Nothing
Set objFSO = Nothing
'return errorcode for install to SCCM
WScript.Quit(intErrorCode)
'=================================================================================
What or where i need to change?