• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 464
  • Last Modified:

Windows 2003 AD Logon Script - Calling htm page

Hi guys I want to create a logon script that opens a htm page with notices/notifications to staff, this page is managed by HR and Communications is there a way i can call this page when a user logon onto their pc, we have windows 2003 active directory and .bat logon scripts for drive mapping
  • 3
  • 2
1 Solution
Add the line:
START "path to web pagee".htm
without quotes to a batch file
Or one of your existing batch (.bat) scripts
put the following code in your script
explorer "\\servername\sharename\notice.html"


"%programfile%\Internet Explorer\iexplore.exe" "\\servername\sharename\notice.html"

 if the html page is accessible through www (local intranet)

you can replace "\\servername\sharename\notice.html" with the www name of that page
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

SEUPBAuthor Commented:
Ok thanks pavaneeshkumar, its opening the window which is great, before i award the points, is there a way to call a limited IE Window, ie no toolbars displayed ??
to do so you need to change the approach
you dont need to use the above line in your script .

save the code given below as a file with extention .vbs
i m assuming you saved it as


on the same lcocation where your current script file is OK.
 Replace the following entry in vbs file accourding to your html page location

.navigate "C:\Documents and Settings\itserviceba\Desktop\test.html"

Now add the following line in your current script

cscript "\\servername\sharename\openie.vbs"

dim objExplorer
Set objExplorer = CreateObject("InternetExplorer.Application")
        with objExplorer           
            .ToolBar = 0
            .StatusBar = 0
            .Height = 600 
            .Left = 1
            .Top = 1
            .Visible = 1
           .navigate "C:\Documents and Settings\itserviceba\Desktop\test.html"
        End with

Open in new window

Check and update the status

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now