Script host shell object iexplore exe




















CreateObject "WScript. Run "iexplore. The question is how to include the following script to be part of it. Don't retire TechNet! Thanks for the help. Yes, I know about the -k switch but trying to avoid that for PC users. Office Office Exchange Server. Not an IT pro? Resources for IT Professionals. Sign in. United States English. Ask a question.

Quick access. Search related threads. Remove From My Forums. You are trying to get to an application and not a web site.

Install and run teh Xen client. The client is free and will run on most systems. You will not be able to do what you want due to security restrictions that are set in place by both Citrix and Microsoft. You keep wanting to rumn the web browser when you really don't need to. Just install the XEN client and launch that as a shell. It creates a Shell. Application object. This is part of Windows Explorer. You can omit that block of code and assume that IE is running.

Amended my comment, above. Sorry, I can't think of a way to get the ActiveX reference of the IE object without using the shell objects. Perhaps someone else knows. The 'shell' is the program that is the daddy of all further processes In a normal logon the shell is the desktop which is actually Explorer. If you make IE the shell then it is the daddy of all processes. Now you want a restricted program, IE, to run a dangerous script that wants to launch an unrestricted shell object.

A process inherits from its parent and IE and all processes spawned by IE are forevcer blocked from running all dangerous ActiveX controls. When we run IE as a fiosk and as teh default shell all process commands must come from IE.

IE can be set to launch a local HTML page that canhace some basic script and can have basic navigation. It can load other HTML pages locally or navigate to a web page but that is about all it can ever do. YOu cannot load ActiveX controils and you cannot run any external programs IE is blocked from doing that permanently.

Set IE in Kiosk mode permanently be adding -k to teh commandline that launches IE along with its initial page and no user can stop kiiosk mode. YOu will see it is permanently locked to full screen. Set autologon to the account you want to use for the kiosk and, if a user somehow exits from IE the system will log back on immediately in kiosk mode.

This is how all of those department store kiosks are built. They are not done with script or with custom programs. That is the point I am trying to make. What you want to do cannot be done if IE is the shell. It is impossible.

Set your web site to use 'client certificates' for authentication. Create a cert for the account on the kiosk PC. When IE connects it will provide its certificate and the web site will let it connect. The IE session will be automatically logged in with its certificate. Now you have complete control over the IE session from the web site. If you need further access to the PC such as to the file system you can create an ActiveX control that is marked safe for scripting and registered at the PC.

This control can use any Win32 API call with no restrictions. This is why ActiveX controls are considered unsafe. If allowed to they can do anything accept call a control that is not marked as safe. You cannot execute 'Shell. Application' from an IE shell as it is not marked as usable from IE. You wouldn't want this to work because any stray trojan could easily take over your machines.

There are millions of kiosks in use. Most o fthem set IE as teh shell and use an autologon account theat is severly restricted. The use of client certificate authentication makes all of this much easier. Some older kiosks use a custom shell program that does not load explorer and is used to pervent the system from being logged out.

This iteqnique is not very useful. This also has drawbacks. You can use the methods exposed by this object to run an item's verbs, or to retrieve information about an item's FolderItemVerbs object.

The FolderItems object represents a collection of items in a Shell folder. Its methods and properties enable you to retrieve information about the collection. The following Visual Basic example shows the relationship between several of the folder objects and how they can be used together. When the user chooses a folder, the folder's path is displayed in the text box called txtPath. In VBScript, this function is slightly different because the ShellSpecialFolderConstants enumeration values are not available in script.

The following example shows the VBScript equivalent of the previous example. In the following JScript example, which is a direct translation of the preceding VBScript example, note how the empty parentheses ' ' are used to invoke the Items and Item methods. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info.

Contents Exit focus mode. In this article. NameSpace "



0コメント

  • 1000 / 1000