Jump to content

Recommended Posts

Posted

you can make a vbscript that un registers the windows picture and fax viewer dll silently and also enable windows classic shell so that if they select an image they dont get the shortcut on the left pane to set the image as a background image.

 

regsvr32 -u %windir%\system32\shimgvw.dll

Posted

i got the command slightly wrong, its supposed to have a /u /s

 

/u for un registering it and /s for silent so it does not prompt them

 

also that just greys out the set as background and set as desktop image or w/e options you get in ms paint.

 

I knew about resource hacker but didnt realise there was a tutorial on how to re compile mspaint to completely get rid of those options.

  • 6 months later...
Guest monkeyx
Posted

We had an issue this term with pupils using Picture and Fax Viewer to set their own wallpaper! In a previous ghost image I think we must have unregistered the dll associated with it, but forgot this time.

 

Anyhow the the vbs script below deletes the following Registry Key. [HKEY_CLASSES_ROOT\SystemFileAssociations\image\ShellEx\ContextMenuHandlers\ShellImagePreview]

 

I placed the script computers startup script (via GPO) and it has stopped the issue for us.

 

' Simple script to disable extended right click menu options
' in Windows Picture and Fax Viewer. Posted by tim @ monkeyx.net
DelRegKey ( "SystemFileAssociations\image\ShellEx\ContextMenuHandlers\ShellImagePreview")

Function DelRegKey (keyPath)
Const HKEY_CLASSES_ROOT  = &H80000000
strComputer = "."
	Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ 
strComputer & "\root\default:StdRegProv")
oReg.DeleteKey HKEY_CLASSES_ROOT,keyPath
End Function

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...