How can I configure every user that logs into my Terminal Server to get an updated “Force Offscreen

Here is another script. There is a known issue with Internet Explorer that causes the screen to flicker on Terminal Services. The recommended registry update is to set the key: HKCU\Software\Microsoft\Internet Explorer\Main\Force Offscreen Composition to Reg_DWord = 1. What makes this script a bit interesting is that it takes care of all your user updates through a couple of automated steps.
First, it adds a call to a vbs script into your usrlogn2.cmd that is run every time your users login.
Second, It creates that vb script and puts it into your .\Application Compatibility Scripts\Logon folder.
Third, it calls the chkroot command to allow you to set a rootdrive and run your logon compatibility scripts.
Run this script, set your rootdrive when prompted, and save the file, and the rest is ready for your users to login.
' ' '===============================================================================================================
' ' ' Situation: Registry Update- Screen May Flicker Using Internet Explorer 5.5 SP1 or greater on Terminal Services.
' ' ' Reference: Microsoft Knowledge Base Q271246: Screen May Flicker Using Internet Explorer on Terminal Services
' ' ' Reference: Compaq CUSTOMER ADVISORY: DB010412_CW01: Animated Content May Flicker When Using IE5.5 on T1010 Over Terminal Services
' ' ' Special Notes:
' ' ' This script is different because the key that needs to be modified is in the HKCU hive. Since this is not loaded
' ' ' into the registry until the user logs on, the modification has to occur in a script at or after logon. In this case
' ' ' I choose to use vbscript to spawn the chkroot.cmd to establish the rootdrive, enter a call statement into usrlogn2.cmd,
' ' ' and dynamically create the logon script that will live in the application compatibility scripts folder.
' ' ' provided by RATokeshi www.tokeshi.com
' ' ' created 010501 2015
' ' ' edited 030603 2007
' ' '---------------------------------------------------------------------------------------------------------------
' ' 'To make debugging easier use the Explicit declaraton of variables option. This section is
' ' ' included if this is to be snipped for stand alone code. If Option Explicit has not been
' ' ' enabled un-comment the following line.
Option Explicit 'Does not allow variables that are not declared using the Dim or Const statements to be used.
' ' '
' ' 'If the WScript.Shell object has not ben instanced, un-comment the following 3 lines.
Dim objFileSysObj, objShell, strLogonCompScriptLoc, strExpandedLogonCompScriptLoc, objTextFile, strParenLine, strLogonCompScriptFOCLoc, strExpandedLogonCompScriptFOCLoc, strChkRoot, strExpandChkRoot, intReturn
Set objFileSysObj = CreateObject("Scripting.FileSystemObject") 'Establish the WScript.Scripting object: FileSystemObject
Set objShell = CreateObject("WScript.Shell")
' ' '
' ' ' Add line into UsrLogn2.cmd to call logon compatibility script
strLogonCompScriptLoc="%SystemRoot%\System32\UsrLogn2.Cmd"
strExpandedLogonCompScriptLoc = objShell.ExpandEnvironmentStrings(strLogonCompScriptLoc)
Set objTextFile = objFileSysObj.OpenTextFile(strExpandedLogonCompScriptLoc, 8, True)
objTextFile.WriteLine("call ForceOffscreenComposition.vbs")
objTextFile.Close
' ' '
' ' ' Create Logon Compatibility Script in systemroot ACS folder
strParenLine = "Set Shell = CreateObject" & "(" & """" & "WScript.Shell" & """" & ")"
strLogonCompScriptFOCLoc="%SystemRoot%\Application Compatibility Scripts\Logon\ForceOffscreenComposition.vbs"
strExpandedLogonCompScriptFOCLoc = objShell.ExpandEnvironmentStrings(strLogonCompScriptFOCLoc)
Set objTextFile = objFileSysObj.OpenTextFile(strExpandedLogonCompScriptFOCLoc, 8, True)
objTextFile.WriteLine("' ' '===============================================================================================================")
objTextFile.WriteLine("' ' ' Situation: Registry Update- Screen May Flicker Using Internet Explorer 5.5 SP1 or greater on Terminal Services.")
objTextFile.WriteLine("' ' ' Reference: Microsoft Knowledge Base Q271246: Screen May Flicker Using Internet Explorer on Terminal Services")
objTextFile.WriteLine("' ' ' Reference: Compaq CUSTOMER ADVISORY: DB010412_CW01: Animated Content May Flicker When Using IE5.5 on T1010 Over Terminal Services ")
objTextFile.WriteLine("' ' ' provided by RATokeshi www.tokeshi.com")
objTextFile.WriteLine("' ' ' edited 010501 2015")
objTextFile.WriteLine("' ' '---------------------------------------------------------------------------------------------------------------")
objTextFile.WriteLine("' ' 'To make debugging easier use the Explicit declaraton of variables option. This section is")
objTextFile.WriteLine("' ' ' included if this is to be snipped for stand alone code. If Option Explicit has not been")
objTextFile.WriteLine("' ' ' enabled un-comment the following line. ")
objTextFile.WriteLine("Option Explicit 'Does not allow variables that are not declared using the Dim or Const statements to be used.")
objTextFile.WriteLine("' ' 'If the WScript.Shell object has not ben instanced, un-comment the following 2 lines.")
objTextFile.WriteLine("Dim Shell 'This establishes the variable Shell that will become the WScript.Shell object.")
objTextFile.WriteLine strParenLine
objTextFile.WriteLine("' '")
objTextFile.WriteLine("' ' ' Create and set value for the the Force Offscreen Composition Key")
objTextFile.WriteLine("Const Reg_ForceOffscreenComposition = " & """" & "HKCU\Software\Microsoft\Internet Explorer\Main\Force Offscreen Composition" & """" & "'Set constant as the registry path to the desired key.")
objTextFile.WriteLine("Shell.RegWrite" & "(" & "Reg_ForceOffscreenComposition" & ")" & ", " & """" & "1" & """" & ", " & """" & "REG_DWORD" & """" & "' Write new value to registry.")
objTextFile.WriteLine("' MsgBox Shell.RegRead" & "(" & "Reg_ForceOffscreenComposition" & ")" & "'This provides the administrator with key enumeration/ verification.")
objTextFile.WriteLine("' '")
objTextFile.WriteLine("' ' '===============================================================================================================")
objTextFile.Close
' ' '
' ' ' launch chkroot.cmd to ensure that rootdrive variable is set for substitution
strChkRoot = "%systemroot%\Application Compatibility Scripts\chkroot.cmd"
strExpandChkRoot = objShell.ExpandEnvironmentStrings("""" & strChkRoot & """")
intReturn = objShell.Run(strExpandChkRoot, 1, True)
Go to the downloads page to download this script.



Primary links

Custom Search

Who's new

  • Choodogek
  • zepsleltpap
  • layersepavy
  • moneytome12
  • maczugaher

Who's online

There are currently 0 users and 4 guests online.

KrissysCorner.com RuthSwensonLaw.com CreativeLizardProductions.com

DISCLAIMER:

None of this has anything to do with us, someone else is responsible for the entire thing, and we have no idea who or why. We do not know anything about it. It may be alien life forms for all we know: we haven't a clue. You cannot blame us for anything that may result from your visit. That was entirely your own personal choice, made by you of your own volition, and without our knowledge. We do not, after all, have any control over you and cannot by any stretch of the imagination be expected to accept or acknowledge, be it legally or morally, any accountability for decisions made by you on an independent basis, utilizing your own free will, and without our intervention. We are therefore in no way, shape, or form answerable to anyone for any consequences arising from the aforementioned or indeed any other actions, similar or otherwise, because it was not us that did, or did not do anything. It is not even remotely our fault, and we are in no way prepared or willing to accept any liability, not even slightly, ever. We are, in fact completely and utterly blameless, in that it is definitely not our concern, and no blame can possibly be laid at our doorstep, even if we had one, the possession of which we hereby reserve as being entirely our own free choice. The onus is not on us at all, and furthermore, never has been. The entire matter is wholly beyond our control, and completely out of our hands, each of which are washed scrupulously clean of the whole business. We are not accountable for anything at all, and we hereby categorically deny all responsibility for all that has ever, or will ever happen. Our innocence is therefore wholly beyond doubt and absolutely unimpeachable, and so cannot, under even the remotest or unlikeliest circumstances, be brought into question. By clicking either on a link on this site, clicking on a link that leads to this site, or by arriving at this site by natural or supernatural means, you are in effect accepting responsibility for the fact that it is all entirely your own fault, down to the most miniscule detail, and that you are wholly accountable for whatever outcome may arise as a consequence of the aforementioned action or actions insofar as they were undertaken personally by you on an entirely voluntary basis and without any persuasion, coercion or influence from any party or parties other than yourself. Don't come sniveling to us, we are only figments of your imagination. I also agree that if I am ever with a contributor to this website during mealtimes I agree to pay for any super-sizing of their meal, or at least a nice dessert or one of those foo-foo drinks with an umbrella or a monkey. By admitting to have seen the worthless spineless drivel on this website (also known as content)

I Agree Wholeheartedly and Without Reservation to the above. (Except maybe for that part about the monkey.)

All Your Base Are Belong To Us.

Soylent Green Is People!

Never make a bet with a Sicilian when Death is on the Line!

No. Really, I do agree.