Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE search computername

Status
Not open for further replies.

clayton74

Technical User
Apr 17, 2002
187
GB
Hello
I apologise for asking a silly question before I ask it.

I have a bit of script, and what I am trying to do is open Internet explorer and input a computername in the address bar, so I can use this as an option to search a users drive. Unfortunatley explorer.exe does not work as it is disabled by group policy, I have a bit of code that I have removed from here but all it does is RunAs.
Is it possible for me to open IE with the computername in the address bar
Thanks in advance

Dim WshSHell
Dim AssetNo

AssetNo=Inputbox ("Asset Number")

set WshSHell = createobject ("wscript.shell")
WshSHell.Run("iexplore.exe " &AssetNo&"")
 
How are you providing the computer name?

\\computername ?

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
Is explorer.exe or iexplorer.exe disabled? If IE is in the do not run list in Group Policy it won't launch unless you are logged in with an ID that does nto get that policy.

Rather than doing what you are doing, why don't you use WMI which offers a rather quick search option?

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Hello
Providing the computername as \\computername

Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top