A scripting for rebooting system
来源:互联网 发布:阳光甜橙软件网址 编辑:程序博客网 时间:2024/05/23 19:17
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!/" & strComputer & " ootcimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Reboot()
Next
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!/" & strComputer & " ootcimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Reboot()
Next
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=458734
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- A scripting for rebooting system
- Python Scripting for ArcGIS
- 对微软操作系统做Ghost的一点小误区
- 反病毒实时监控测试样本
- Why you shouldn't run as admin...
- 网管日志_Feb012005
- 网管日志_Feb012005
- A scripting for rebooting system
- Why you shouldn't run as admin...
- 小谈Ping在网络测试中的作用
- 对微软操作系统做Ghost的一点小误区
- 解决了CSDN Bug,终于可以发表文章了。
- MSN尾巴病毒手工清除方法
- 安全信息收集
- 常见批处理应用小集
- 安全信息收集