I have the following code that creates a process and then continually checks to make sure it's still running.
If it finds that it is closed, it creates it again and then loops forever.
Set objWMIServiceWin32Process = GetObject("WinMgmts:\\.\root\cimv2:Win32_Process")...
I working on a small script here and I'm having trouble getting it to escape correctly.
Here's what I'm dealing with:
SET strShutdownPath=%SystemRoot%\System32\
SET strShutdownProgram=shutdown.exe
SET strShutdownComment=A shutdown has been initiated. The system will shutdown in thirty (30)...
I'm tring to use this function, that I found here:
Sub CreateFolderTree(strTempPath)
On Error Resume Next
If strTempPath <> "" Then
If Not objFSO.FolderExists(objFSO.GetParentFolderName(strTempPath)) Then
Call CreateFolderTree(objFSO.GetParentFolderName(strTempPath))
Else...
I'm tring to work on this function but I'm getting a syntax error (0x80041002). Here is what I pieced together so far:
Function IsUserAdmin(strUser)
Set objWMI = GetObject("WinMgmts:\\" & strComputerName & "\root\cimv2")
For Each objItem In objWMI.ExecQuery("ASSOCIATORS OF...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.