۱۵-آبان-۱۳۸۹, ۱۰:۴۱:۵۹
سلام دوستان،
می تونید توابع و دستورات کد زیرو خط به خط بگید که چه کار می کنه؟
می تونید توابع و دستورات کد زیرو خط به خط بگید که چه کار می کنه؟
set wshell = Createobject ("wscript.shell")
regkey = "HKEY_CURRENT_USER\Software\Microsoft\Windows Media\WMSDK\General\"
A = wshell.RegRead (regkey & "ComputerName")
strComputer = A
Set objWMIService = GetObject("Winmgmts:" & "{impersonationLevel = impersonate , (Shutdown)}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery ("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
objOperatingSystem.Reboot()
Next
regkey = "HKEY_CURRENT_USER\Software\Microsoft\Windows Media\WMSDK\General\"
A = wshell.RegRead (regkey & "ComputerName")
strComputer = A
Set objWMIService = GetObject("Winmgmts:" & "{impersonationLevel = impersonate , (Shutdown)}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery ("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
objOperatingSystem.Reboot()
Next