Page 1 of 1 1
Topic Options
#176650 - 2007-05-31 10:21 PM Internet Explorer Settings
Gaven Offline
Starting to like KiXtart
*

Registered: 2003-06-19
Posts: 103
Loc: Washinton DC, USA
This isn't a questions specific to KiXtart but this forum has a lot of bright people on it so I figured I'd put this question here.

I want to write a UDF to adjust a couple internet explorer settings - don't ask me why I can't do it through group policy that's a big point of contention. Most settings I can adjust easily through the registry but a couple I cannot. Most notably, I want to be able to programmically adjust the amount of space allotted for temporary files.

Does anybody know of a way to adjust these settings either through an internet explorer object or WMI?

Thanks in advance.

Top
#176651 - 2007-05-31 10:36 PM Re: Internet Explorer Settings [Re: Gaven]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
I did some experimenting on my system and it looks like this setting is controlled by the registry key below. I'm running on Win XP Pr SP2 and IE7. I'm not sure if this is the same for all IE versions.

 Quote:

Key: HKU\[user's SID goes here]\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content
Value: CacheLimit


Edited by Mart (2007-05-31 10:38 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176676 - 2007-06-01 12:55 PM Re: Internet Explorer Settings [Re: Mart]
BradV Offline
Seasoned Scripter
****

Registered: 2006-08-16
Posts: 687
Loc: Maryland, USA
It's the same with IE 6 SP1 on w2k.

Regards,

Brad V

Top
#176683 - 2007-06-01 04:47 PM Re: Internet Explorer Settings [Re: BradV]
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
This isn't all that trivial. The changes must be done in 2 registry keys, both values must match, and both values must be an even Mb value.

These settings aren't supported by default via group policies (not even for IE7, which sux), but I've written my own ADM for this. Note that these settings are "tatooing" - ie, if you remove the policy, the settings won't be removed. But that's the case with normal registry editing too...

From this GPO you can see how changing the cache size works:

 Quote:

;===============================================================================
;=== ADM NAME: IE Cache Settings
;=== LOCATiON: User Configuration\Administrative Templates\
;=== Windows Components\Internet Explorer\Cache Settings
;=== TATOOiNG: Yes (Preference)
;=== DESCRiPTiON: ADM to handle the Internet Explorer cache settings.
;=== AUTHOR: masken - mastermasken@lycos.com
;=== DATE: 2006-08-15
;=== FiLENAME: ie_cache_settings.adm
;=== PURPOSE: IE cache settings aren't covered by the standard ADM's. The
;=== standard Windows setting often causes fragmented hdd's and
;=== slow page loading times. If you've got a decent broadband,
;=== it is recommended to set the cache to 30-50mb.
;=== DEPENDENCiES: WinXP/Srv 2003+
;=== COMMENTS: * Please note that the GPO cache value must be set to an
;=== even Mbyte value. For instance, if you wish to set the
;=== users values to 50Mb, then you must enter "5120" as the
;=== GPO value. Otherwise, it will not work. The values for
;=== IE 5.x and General must also be set to the exact same
;=== even Mb value.
;=== * This is a "tatooing" setting, which means that there's no
;=== real policy support for the corresponding registry hive. In
;=== effect, this means that if the policy is removed, the
;=== clients settings will not be reverted.
;=== * To see tatooing settings in the Group Policy Object Editor,
;=== you need to uncheck View > Filtering... >
;=== [ ] Only show policy settings that can be fully managed.
;=== REViSiONS: Rev 00: Initial version.
;=== TODO: ---
;===============================================================================

CLASS USER

CATEGORY !!Cat_WindowsComponents
CATEGORY !!Cat_InternetExplorer
CATEGORY !!Cat_IE_Cache

POLICY !!Pol_IE_Cache_Size
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Internet Settings"
#if version >= 4
SUPPORTED !!Sup_Text
#endif

EXPLAIN !!Exp_IE_Cache_Size
PART !!Lbl_IE_Cache_Size
TEXT
END PART
PART !!Lbl_Blank TEXT
END PART
PART !!PolPart_IE5_CacheSizeInKB
NUMERIC
MIN 1024
MAX 102400
DEFAULT 51200
VALUENAME "CacheLimit"
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content"
END PART

PART !!PolPart_IE_CacheSizeInKB
NUMERIC
MIN 1024
MAX 102400
DEFAULT 51200
VALUENAME "CacheLimit"
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content"
END PART
END POLICY

POLICY !!Pol_IE_Cache_Location
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
#if version >= 4
SUPPORTED !!Sup_Text
#endif
EXPLAIN !!Exp_IE_Cache_Location
PART !!Lbl_IE_Cache_Location
TEXT
END PART
PART !!Lbl_Blank
TEXT
END PART
PART !!PolPart_Cache_Location
EDITTEXT
VALUENAME "Cache"
DEFAULT "%USERPROFILE%\Lokala inställningar\Temporary Internet Files"
END PART
END POLICY

POLICY !!Pol_IE_Empty_Cache_on_Exit
KEYNAME "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache"
VALUENAME "Persistent"
EXPLAIN !!Exp_IE_Empty_Cache_on_Exit
VALUEON NUMERIC 0
VALUEOFF NUMERIC 1
END POLICY

END CATEGORY
END CATEGORY
END CATEGORY

[STRINGS]
Cat_WindowsComponents="Windows Components"
Cat_InternetExplorer="Internet Explorer"
Cat_IE_Cache="Cache Settings"
Sup_Text="At least Microsoft Windows XP Professional or Windows Server 2003 family,\nwith Internet Explorer v5.01 or higher."
Pol_IE_Cache_Size="Change Internet Explorer cache size"
Exp_IE_Cache_Size="Maximum cache size in even Mb, specified in kilobytes (ie, 50mb equals 51200 kilobytes) for Internet Explorer. Note that the kilobyte value must match an even Megabyte value or the setting will not go in effect.\n\nThe two different cache size limits (first is for IE 5.x, second general) must be set to the same value (both must be set for IE to read the setting).\n\nMinimum is 1024kb and maximum 102400.\n\nOnly use a higher cache value if you're on a slow Internet Connection. Also keep in mind that a large cache causes hard drive defragmentation, often leading to longer loading time from the local hard drive than from a broadband Internet connection."
Lbl_IE_Cache_Size="Set the cache size in even Mb's, specified in kilobytes (both matching):"
Lbl_Blank=" "
PolPart_IE5_CacheSizeInKB="Internet Explorer 5.x:"
PolPart_IE_CacheSizeInKB="Internet Explorer general:"

Pol_IE_Cache_Location="Change Internet Explorer cache folder location"
Exp_IE_Cache_Location="Specify a path for the Cache folder (Temporary Internet Files). Note that the default value entered in this policy is for Swedish Windows. For English Windows, the default path is %USERPROFILE%\Local Settings\Temporary Internet Files."
Lbl_IE_Cache_Location="Specify the location of the Cache folder:"
PolPart_Cache_Location="Path:"

Pol_IE_Empty_Cache_on_Exit="Empty Temporary Internet Files folder when browser is closed"
Exp_IE_Empty_Cache_on_Exit="It is generally not recommended to empty the Temporary Internet Files when closing Internet Explorer. It could be useful for Terminal Services Servers, public computers or large roaming profiles.\n\nIf you're activating/reducing the cache size limit, then it could also be useful to temporarily activate this setting to clear old cache files on the clients and thereby freeing disk space. \n\nKeeping this setting disabled prevents Internet Explorer from persistenly downloading frequently accessed web content."
PolPart_IE_Empty_Cache_on_Exit="Enable this setting:"


Edited by masken (2007-06-04 03:35 PM)
_________________________
The tart is out there

Top
#176685 - 2007-06-01 05:08 PM Re: Internet Explorer Settings [Re: masken]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Maybe quote tags instead of code tags would solve the long line problem.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#176727 - 2007-06-04 03:36 PM Re: Internet Explorer Settings [Re: Les]
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
 Originally Posted By: Les
Maybe quote tags instead of code tags would solve the long line problem.

Yes, but it breaks indenting instead ;\)

This forum sux... most modern one's has a maximum row-length...
_________________________
The tart is out there

Top
#176731 - 2007-06-04 05:56 PM Re: Internet Explorer Settings [Re: masken]
Iffin Offline
Fresh Scripter

Registered: 2005-02-22
Posts: 5
Loc: Hampshire, UK
For those interested, you could try using the following add-on to the Group Policy Management Console:-

http://www.desktopstandard.com/PolicyMakerRegistryExtension.aspx

This allows for the modification of any registry entry you specify.

So the above could be set via a group policy, but of course it's much fun creating the script....

Top
#176732 - 2007-06-04 06:05 PM Re: Internet Explorer Settings [Re: Iffin]
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Downside is that it requires a client install.
_________________________
The tart is out there

Top
#176734 - 2007-06-04 07:11 PM Re: Internet Explorer Settings [Re: masken]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
If it's the long line I think you're talking about it is due to Internet Explorer's interpretation of CSS rules. If you use FireFox 2.x you should not see any long lines when using the CODE TAGS as it will all be contained within a scrolling Window that does not go off screen.
The people over on UBB have attempted to provide fixes for IE but it really is a problematic browser for CSS which has become the defacto standard for most sites now days.

Not sure what you mean by a "max" length as I would not want the software to give me a break where I did not place one. That just attempts to treat the user like a MAC user and make it conform to some view they may or may not want. If the user wanted to have like some sort of word wrap that could be set on their own settings then maybe, but not as a default way of viewing input.

Top
#176738 - 2007-06-05 09:31 AM Re: Internet Explorer Settings [Re: NTDOC]
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
@Doc, that is because Firefox treats forms and controls differently and doesn't allow them over the browser border I think.

VBulletin and Invisionboard for example, has AdminCP rules that lets you define the maximum width of rows and controls the width wether in quote, code, or plain forum post.


Edited by masken (2007-06-05 09:32 AM)
_________________________
The tart is out there

Top
#176744 - 2007-06-05 09:56 AM Re: Internet Explorer Settings [Re: masken]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
No those should be controlled by CSS (Firefox obeys the W3C standards and Internet Explorer does not) VBulletin and Invisionboard if they overwrite these standards are in fact NOT being modern, they too are acting like Internet Explorer and using their own ideas/methods instead which is wrong.

UBB is attempting to follow the W3C standards and where possible implement known "hacks" to try and get Internet Explorer to obey the rules as best as possible. IE7 is much better but still quite a ways off from obeying the standards.

Top
#176748 - 2007-06-05 11:48 AM Re: Internet Explorer Settings [Re: NTDOC]
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Are you sure about this? Don't think CSS has any rules for maximum table lengths which is what this is about?
_________________________
The tart is out there

Top
#176749 - 2007-06-05 11:52 AM Re: Internet Explorer Settings [Re: masken]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
I'm not a mod so it might not be up to me to say this but maybe this has gone a bit off topic and has nothing to do with the original question?
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176750 - 2007-06-05 12:05 PM Re: Internet Explorer Settings [Re: Mart]
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
original what?

stfu, we're trying to solve a problem here ;\)

j/k
_________________________
The tart is out there

Top
#176751 - 2007-06-05 12:13 PM Re: Internet Explorer Settings [Re: masken]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
\:o
I though Gaven asked a normal question and several possible answers are posted. I guess I was wrong. No need to be rude and tell me to shut the fuck up.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176752 - 2007-06-05 01:17 PM Re: Internet Explorer Settings [Re: Mart]
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
I'm just kidding (j/k) like I told you in the above thread ;\) stfu is a common 'net abbrevation and doesn't have it's "literal" meaning \:\)
_________________________
The tart is out there

Top
#176756 - 2007-06-05 02:15 PM Re: Internet Explorer Settings [Re: masken]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Ok. I didn't get the j/k part and over here if you tell someone the stfu they usually are a bit offended :p

I just took it the wrong way I guess. Maybe getting told to stfu (even if it’s not meant that hard) when the day started out as a f#cked up day will have some influence in the way one responds.

No hard feelings \:\)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176760 - 2007-06-05 02:24 PM Re: Internet Explorer Settings [Re: Mart]
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
phew hehe \:\) glad you took it the right way m8! \:\) I would never actually tell anyone to do that. Well maybe the lonk :p
_________________________
The tart is out there

Top
#176780 - 2007-06-06 03:39 AM Re: Internet Explorer Settings [Re: masken]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
CSS does not do tables and the code here on UBB (in my theme) is using a mix of CSS control and Table control (A lot of work but they should try to just get rid of the Tables all together and only use CSS (IMHO)).


Regardless both are NOT Modern fixes, methods, etc... they are old school methods and workarounds instead of taking the time to properly code it in pure CSS/AJAX

I know that UBB is starting to look at doing some Ajax but my guess is that it won't be pure and will continue to be a bit problematic for a while.

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.147 seconds in which 0.062 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org