Going to a path without white space it works as expected.
I also tried putting quotes around the entire entry and that didn't work. Strange.
Thanks for the help.
Not sure why I can't get this to work. Running the output from the wscript.echo line on the command prompt works fine and outputs the text file. But doesn't within the script (doesn't create the text file). I'm pretty sure it has to do with the spaces in the path but since it works with copy...
Any one knwo if an AD object has a modified by attribute?
I see whenChanged, whenCreated attributes but would also like an attribute showing who last modified it or created it. Does that exist?
Thanks in advance.
Can some help me one how I can enumerate all user properties in AD instead of having to specify what I want like below? I'm looking for a specific value but also want to know the attributeName that is hold it. Thanks in advance.
objCommand.CommandText = "<" & strADsPath &...
...throwing me off.
Here is what I have so far
Function mySqlDate(myDate)
If Len(myDate) > 0 Then
If Len(myDate) > 8 Then
YMD = ( Year(myDate)*100 + Month(myDate) )*100 + Day(myDate)
hms = Right((Hour(myDate)*100+Minute(myDate))*100+Second(myDate)+1e7, 6)
mySqlDate = Left(YMD,4) &...
Got a strange one that I can't get figured out. The script works great on several other machines but for some reason won't on one machine where I need to run it. I get the "Not enough server storage to process that command"
Thanks in advance.
The line it errors on is highlighted in red...
Can someone help me on how to get the systemdrive variable on a win2k box? I know how to do it on win2k3 using the win32_operatingsystem just can't get it figured out for a win2k box.
I just love all the ways things can be done. Here's what I did
Function GetTime(vServer)
On Error Resume Next
Const OpenAsDefault = -2
Const FailIfNotExist = 0
Const ForReading = 1
Set oShell = CreateObject("WScript.Shell")
Set oFSO =...
I have a for loop question on how to move to the next item if a condition is meant (Not Exit the for just move to the next item)
For i to Ubount(array)
if something = something Then
<----- Go to the next item in the for ----->
End if
Do other stuff here if...
...& strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("SELECT * FROM Win32_Process WHERE Name ='notepad.exe'")
For Each objProcess in colProcessList
WScript.Echo "Process name: " & objProcess.Name
intRC = objProcess.Terminate()
Next
if intRC = 0...
Ok I figured out why but brings up another question with it. I had the process up and running under a different account than from the one I am kill from. So how can I kill the process even though its running as a different user? (I am an Administrator on the box)
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.