Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Windows 2003 AD Logon Script - Calling htm page

Posted on 2007-11-23
6
Medium Priority
?
461 Views
Last Modified: 2008-05-31
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
0
Comment
Question by:SEUPB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:mediaonegraphics
ID: 20338283
Add the line:
START "path to web pagee".htm
without quotes to a batch file
0
 
LVL 3

Expert Comment

by:mediaonegraphics
ID: 20338294
Or one of your existing batch (.bat) scripts
0
 
LVL 5

Expert Comment

by:pavaneeshkumar
ID: 20338314
put the following code in your script
explorer "\\servername\sharename\notice.html"

or

"%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
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 

Author Comment

by:SEUPB
ID: 20338423
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 ??
0
 
LVL 5

Accepted Solution

by:
pavaneeshkumar earned 1000 total points
ID: 20338604
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

openie.vbs

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
            .Width=1200
            .Height = 600 
            .Left = 1
            .Top = 1
            .Visible = 1
           .navigate "C:\Documents and Settings\itserviceba\Desktop\test.html"
        End with

Open in new window

0
 
LVL 5

Expert Comment

by:pavaneeshkumar
ID: 20625094
Check and update the status
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
Let's recap what we learned from yesterday's Skyport Systems webinar.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question