ãã¡ãã®è¨äºã§è¨è¿°ããå 容ãå¤ããªã£ã¦ãã¦ãç¾ç¶ã®èª¬æã¨ãã¦é©åã§ã¯ãªãããåé¤ããã¦ããã ãã¾ããããè¿·æãããããããã¾ããããäºæ¿ãã ããã
ããã§ç´¹ä»ããlogon.vbsã¯ï¼å ±æãã©ã«ãããã©ã¤ãåã«å²ãå½ã¦ãä½æ¥ãï¼ãããã¯ã¼ã¯ããªã³ã¿ã«æ¥ç¶ããä½æ¥ããã°ã¤ã³æã«èªåçã«è¡ããã¨ã主ãªç®çã¨ããã¹ã¯ãªããã§ããã¦ã¼ã¶ã®æå±ããã°ã«ã¼ãã«ãã£ã¦ãããã¯ã¼ã¯ãã©ã¤ãã®å²ãå½ã¦ãå¤æ´ãããï¼ã³ã³ãã¥ã¼ã¿ã«ãã£ã¦æ¥ç¶ãããããã¯ã¼ã¯ããªã³ã¿ ãé常使ãããªã³ã¿ãå¤æ´ãããã§ããããã«ãªã£ã¦ãã¾ãã ã°ã«ã¼ãã«ãããããã¯ã¼ã¯ãã©ã¤ãã®å²ãå½ã¦ãèªåçã«ã§ããã®ã§ï¼åã¦ã¼ã¶ã«è¨å®ä½æ¥ããã¦ãããå¿ è¦ããªãã ããªã³ã¿ã®å²ãå½ã¦ãèªåã§ãããã¨ã«ããï¼æ°ããã³ã³ãã¥ã¼ã¿ãå ¥ã£ã¦ããã¡ãã¡ããªã³ã¿ã®ã¤ã³ã¹ãã¼ã«ä½æ¥ãããå¿ è¦ããªããã¾ãæ°ããã㪠ã³ã¿ãå ¥ã£ãå ´åã§ããµã¼ãã«ããªã³ã¿ãã¤ã³ã¹ãã¼ã«ãè¨å®ãã¡ã¤ã«ã«è¨è¿°ã追å ããã ãã§ããï¼åã³ã³ãã¥ã¼ã¿ã¸ã®ã¤ã³ã¹ãã¼ã«ä½æ¥ãããå¿ è¦ããªãã ãããã®æ©è½ã§ã¯ã©ã¤ã¢ã³ãã³ã³ãã¥ã¼ã¿ã®åæè¨
éç¨ãã¦ãããµã¼ãã§ï¼Active Directoryã®ãã¡ã¤ã³ãµã¼ãéã§ã®ã¬ããªã±ã¼ããã§ããªããªã£ã¦ããããããããªãã®ã§ï¼NETLOGONã«ä¿åããã¦ããLogonã¹ã¯ãªãã ã«å¤æ´ããã£ãå ´åã«ã¯ï¼äºã¤ã®ãµã¼ãã®ãã¡ã¤ã«ãæ´æ°ãã¦ããããããããã§ã¯ããã©ãã ãï¼ã¨ã©ã¼ãçºçãã¦ããã¾ã¾æ¾ç½®ãã¦ããã®ãæ°æã¡ãæªãã® ã§ï¼æ¬æ°ã§ç´ããã¨ã«ããã åºå ¥ãã®ã¡ã³ããã³ã¹æ¥è ã®ã¨ã³ã¸ãã¢ã«èããã¨ããï¼ãµã¼ããè¨ç½®ããå¾ï¼ãããã¯ã¼ã¯æ©å¨ã®æ¥ç¶ãå¤æ´ãã ãããå ´åã«ãã®ãããªãã¨ãèµ·ãããã¨ãããã¨ããããµã¼ãéã®ã¬ããªã±ã¼ãã®æ¥ç¶è¨å®ã¯ï¼2å°ç®ã®ãã¡ã¤ã³ãµã¼ãã追å ãããã¨ãã«èªåè¨å®ãããã ãã®ããããã¯ã¼ã¯æ©å¨ã®å¤æ´ãããã¨ï¼ç¸æå ã®ãµã¼ããè¦ã¤ãããªãç¶æ ã«ãªã£ã¦ãã¾ãããããã¾ãã¯ãã®å¯¾çãæ½ããã¨ã«ããã Active Directoryãµã¤ãã¨ãµã¼ãã¹ãèµ·å Site/
ãã®ãããã¯ã¯Excelã®VBAãå©ç¨ãã¦Active Directoryã®ã¦ã¼ã¶æ å ±ã管çããããæ¹ã«ã¤ãã¦ã®è¨é²ã§ãã Excel VBAã®åç §è¨å® Active DS Type Library Microsoft Scription Runtime Microsoft WMI cripting V1.2 Library ä¸è¨ã追å ãã Active Directoryã¦ã¼ã¶ç®¡çã®ããã®ã¢ã¸ã¥ã¼ã« mdlADSI å¾ã®CADSIã使ãããã®æ§é ä½TADUserãå®ç¾©ãã¦ããType TADUser UserID As String FirstName As String LastName As String Password As String DisplayName As String UserPrincipalName As String Descri
3ã6ã®ãã¼ã¿ãã«ã¤ãã¦ã¯WMIã使ã£ã¦åå¾ãï¼FileSystemObjectã使ã£ã¦ããã¹ããã¡ã¤ã«ã«åºåãã¾ãã'ãã°ãªã³ã»ãã°ãªãã¤ãã³ããè¨é²ããã¹ã¯ãªãã sEvent = "LogOn" 'ãã°ãªãç¨ã¯ãããå¤æ´ãã sFileName = "\\server01\log\logon" & _ Year(Now) * 100 + Month(Now) & ".log" On Error Resume Next Set FSO = CreateObject("Scripting.FileSystemObject") Set wshNetwork = CreateObject("WScript.Network") SearchPC = wshNetwork.ComputerName Set objComputer = GetObject("winmgmts:{im
logon.vbsã®å½¹å² logon.vbsã¯ï¼å ±æãã©ã«ãããã©ã¤ãåã«å²ãå½ã¦ãä½æ¥ãï¼ãããã¯ã¼ã¯ããªã³ã¿ã«æ¥ç¶ããä½æ¥ããã°ã¤ã³æã«èªåçã«è¡ããã¨ã主ãªç®çã¨ããã¹ã¯ãªããã§ããã¦ã¼ã¶ã®æå±ããé¨ç½²ã«ãã£ã¦ãããã¯ã¼ã¯ãã©ã¤ãã®å²ãå½ã¦ãå¤æ´ãããï¼ã³ã³ãã¥ã¼ã¿ã«ãã£ã¦æ¥ç¶ãããããã¯ã¼ã¯ããªã³ã¿ãé常使ãããªã³ã¿ãå¤æ´ãããã§ããããã«ãªã£ã¦ãã¾ãã é¨ç½²ã«ãããããã¯ã¼ã¯ãã©ã¤ãã®å²ãå½ã¦ãèªåçã«ã§ããã®ã§ï¼åã¦ã¼ã¶ã«è¨å®ä½æ¥ããã¦ãããå¿ è¦ããªãã ããªã³ã¿ã®å²ãå½ã¦ãèªåã§ãããã¨ã«ããï¼æ°ããã³ã³ãã¥ã¼ã¿ãå ¥ã£ã¦ããã¡ãã¡ããªã³ã¿ã®ã¤ã³ã¹ãã¼ã«ä½æ¥ãããå¿ è¦ããªããã¾ãæ°ããããªã³ã¿ãå ¥ã£ãå ´åã§ããµã¼ãã«ããªã³ã¿ãã¤ã³ã¹ãã¼ã«ãè¨å®ãã¡ã¤ã«ã«è¨è¿°ã追å ããã ãã§ããï¼åã³ã³ãã¥ã¼ã¿ã¸ã®ã¤ã³ã¹ãã¼ã«ä½æ¥ãããå¿ è¦ããªãã ãããã®æ©è½ã§ã¯ã©ã¤ã¢ã³ãã³ã³ãã¥ã¼ã¿
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}