Installing screensaver on Client PC

(imported topic written by SystemAdmin)

Hi

I have made an exe for installing screensaver from jpg images when ever i deploy the exe it prompts client to click on install.

I even tried /s & /qn while deploying but of no use.

Can we transfer 4 to 5 images to client pc’s on a particular folder via a single task

Awaiting your reply

(imported comment written by SystemAdmin)

Here’s the process we use successfully:

  1. Compile images into a .scr file with a screensaver utility (we use Screensaver Factory)

  2. Use Bigfix to deploy the .scr file to the client machines.

  3. Use a GPO to set the client screensaver parameters and point to the <yourfilename.scr>.

(imported comment written by gjeremia91)

Have you considered using the software distribution wizard?

You can point it at a folder of images to combine into a single “.tmp” file (consider it a zip file).

the wizard will ask you for a command to install, just leave it as setup.exe

When the software distribution wizard finished, edit the fixlet, and remove the “waithidden __Download\setup.exe” (after the “extract .tmp”

and instead just move your jpegs to the required directory with the action command move, or:

waithidden cmd.exe /c move /Q /F “{client folder of site “actionsite”}__Download*.jpg” “”

Aakashk

Hi

I have made an exe for installing screensaver from jpg images when ever i deploy the exe it prompts client to click on install.

I even tried /s & /qn while deploying but of no use.

Can we transfer 4 to 5 images to client pc’s on a particular folder via a single task

Awaiting your reply

(imported comment written by SystemAdmin)

Hi,

I have created a task which is successfull deployed on clients which is as below

download http://server ip:port/Uploads/2cb9976eb94fe64392813263a0c398390348eb94/file.tmp

continue if {(size of it = 1034203 AND sha1 of it = “2cb9976eb94fe64392813263a0c398390348eb94”) of file “file.tmp” of folder “__Download”}

extract file.tmp

copy “__Download\file.scr” “c:\windows\system32\file.scr”

But now the issue is to trigger it from the registry which i am unable to get

The registry key is as follow

HKEY_CURRENT_USER\Control Panel\Desktop & string value “SCRNSAVE.EXE”=“file path”

Instance no 1

The issue is if any other screensaver is set then the value of SCRNSAVE.EXE does not change I used the following action to do the change but in vain

action uses wow64 redirection false

delete __appendfile

delete wizardedit.reg

appendfile Windows Registry Editor Version 5.00

appendfile

appendfile

HKEY_CURRENT_USER\Control Panel\Desktop

appendfile “SCRNSAVE.EXE”=“C:\WINDOWS\system32\file.scr”

move __appendfile wizardedit.reg

waithidden regedit /s “wizardedit.reg”

Also if screensaver is not set then the string SCRNSAVE.EXE is not present in registry the above action does not work

Can anyone help me to get out of this issue

How can I set this task in one action successfully

Awaiting your reply

Thanks in advance.

(imported comment written by gjeremia91)

You have an issue with user context.

When BigFix runs a Fixlet/Task/Action it’s running as the System user, so you’re changing the HKCU of “NT Authority\System”, and not the currently logged in user.

Option 1

There is a utility available through teh bigfix support pages called “RunAsCurrentUser”.

You will include a download for it, just below your current download is fine (with another continue if statement). It can be as the .exe, so no .tmp extraction is required, then you can change:

waithidden regedit /s “wizardedit.reg”

to

waithidden runascurrentuser.exe /w /q “{pathname of windows folder}\regedit.exe” /s “{name of client folder of site “actionsite”}\wizardedit.reg”

Option 2

Don’t edit HKCU. Edit HKEY_sers. Not an option for all items in this area, but I think that the users screensaver settings can be affected there.

“” “ScreenSaverIsSecure”=“1”

and (for setting as a policy)

“” “ScreenSaverIsSecure”=“1”

e.g.

“” “ScreenSaverIsSecure”=“1”

(imported comment written by SystemAdmin)

Can anyone guide me with this as i am getting confused right now.

over here what my action script should be like as its still not working while setting the registry

download http://Server ip:port/Uploads/2cb9976eb94fe64392813263a0c398390348eb94/file.tmp

continue if {(size of it = 1034203 AND sha1 of it = “2cb9976eb94fe64392813263a0c398390348eb94”) of file “file.tmp” of folder “__Download”}

extract ubiscr.tmp

copy “__Download\file.scr” “c:\windows\system32\file.scr”

regset “” “SCRNSAVE.EXE”=“C:\WINDOWS\system32\file.scr”

waithidden regedit /s “wizardedit.reg”

uptill copying is concerned its fine but not in setting registry parameter

If possible can u rectify my above action to clear this thing up

(imported comment written by gjeremia91)

You are trying to use regset AND regedit.exe /s. Use one or the other (recommend regedit.exe)

Try:

download http://Server ip:port/Uploads/2cb9976eb94fe64392813263a0c398390348eb94/file.tmp
continue if {(size of it = 1034203 AND sha1 of it = “2cb9976eb94fe64392813263a0c398390348eb94”) of file “file.tmp” of folder “__Download”}

extract ubiscr.tmp
copy “__Download\file.scr” “{pathname of system folder}\file.scr”

delete __appendfile
delete scrn.reg
appendfile Windows Registry Editor Version 5.00
appendfile
appendfile
appendfile “SCRNSAVE.EXE”="{escape of pathname of system folder}\file.scr"
appendfile
move __appendfile scrn.reg
waithidden “{pathname of windows folder}\regedit.exe” /s “{pathname of client folder of site “actionsite”}\scrn.reg”

I just tested it on my system and it works just fine.

(imported comment written by SystemAdmin)

HI Gjeremia,

Thanks for the provided solution but here also i am getting stuck up in the last line tried these three options

Option 1 only

Action site

waithidden “c:\windows\system32\regedit.exe” /s “SCRNSAVER.EXE\scrn.reg” it is getting failed

Option 2 only

File path

waithidden “c:\windows\system32\regedit.exe” /s “c:\windows\system32\file.scr\scrn.reg” it is getting failed

Option 3 with

path & action site

waithidden “c:\windows\system32\regedit.exe” /s “C:\WINDOWS\system32\file.scr"SCRNSAVE.EXE”\scrn.reg" it is getting failed

(imported comment written by gjeremia91)

When you say your action failed, it would be helpful if you could pull the lines from the client log that shows WHY it failed.

Also note that you wrote

Aakashk

Option 2 only File path

waithidden “c:\windows\system32\regedit.exe” /s “c:\windows\system32\file.scr\scrn.reg” it is getting failed

but I wrote

waithidden “{pathname of windows folder}\regedit.exe” /s “…scrn.reg”

  1. It appears you are hard-coding pathnames, probably not a good idea.

  2. regedit.exe should be in the windows folder not the system folder

Assuming the download file is “ubiscr.tmp” and it contains “ubi.scr” and you included the correct sha1, this can be run with NO changes (not even to the IP/port because your BES Server will perform the download, no one else, and it gets the file from itself (at 127.0.0.1)):

download http://127.0.0.1:52311/Uploads/2cb9976eb94fe64392813263a0c398390348eb94/ubiscr.tmp
continue if {(size of it = 1034203 AND sha1 of it = “2cb9976eb94fe64392813263a0c398390348eb94”) of file “ubiscr.tmp” of folder “__Download”}

extract ubiscr.tmp
delete "{pathname of system folder}\ubi.scr"
copy “__Download\ubi.scr” “{pathname of system folder}\ubi.scr”

delete __appendfile
delete “{pathname of system folder}\scrn.reg"
appendfile Windows Registry Editor Version 5.00
appendfile
appendfile
appendfile “SCRNSAVE.EXE”=”{escape of pathname of system folder}\ubi.scr"
appendfile
move __appendfile "{pathname of system folder}\scrn.reg"
waithidden “{pathname of windows folder}\regedit.exe” /s “{pathname of system folder}\scrn.reg”

if the above fails:

1 please include the client log.

2 check that “C:\Windows\System32\scrn.reg” exists

3 check that “C:\Windows\System32\ubi.scr” exists

4 check that “C:\Windows\regedit.exe” exists

(imported comment written by SystemAdmin)

Hi Gjeremia,

Wish you happy New Year

The action worked fine this time.

Thanks for your support

(imported comment written by SystemAdmin)

Hi,

I am stuck in the relevance for the screen saver

(name of operating system = “WinME” OR name of operating system = “Win2000” OR name of operating system = “WinXP” OR name of operating system = “WinXP-2003” OR name of operating system = “Win2003” OR (name of it = “WinVista” and product type of it = nt workstation product type) of operating system OR (name of it = “Win2008” or (name of it = “WinVista” and product type of it != nt workstation product type)) of operating system) AND ((not exists key “HKEY_CURRENT_USER\Control Panel\Desktop” whose (exists value “SCRNSAVE.EXE” whose (it as string = “C:\WINDOWS\system32\myscreensaver.scr”) of it) of native registry))

this is what my relevance is.

Here the issue is in some PC the screensaver which i deployed is present but then also it shows as this machine is relevent for this task.

Please guide me where in this relevance issue is present

(imported comment written by akies91)

hi there,

i copy all the script like above, but still have an error on registry key.

now im seeking your advise.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

download http://192.168.1.67:52311/Uploads/ae5d80bbe6cb9bfbd04c1721640ac52dd9d0b802/PhotoScreensaverscr.tmp

continue if {(size of it = 296103 AND sha1 of it = “ae5d80bbe6cb9bfbd04c1721640ac52dd9d0b802”) of file “PhotoScreensaverscr.tmp” of folder “__Download”}

extract PhotoScreensaverscr.tmp

delete “{pathname of system folder}\PhotoScreensaver.scr”

copy “__Download\PhotoScreensaver.scr” “{pathname of system folder}\PhotoScreensaver.scr”

delete __appendfile

delete “{pathname of system folder}\scrn.reg”

appendfile Windows Registry Editor Version 5.00

appendfile

appendfile “SCRNSAVE.EXE”="{escape of pathname of system folder}\PhotoScreensaver.scr"

appendfile

move __appendfile “{pathname of system folder}\scrn.reg”

waithidden “{pathname of windows folder}\regedit.exe” /s “{pathname of system folder}\scrn.reg”

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

(imported comment written by jessewk)

Looks pretty good to me. What’s the error message you are getting?

(imported comment written by akies91)

akies

hi there,

i copy all the script like above, but still have an error on registry key.
now im seeking your advise.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

download http://192.168.1.67:52311/Uploads/ae5d80bbe6cb9bfbd04c1721640ac52dd9d0b802/PhotoScreensaverscr.tmp
continue if {(size of it = 296103 AND sha1 of it = “ae5d80bbe6cb9bfbd04c1721640ac52dd9d0b802”) of file “PhotoScreensaverscr.tmp” of folder “__Download”}

extract PhotoScreensaverscr.tmp
delete "{pathname of system folder}\PhotoScreensaver.scr"
copy “__Download\PhotoScreensaver.scr” “{pathname of system folder}\PhotoScreensaver.scr”

delete __appendfile
delete "{pathname of system folder}\scrn.reg"
appendfile Windows Registry Editor Version 5.00


<<It’s failed, start from here>>_________________________

appendfile
appendfile “SCRNSAVE.EXE”="{escape of pathname of system folder}\PhotoScreensaver.scr"
appendfile
move __appendfile "{pathname of system folder}\scrn.reg"
waithidden “{pathname of windows folder}\regedit.exe” /s “{pathname of system folder}\scrn.reg”

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

May i know why?

thanks a lot

(imported comment written by jessewk)

There probably is no logged in user. You should add ‘exists current user’ to the applicability relevance.

(imported comment written by akies91)

Hi there,

this is my relevence, now my status become not relevent

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

(name of it = “Win95” OR name of it = “Win98” OR name of it = “WinME” OR name of it = “WinNT” OR name of it = “Win2000” OR name of it = “WinXP” OR name of it = “Win2003” OR (name of it = “WinVista” and product type of it = nt workstation product type) OR (name of it = “Win2008” or (name of it = “WinVista” and product type of it != nt workstation product type)) OR (name of it = “Win7”) AND (exists regapp “besclient.exe” whose (version of it >= “7.2.4.60”)) OR name of it = “WinXPe”) of operating system AND (((exists key “Software\Policies\Microsoft\Windows\Control Panel\Desktop” of it AND exists key “Control Panel\Desktop” whose (value “ScreenSaverIsSecure” of it != “1” OR value “ScreenSaveActive” of it != “1”) of it) of key whose ((it = name of current user as lowercase OR it starts with name of current user as lowercase & “@”) of (it as string as lowercase) of value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it) of key “HKEY_USERS” of registry) OR (exists value “SCRNSAVE.EXE” whose (it as string = “C:\WINDOWS\system32\PhotoScreensaver.scr”) of key (“HKEY_USERS” & (name of key whose (value “Logon User Name” of key “Explorer” of key “CurrentVersion” of key “Windows” of key “Microsoft” of key “Software” of it as string as lowercase = name of current user as string as lowercase) of key “HKEY_USERS” of registry) & “\Control Panel\Desktop”) of registry)) AND true