aku1

文章列表

office2

再来一张,:)

Comparing the Primary Scripting Tasks

Microsoft® Windows® 2000 Scripting Guide You have now seen the four primary categories of directory administration tasks (creating, reading, modifying, and deleting). The script examples demonstrate how simply and consistently you can complete these tasks using ADSI scripts. Figure 5.1 summarizes each major task category and the set of ADSI scripting steps involved in completing each task. ……

Scripting with rootDSE

Scripting with rootDSE Microsoft® Windows® 2000 Scripting Guide Using rootDSE involves three basic steps. 1. Bind to rootDSE. 2. Use the Get method to read an attribute of rootDSE. 3. Use the attribute returned by rootDSE to construct an ADsPath and bind to a container or an object in the directory. Steps 2 and 3 are often combined to reduce the length of the script. ……

判定可用的driver然后映射网络盘符

主要感觉还缺少错误处理的代码,以后加强,(其中利用了动态数组:)) Dim WshNetworkDim strComputerDim strDriveDim objWMIServiceDim colDisksDim objDictionaryDim arrTestArray()intSize = 0 Set WshNetwork = WScript.CreateObject("WScript.Network")Set objDictionary = CreateObject("Scripting.Dictionary") strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")Set colDisks = objWMIService.ExecQuery("Select * from Win32_LogicalDisk") For Each objDisk in colDisks ……

AD新的特性和改进

Windows Server 2003 对于活动目录进行了许多的改善,使得它功能更强大,更可靠也更经济。……

信任类型

信任类型 域和域之间的通讯是通过信任发生的。信任是为了使一个域中的用户访问另一个域中的资源而必须存在的身份验证管道。使用“Active Directory 安装向导”时,将会创建两个默认信任。使用“新建信任向导”或 Netdom 命令行工具可创建另外四种类型的信任。……

跨林路由名称后缀

来自中文technet 跨林路由名称后缀 名称后缀路由机制可用于管理如何跨越通过林信任连接在一起的 Windows Server 2003 林路由身份验证请求。为简化身份验证请求的管理,最初创建林信任时,默认情况下将路由所有唯一名称后缀。唯一名称后缀是林内不从属于任何其他名称后缀的名称后缀,例如用户主体名称 (UPN) 后缀、服务主体名称 (SPN) 后缀,以及 DNS 林或域树名称。例如,DNS 林名称 microsoft.com 是 microsoft.com 林内的唯一名称后缀。 ……

跨域,forest 访问资源(比较喜欢AD)

跨域访问资源 因为同一林中的两个或更多的 Active Directory 域是通过双向的可传递信任隐式连接在一起的,所以从一个域到另一个域的身份验证请求将能够成功路由,从而实现了无缝的资源跨域共存。用户必须首先在自己的域内经过身份验证,才能访问其他域中的资源。 ……

Lotus program document

说实话,这里不是很清楚,帮助也没清楚说明,只好摘点: 1.This Win32 program is used in program docs to execute any console command on schedule such as: Tell http restart Show tasks Example: Program name: nconsole.exe Command line: SERVER/ACME "tell smtpmta compact all" Server to run on: SERVER/ACME You also have to have the server name in the Administrator section of the server document in the name and address book. ……

How to add a standard disclaimer into all outgoing SMTP messages in Domino

Technote (FAQ) Problem How can a standard disclaimer be added to all outgoing SMTP messages in a Domino environment? Solution In Domino release 6.x and earlier, there is no centralized and controlled way to do this with the native code. Lotus Domino 7.0 now features support for message disclaimers. For information on message disclaimers, see the tip, "Using message disclaimers in Lotus Notes/Domino 7."……

关于实时监视客户端软硬体的构想(没用过sms不知怎样)

开始想利用脚本实现,于是去msdn中找,半天也没找到(本来是想找一个win32pnp硬件之内的类,但没发现,可能是对编码不熟缘故,但另外也要实现软件的)总之,应该是没有现成的,我想原理应该是和sms一样做一个类似 agent的东西,持续远行,一检测到更改便自动发e-mail给管理员,我想应该有两种手段, 1。构造一个 class,但不是很熟 2,把功能packe成exe,丢到客户端(我想也不是很耗资源,类似个木马) 我倾向于方法2,不知那位兄弟有兴趣,或者这样功能有必要吗?

HTA(奇怪吧,这是什么?)

由于script不能提供GUi,这里需要提下HTA,Script centre 有专门文章(这里特别强调一下,做Microsoft的无论管理开发一定要去MSDN) 转载两篇文章 Creating Your Own HTAs: Part 1 • Creating Your Own HTAs: Part 2 ……

Dandelions, VCR Clocks, and Last Logon Times: These are a Few of Our Least Favorite Things

根据脚本中心文章由于Active directory储存日期和时间比较特殊,所以用Vbscritp处理有些怪怪,这里摘一篇文章 Sometimes the things that should be so easy turn out to be incredibly difficult. For example, have you ever tried to get rid of dandelions? (One of the Scripting Guys once found a dandelion growing on the roof of his house.) How about getting your VCR clock to stop flashing 12:00 over and over again?……

钉子兄你的Blog不能流言多保重,谢谢<      >今天我好无聊又写了个脚本

查找电脑软体,并输出成htm,哈哈 Const ForWriting = 2Set objFSO = CreateObject("Scripting.FileSystemObject")Set objFile = objFSO.CreateTextFile("C:\FSO\ScriptLog.htm", ForWriting) strHost = "."Const HKLM = &H80000002Set objReg = GetObject("winmgmts://" & strHost & _ "/root/default:StdRegProv")Const strBaseKey = _ "Software\Microsoft\Windows\CurrentVersion\Uninstall\"objReg.EnumKey HKLM, strBaseKey, arrSubKeys ……