Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Re: HTML & VBScript -> security problem!?

Reply
 
Old 10-17-2009   #1 (permalink)
carbooter


 
 

Re: HTML & VBScript -> security problem!?

Similar problem with vbscript in html for wallpaper in active desktop.
Getting "ActiveX can't create object", then, when that resolved, "An ActiveX
control on this page might be unsafe to interact with other parts of the
page. Do you want to allow this interaction?" Answer yes and UserName is
displayed, No and it's not. I've got workstations with XP+SP2/3 and IE7/8.
Basic, much, much simplified, script is
<html>
<head>
</head>
<body style="background-color:#0033FF">
<script language = "vbscript">
Set oNet = CreateObject ("WScript.Network")
sUserName = oNet.UserName
document.write (sUserName)
</script>
</body>
</html>
Have reduced security in Local Zone and Lockdown Zone 0 and works with no
nasty popups. But surely this compromises security of the domain? So, am
reluctant to roll it out across the domain.
I tried adding 'Mark of the web' (MOTW) to move it out of the Local Zone.
But discovered this only moves the action to a HIGHER security zone. Since
Local Zone is probably, normally now, the highest security it's no use. (Does
MOTW work from IE7 as it's imprinted when I save a webpage from IE6 but not
IE7?)
Any suggestions please as to how I can get userName displayed on Active
Desktop wallpaper without compromising security of Local Zone.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
problem download HTML in VBScript VB Script
Scripting.FileSystemObject with VBScript in HTML page VB Script
Some solutions I have constructed (HTA HTML vbScript) VB Script
HTML and VBscript printer management page VB Script
working on html objects using HTML DOM, VBscript VB Script


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46