Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Can I msgbox the domain name ?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,40225
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Can I msgbox the domain name ?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Can I msgbox the domain name ? - 11/29/2006 5:14:18 PM   
  netxman

 

Posts: 104
Score: 0
Joined: 8/1/2005
Status: offline
Set Isa = CreateObject("FPC.Root")

Set CurArray = Isa.GetContainingArray

Set RuleElements = CurArray.RuleElements

Set DomainNameSets = RuleElements.DomainNameSets

In ISA 2004, there is a domainset contains lots of domain names, can I use this to read every domain name and msgbox it ?
 
 
Post #: 1
 
 RE: Can I msgbox the domain name ? - 11/29/2006 6:43:16 PM   
  ginolard


Posts: 1051
Score: 21
Joined: 8/10/2005
Status: offline
I don't know about ISA but this will do it using ADODB


      

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to netxman)
 
 
Post #: 2
 
 RE: Can I msgbox the domain name ? - 11/30/2006 12:21:39 AM   
  SAPIENScripter


Posts: 276
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
If you just want to show the name of the domain that the ISA box belongs to, you can simply use the Wscript.Network object.


      

_____________________________

Jeffery Hicks
Windows PowerShell MVP
SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com

Follow Me: http://www.twitter.com/JeffHicks

(in reply to netxman)
 
 
Post #: 3
 
 RE: Can I msgbox the domain name ? - 11/30/2006 2:50:23 PM   
  netxman

 

Posts: 104
Score: 0
Joined: 8/1/2005
Status: offline
Oh.. I'm sorry that I didn't describe clearly.

The domain name is not the one that ISA Server belongs to.  We should be a little familiar with Microsoft Internet Security and Acceleration (ISA) Server 2004.

The domain name is in a domainSet whthin ISA Firewall Policy. If I can post a snapshot you will understand what I say. Let me try.

Yes, I want to msgbox every site here:


(in reply to SAPIENScripter)
 
 
Post #: 4
 
 RE: Can I msgbox the domain name ? - 12/1/2006 12:22:17 AM   
  SAPIENScripter


Posts: 276
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
I haven't done any ISA coding in a long time and don't have a box to test against.  But isn't DomainNameSets an array?  If so, you should just be able to use standard techniques for enumerating it.

for each item in DomainNameSets
   msgbox item.name
next

_____________________________

Jeffery Hicks
Windows PowerShell MVP
SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com

Follow Me: http://www.twitter.com/JeffHicks

(in reply to netxman)
 
 
Post #: 5
 
 RE: Can I msgbox the domain name ? - 12/10/2006 12:22:14 PM   
  netxman

 

Posts: 104
Score: 0
Joined: 8/1/2005
Status: offline
Yes I done that ,but the items in DomainNameSets were not that we wanted.  sigh..

for each item in DomainNameSets
  msgbox item.name
next

You will get

Allowed sites
Allowed sitebackup
Block sites
.
.
etc...

(in reply to SAPIENScripter)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Can I msgbox the domain name ? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts