여러분의 ISA 어레이를 확장하고 Network Configuration을 확장하고 Routing을 선택하면 "Default rule"을 볼 수 있다. 이 "default rule"을 마우스 오른쪽 버튼으로 클릭하고 Properties를 선택하고 Action 탭을 선택하면 "Automatically dial out" 항목을 볼 수 있지만 그 아래에는 아무런 엔트리가 존재하지 않는다.

여러분은 먼저 ISA 시디의 sdksamplesadminscripts 폴더에 있는 VBS 스크립트를 실행할 필요가 있다. 파일 이름은 Add_DOD.vbs이지만 먼저 약간 수정해야 할 것이다.

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'
' Copyright (c) 2000 Microsoft Corporation. All rights reserved.
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' This script will add new Dialup Entry and set the Dialup Entry Credentials.
' After that the script will set one Routing rule to use the new Dialup Entry
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Sub SetDialupEntry()
Set ISA = CreateObject("FPC.Root")
ISA.Refresh
Set Arrays = ISA.Arrays

arrayname = InputBox("Please enter the array name, or for the first array:")

If arrayname = "" Then
Set arr = Arrays(1)
Else
' Look for the specified array
On Error Resume Next
Set arr = Arrays(arrayname)

If Err.Number <> 0 Then
MsgBox "The array specified array was not found"
Exit Sub
End If
End If


'Add Dialup Entry
Set objDialupEntry = Arr.PolicyElements.DialupEntries.Add ("ISA_DISPLAY", "RAS_ENTRY")
'Set the Dialup entry credentials
objDialupEntry.Credentials.UserName = "UserName" '이름을 입력.
objDialupEntry.Credentials.Password = "Password" '암호를 입력.
objDialupEntry.AuthenticationEnabled = True
Arr.Save

Arr.Refresh

'Select routing rule and set the Autodial to the added Dialup Entry
Set objRoutingRule= arr.NetworkConfiguration.RoutingRules(1)
objRoutingRule.PrimaryRoute.AutoDialOut.SetAutoDial True,"ISA_DISPLAY"
objRoutingRule.Save

MsgBox "Done"
End Sub

SetDialupEntry

검은 색으로 진하게 표시된 부분을 변경해야 한다. 먼저 ISA_DISPLAY는 ISA에서 보여주는 이름이다. 두번째는 실제 RAS 엔트리의 이름이다. 연결을 위한 정확한 사용자 이름 및 암호를 입력해 준다. 마지막으로 엔트리 이름으로 자동으로 전화접속할 수 있도록 설정한다.

이제 VBS 파일을 더블클릭한다. 그리고 엔터를 누른다.

완료된 후에 ISA 관리 콘솔을 열어 보면 Default Rule 아래에 선택되어 있을 것이다.

만약 문제가 있거나 전화접속 엔트리를 제거하고자 한다면 Remove_Unused_DialupEntries.vbs 스크립트를 실행한다.
Posted by NTFAQ

트랙백 주소 :: http://ntfaq.co.kr/trackback/1929 관련글 쓰기

댓글을 달아 주세요