随笔分类 -  脚本(bat Wscript CScript 批处理 shell)

摘要:ChangeStartMode Method of the Win32_Service ClassThe ChangeStartMode WMI class method modifies the start mode of a Win32_Service.This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.SyntaxMOFuint32 ChangeStartMode( [in] string StartMo 阅读全文
posted @ 2009-03-04 16:18 dzqabc 阅读(350) 评论(0) 推荐(0) 编辑
摘要:1 VBS取得本机IP strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set IPConfigSet = objWMIService.ExecQuery("Select IPAddress from Win32_NetworkAdapterConfiguration Where IPEnabled=TRUE") For Each IPConfig in IPCo 阅读全文
posted @ 2009-03-04 10:26 dzqabc 阅读(3279) 评论(0) 推荐(0) 编辑
摘要:sc config RpcSs start= auto 注意等号后面后空格 sc create命令行添加/创建/修改服务添加服务:sc create BITS binpath= "C:\WINDOWS\system32\svchost.exe -k netsvcs" type= share star 阅读全文
posted @ 2009-03-03 11:35 dzqabc 阅读(278) 评论(0) 推荐(0) 编辑
摘要:@echo oFF ::code by LZ-MyST QQ:8450919 BLOG:http://hi.baidu.com/lzmyst http://www.clxp.net.cn if "%1" neq "1" ( >"%temp%\tmp.vbs" echo set WshShell = 阅读全文
posted @ 2009-03-03 10:33 dzqabc 阅读(597) 评论(0) 推荐(0) 编辑