• RSS
  • Twitter
  • FaceBook

Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

[ISA2004 EE] - Scripting Entreprise/Array Network

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA Server 2004 Misc.] >> ISA Server 2004 Programming >> [ISA2004 EE] - Scripting Entreprise/Array Network Page: [1]
Login
Message << Older Topic   Newer Topic >>
[ISA2004 EE] - Scripting Entreprise/Array Network - 11.Jul.2005 9:17:00 AM   
Guest
Hi,

I have a problem when I try to script an Array Network configuration. Indeed, I try to include in the Array Network... an Enterprise Network. It is possible using the mmc.
So In the script, I create the Enterprise Network just before I create the Array Network
The error comes on line :
. arrayNetwork.EnterpriseNetworks.Add "Enterprise Test",0

Here is my script

Set root = CreateObject("FPC.Root")
Set Enterprise = root.Enterprise
Set myArray = root.Arrays.item("TestingArray")

'Enterprise Network Creation
Set EnterpriseNetworks =
Enterprise.NetworkConfiguration.EnterpriseNetworks
Set NewNetwork = EnterpriseNetworks.Add("Enterprise Test")
NewNetwork.IpRangeSet.Add "10.0.0.1","10.0.0.5"
EnterpriseNetworks.Save

'Array Network Creation with Enterprise Network include
Set arrayNetwork = myArray.NetworkConfiguration.Networks.Add("Array
Test")
arrayNetwork.EnterpriseNetworks.Add "Enterprise Test",0
myArray.NetworkConfiguration.Networks.Save

Thxs for your help !

Tip
  Post #: 1
RE: [ISA2004 EE] - Scripting Entreprise/Array Network - 12.Jul.2005 10:41:00 PM   
tshinder

 

Posts: 50013
Joined: 10.Jan.2001
From: Texas
Status: offline
Hi Tip,

I'll move this to the programming section, where you're more likely to get a response.

HTH<
Tom

(in reply to Guest)
Post #: 2
RE: [ISA2004 EE] - Scripting Entreprise/Array Network - 13.Jul.2005 9:41:00 AM   
Guest
Reading the sdk ... once again
I have found the solution about including Enterprise objects into Array objects.
Here is for the Netork :
Do not use the Add method ... AddScopedItem is the only solution.
So :
Set NewNetwork = EnterpriseNetworks.AddScopedItem("Enterprise Test")

Tip

(in reply to Guest)
  Post #: 3

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [ISA Server 2004 Misc.] >> ISA Server 2004 Programming >> [ISA2004 EE] - Scripting Entreprise/Array Network 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