Mark Minasi's Reader Forum
Mark Minasi's Reader Forum
Home | Profile | Register | Active Topics | Active Polls | Members | Search | FAQ | Minasi Forum RSS Feed
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Old, obsolete or unused
 Scripting Archive
 VBS and Login Scripts
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mrmcse25
Welcome Newcomer

2 Posts
Status: offline

Posted - 09/25/2006 :  10:43:29 AM  Show Profile  Reply with Quote
Hello! I am using the ie.navigate vbs funtion to load an intranet page for our company on user login to the domain. We also use citrix applications and pass thru authentification with that application. The problem I have is that the script runs again when they login to citrix which launches the page twice and is annoying. Anyone know how to get around that either in the script or in citrix?

Playwell
Honorable But Hopeless Addict

Netherlands
4819 Posts
Status: offline

Posted - 09/25/2006 :  11:03:32 AM  Show Profile  Visit Playwell's Homepage  Click to see Playwell's MSN Messenger address  Reply with Quote
http://web2.minasi.com/forum/topic.asp?TOPIC_ID=17219

'People who think they know everything are a great annoyance to those of us who do. '
Quote by Isaac Asimov


Go to Top of Page

mrmcse25
Welcome Newcomer

2 Posts
Status: offline

Posted - 09/25/2006 :  11:44:21 AM  Show Profile  Reply with Quote
That didn't work, but it is probably because of my VB ignorance. I'm no programmer, so I'm just using a simple script. Here it is. Did I plug that code you suggested in right? Also, I don't see that "c:\windows\Application Compatibility Scripts" path on my machine. Should I use a different path? Thanks fo rany help.

----------------------------------------------
' declare variables
dim wshnetwork
dim ie

' suppress error messages
on error resume next

' set reference to WSH network object
set wshnetwork=wscript.createobject("wscript.network")

' remove network drive in case it is already in use
wshnetwork.removenetworkdrive "G:", True, True
wshnetwork.removenetworkdrive "X:", True, True

' add network drive
wshnetwork.mapnetworkdrive "G:","\\gary\user\user"
wshnetwork.mapnetworkdrive "X:","\\gary\it_shared"

' add connection to a network printer
' wshnetwork.addwindowsprinterconnection "\\gold\hp5"

' set new printer as default printer
' wshnetwork.setdefaultprinter "\\gold\hp5"

' Sets it so that terminal services does not run script again after login

Set objFSO = CreateObject("Scripting.FileSystemObject")

If objFSO.FolderExists("c:\windows\Application Compatibility Scripts") Then
wscript.quit
End If

' set reference to Internet Explorer object
set ie=createobject("internetexplorer.application")

' load Brooks Intranet
ie.navigate"http://www.brooksfoodgroup.com"

' make application visible
ie.visible=true

-----------------------------------
Go to Top of Page

Playwell
Honorable But Hopeless Addict

Netherlands
4819 Posts
Status: offline

Posted - 09/25/2006 :  1:45:36 PM  Show Profile  Visit Playwell's Homepage  Click to see Playwell's MSN Messenger address  Reply with Quote
It should be there on a Terminal Server.
If not you could create a file or folder and trigger on that. You could also get the os version very easily and determin if you log on to a server or workstation.

'People who think they know everything are a great annoyance to those of us who do. '
Quote by Isaac Asimov


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Mark Minasi's Reader Forum © 2002-2011 Mark Minasi Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000