특정 OU의 사용자 (User) 의 리스트를 저장하는 스크립트 입니다. DN 으로 저장됩니다. StrOU = InputBox("Please Enter in the name of the OU that you wish to query, this needs to be in the format OU=") Set objFileSystem = CreateObject("Scripting.fileSystemObject") Set objConn = CreateObject("ADODB.Connection") Set objCommand.ActiveConnection = objConn objCommand.CommandText = "SELECT distinguishedName FROM " + "'" + strADsPath + "'" + " WHERE objectCategory = 'CN=Person,CN=Schema,CN=Configuration,DC=xxx,DC=xxx,DC=xxx'" While Not objRecordSet.EOF objOutputFile.Close Set objFileSystem = Nothing 이번에는 바로 소스코드에 파일 등을 박아 넣어서 돌리도록 변경하였습니다. Set objRootDSE = GetObject("LDAP://rootDSE") Set objFileSystem = CreateObject("Scripting.fileSystemObject") Set objConn = CreateObject("ADODB.Connection") Set objCommand.ActiveConnection = objConn objCommand.CommandText = "SELECT distinguishedName FROM " + "'" + strADsPath + "'" + " WHERE objectCategory = 'CN=Person,CN=Schema,CN=Configuration,DC=xxx,DC=xxxDC=xx" While Not objRecordSet.EOF objOutputFile.Close Set objFileSystem = Nothing |
목차 일반적인 메일 포워딩 요청은 Ads.msc 에서 외부 메일에 대한 contact를 만든 후 계정으로 들어온 메일을 이 contact로 포워딩 하게 함으로써 간단하게 설정이 가능합니다. 물론 꽁수를 쓰는 방법도 있다고 합니다. 그냥 ProxyAdderss 하나 더 만들고 이 주소를 TargetAddress 로 만드는 방법인데... 아직 Test는 않해봤습니다. (http://marcusoh.blogspot.com/2006/05/ds-how-to-setup-mail-forwarding.html) 방법은 다음과 같습니다. 1. gather these fields. take down this information. step 2 will blow it away
2. disconnect [his/her] mailbox. 3. put these fields back in for the user object.
하지만 Test도 않해밨음을 알려드립니다. 자 우리는 그냥 원론적으로 해결 하도록 하겠습니다. 혹시나 하는 마음에 해당 Article의 내용을 한번 적어 드립니다. 연락처를 만드는 방법 메일 사용 가능 연락처로 만드는 방법 참고 메시지 형식 설정을 구성하려면 고급 탭을 누릅니다. 메일 전달을 구성하는 방법 참고 전자 메일을 원본 사서함과 전달 주소로 배달하려면 메시지를 전달 주소와 사서함 모두에 배달 확인란을 선택합니다. 자 우리는 위의 내용은 100번 아니 1000번을 해야 할 지도 모릅니다. |
방송과 관련된 장비 혹은 시간과 아주 critical한 관계가 있는 서버의 경우 별도로 ntp 서버와 시간을 동기화 하는 H/W가 있나봅니다. 레지스트리 수정에는 신중을 기해야 합니다. 1. 시작, 실행을 차례로 누르고 regedit를 입력한 다음 확인을 누릅니다. 2. 다음 레지스트리 하위 키를 찾아 누릅니다. 3. 오른쪽 창에서 AnnounceFlags를 마우스 오른쪽 단추로 누른 다음 수정을 누릅니다. 4. DWORD 값 편집에서 값 데이터 상자에 A를 입력한 다음 확인을 누릅니다. 5. 레지스트리 편집기를 종료합니다. 6. 명령 프롬프트에서 Windows 시간 서비스를 다시 시작하도록 다음 명령을 입력한 다음 Enter 키를 누릅니다. net stop w32time && net start w32time |
Action Item http://support.microsoft.com/kb/816042 |
1. CVS 파일을 만든다. 2. 다음 스크립트를 실행한다. Option Explicit Const CSV_FILE = "file.txt" Dim objFileSystem, objFile, objStream, objUsers, objConnection, objCommand, objRootDSE, objRecordSet, objUser Set objFileSystem = CreateObject("Scripting.FileSystemObject") Set objUsers = CreateObject("Scripting.Dictionary") Do While Not objStream.AtEndOfStream If UBound(arrLine) = 1 Then If Not objUsers.Exists(strPrimarySMTP) Then Set objStream = Nothing Set objConnection = CreateObject("ADODB.Connection") Set objCommand = CreateObject("ADODB.Command") Set objRootDSE = GetObject("LDAP://RootDSE") objCommand.Properties("Page Size") = 1000 Set objRecordSet = objCommand.Execute Set objFile = objFileSystem.OpenTextFile("logfile.txt", 2, True, 0) While Not objRecordSet.EOF If objUsers.Exists(strPrimarySMTP) Then arrAddresses = objUser.Get("proxyAddresses") ' Check the Address isn't already there strAddresses = Join(arrAddresses, ",") objFile.WriteLine strPrimarySMTP & ": Matched to " & objUser.Get("name") &_ ' objUser.Put "proxyAddresses", arrAddresses objRecordSet.MoveNext Set objFile = Nothing Set objRecordSet = Nothing Set objUsers = Nothing 출처 : 참고 : |
Active Directory 의 Domain Contorller 간에는 보통 모든 포트를 다 열어달라고 요청을 하는 경우가 대부분입니다. 하지만 위의 상황이 여의치 않을때는 Active Directory에서 사용하는 포트를 지정해서 열어줘도 됩니다. 하지만 RPC 포트 및 SMB 포트를 개방해야 하므로 ( 135 / 445 / 1024 ~ 65534 ) 개별 포트로 오픈한다는 것 자체가 무의미해 보입니다. |
내용을 쓰다보니 너우 어렵게 쓰는거 같습니다. 목차 트랜잭션 로그와 데이터 복원 트랜잭션 로그 파일과 데이터 파일 내부 저장소 데이터 형식 이해하기 (일반 데이터 형식은 생략) • 문자 데이터 형식 – 가변 길이 데이터 코드의 허와 실 • NULL |
이 보안에 대한 가이드라는 것이 "그때 그때 달라요." 입니다. 이윽고 시간이 흘려갑니다.~~~ "허걱 않된다" 젠장 꼴딱 밤을 세고 MS 엔지니어를 불렸습니다. 왜! 왜! 왜! 보안 가이드에는 $ 공유를 빼라고 했는데... MSCS에서는 그러면 문제 생기는 거야!!! 암튼 원인은 접니다... 뚜둥~~~ |