Windows 2008
In Windows 2008, new security features have been added when accessing Web sites. In some configurations, you are not allowed to access any Web site, and so of course, WinTask functions such as StartBrowser won't work if you are not allowed to access the specified url. YOU MUST NOT HAVE Internet Explorer Enhanced Security Configuration ENABLED under Windows 2008.
For deactivating Internet Explorer Enhanced Security Configuration, you must have Admin rights. Then open Control Panel, click Add or Remove Programs, and then click Add/Remove Windows components. Select Internet Explorer Enhanced Security Configuration, click the checkbox to clear the selection, and then click OK. Click Next and then click Finish. Restart Internet Explorer to apply the changes.For our Web functions, we load our browser add-on. Check that our WTBho add-on is enabled in IE : select Tools menu in IE, then Internet options. Click Programs tab, then click Manage Add-Ons button ; in the displayed list, check that the add-on named WTBHo is enabled.
Check too this key in Registry which must be at Yes:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\BrowseNewProcess
If you use KillApp function to kill all the instances of Internet Explorer, the next time you open IE, you will get the message "Your last browsing session closed unexpectedly". To avoid this message, in the Tools menu of Internet Explorer, select Internet options and click the Advanced Tab. Under Browsing session, uncheck "Enable automatic crash recovery".
IMPORTANT : do NOT use Remote desktop as it interferes with the interactive session.
Since Vista, Windows makes the difference between Window stations and desktops. The interactive window station, Winsta0, is the only window station that can display a user interface or receive user input. It is assigned to the logon session of the interactive user. So when Windows is logged out or locked or when you disconnect from a Remote session, the session still exists but not the interactive window station. So any interactive script that you try to run will fail. And when you minimize a Remote desktop session, the session is locked and so any interactive script stops running properly.
See http://windowssdk.msdn.microsoft.com/en-us/library/ms681928.aspx for all the details.
For connecting to a remote PC without interfering with the user desktop, use for example the VNC software.
Never use Windows Start menu when you record your actions : the programs list in that menu varies from one Windows start to another. When you record your actions and want to start a program, use Shell statement and its wizard. And for ease of use, when you start Recording mode, you are asked if you want to launch a program.