Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Win32_Proxy doesnt work in Vista

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,63164
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Win32_Proxy doesnt work in Vista
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Win32_Proxy doesnt work in Vista - 8/5/2008 7:51:26 PM   
  Dicko1976

 

Posts: 60
Score: 0
Joined: 3/5/2008
Status: offline
 
I have a working HTA file in Windows XP but when its run in Vista it comes up with an error.

Is the following WMI set up in Vista ?

Set colInstances = objWMIService.ExecQuery _
( "SELECT * FROM Win32_Proxy", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly )

I am getting the proxyserver and port via the following

DataArea16.InnerHTML = objweb.ProxyServer & ":" & objweb.ProxyPortNumber

Any ideas ?

What are the WMI differences in Vista ?

Thanks Dicko
 
 
Post #: 1
 
 RE: Win32_Proxy doesnt work in Vista - 8/6/2008 2:56:09 AM   
  ninjamaster

 

Posts: 107
Score: 0
Joined: 1/23/2007
Status: offline
What is the error message? Do other scripts that query WMI work fine on Vista or just this one?

I've read that some functions within scripts require elevated rights within Vista which may be the problem?

(in reply to Dicko1976)
 
 
Post #: 2
 
 RE: Win32_Proxy doesnt work in Vista - 8/6/2008 7:53:43 PM   
  Dicko1976

 

Posts: 60
Score: 0
Joined: 3/5/2008
Status: offline
The error is

A run time error has occurred. Do you wish to debug ?

Line 82
Error Invalid class

As soon as i remove anything to do with looking for the proxy server in Win32_Proxy it runs OK.

Is ther anywhere else that i can get proxy server that will work in XP and Vista

Thanks

Dicko

PS Also found that its doesnt store the windows username and full name in Win32_NetworkLoginProfile as it does on XP. Vista script doesnt error so the field must be there but no data is stored in there.

(in reply to Dicko1976)
 
 
Post #: 3
 
 RE: Win32_Proxy doesnt work in Vista - 8/7/2008 6:51:57 AM   
  Rischip


Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
Try downloading ScriptomaticV2.hta and see if the stock script works... Of course I don't even know if the HTA will work in Vista. IE7 broke a lot of stuff with the new version of mshta.exe

_____________________________

Rischip
Author of - The Grim Linker

(in reply to Dicko1976)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Win32_Proxy doesnt work in Vista Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts