#176899 - 2007-06-12 12:12 AM
Display an HTML page at login?
|
JohnTodd
Fresh Scripter
Registered: 2007-01-12
Posts: 7
|
Sorry guys... I looked all over, but I can't figure this one out. I'm sure it's simple, but I have an advanced case of brainlock today.
I just need to open and display a web page (our AUP) upon login.
How is it done?
Thanks in advance.
|
Top
|
|
|
|
#176902 - 2007-06-12 01:04 AM
Re: Display an HTML page at login?
[Re: NTDOC]
|
JohnTodd
Fresh Scripter
Registered: 2007-01-12
Posts: 7
|
I was right... I should have known.
Update; I tried both SHELL and RUN and both aren't working for me. If I go to the Windows command line, I pass the url and it works like a champ.
Any help?
Edited by JohnTodd (2007-06-12 01:30 AM)
|
Top
|
|
|
|
#176903 - 2007-06-12 02:20 AM
Re: Display an HTML page at login?
[Re: JohnTodd]
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
Okay give something like this a try.
Dim $Site, $IExplore
$Site = 'http://www.yahoo.com/'
$IExplore = ReadValue('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE','')
RUN $IExplore + ' ' + $Site
|
Top
|
|
|
|
#176904 - 2007-06-12 03:40 AM
Re: Display an HTML page at login?
[Re: NTDOC]
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
run 'cmd /c start http://www.kixtart.org'
(or shell)
|
Top
|
|
|
|
#176918 - 2007-06-12 12:17 PM
Re: Display an HTML page at login?
[Re: NTDOC]
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
and if the machines browser assoc is screwed up, the PC needs to be fixed.
depts that run multiple browsers deserve to be shot
|
Top
|
|
|
|
#176932 - 2007-06-12 06:17 PM
Re: Display an HTML page at login?
[Re: NTDOC]
|
JohnTodd
Fresh Scripter
Registered: 2007-01-12
Posts: 7
|
Okay give something like this a try. Dim $Site, $IExplore
$Site = 'http://www.yahoo.com/'
$IExplore = ReadValue('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE','')
RUN $IExplore + ' ' + $Site
This worked perfectly, and it even taught me a couple of things. Thanks very much!
|
Top
|
|
|
|
#176998 - 2007-06-15 01:04 AM
Re: Display an HTML page at login?
[Re: eriqjaffe]
|
JohnTodd
Fresh Scripter
Registered: 2007-01-12
Posts: 7
|
Thanks for all the help, but I'm still in a pickle.
If I run the script manually by dragging the script to wkix32.exe, NTDOC's script runs just fine. When the script is called from the GPO, my mappings work, my printer distribution works... But the call to the browser doesn't run.
Any ideas?
Here's my script, in case someone wants to critique... pretty basic.
SetTime "\\dc1"
CLS
Break off
;---------------------------------------------------------------
;Delete Network Mappings
;---------------------------------------------------------------
Use "*" /delete /PERSISTENT
;---------------------------------------------------------------
;Map Global Network Drives
;---------------------------------------------------------------
? "Mapping Drives"
Use H: "\\nasbox\vol2"
Use I: "\\saturn\vol3"
Use J: "\\nasbox\vol4"
Use K: "\\nasbox\vol5"
Use L: "\\saturn\vol6"
Use N: "\\saturn\vol11"
Use O: "\\saturn\vol8"
Use P: "\\saturn\vol6\PDOXDATA"
Use Q: "\\minerva\AutoCadE"
Use R: "\\nasbox\snap"
Use S: "\\dc1\netlogon"
Use U: "\\nasbox\production"
Use V: "\\Juno\D"
Use Y: "\\nasbox\Network"
Use X: "\\nasbox\users\@userid"
Use Z: "\\minerva\vol1\apps\acad"
;---------------------------------------------------------------
;Map Printers
;---------------------------------------------------------------
? "Deleting Printers"
delprinterconnections()
? "Adding Printers"
If AddPrinterConnection ("\\ps\HP1220C") = 0
? "Added HP 1220C Color Inkjet Printer Connection"
'Error: ' + @ERROR + ' - ' + @SERROR ?
EndIf
If AddPrinterConnection ("\\ps\hp5000") = 0
? "Added HP5000 Laserjet Printer Connection"
'Error: ' + @ERROR + ' - ' + @SERROR ?
EndIf
If AddPrinterConnection ("\\ps\p7400") = 0
? "Added Xerox Phaser 7400 Color Laser Printer Connection"
'Error: ' + @ERROR + ' - ' + @SERROR ?
EndIf
;---------------------------------------------------------------
;Display AUP
;---------------------------------------------------------------
Dim $Site, $IExplore
$Site = '\\saturn\vol11\aup\motd.htm'
$IExplore = ReadValue('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE','')
RUN $IExplore + ' ' + $Site
;---------------------------------------------------------------
;Run TrackIt audit
;---------------------------------------------------------------
run 'N:\TrackIt\audit32.exe'
;---------------------------------------------------------------
function DelPrinterConnections()
dim $c,$bk,$conn
$c=0
$bk="HKEY_CURRENT_USER\Printers\Connections"
$conn=enumkey($bk,$c)
while @error=0
$c=$c+0.5
$conn=delkey($bk+"\"+$conn)
$conn=enumkey($bk,$c)
loop
endfunction
Edited by JohnTodd (2007-06-15 01:16 AM)
|
Top
|
|
|
|
#179328 - 2007-08-15 12:09 PM
Re: Display an HTML page at login?
[Re: NTDOC]
|
Arend_
MM club member
Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
|
also this won't work
Thats VB, in kix it would be
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
2 registered
(morganw, mole)
and 414 anonymous users online.
|
|
|