| |
zkoolkyle
Posts: 2
Score: 0
Joined: 7/7/2007
Status: offline
|
Hi, My name is kyle and im still just a newb at scripting. This might seem like a simple question or a stupid mistake by me but Im in need of help for a script. I have this script but i keep getting errors when i run it? any help on why??? Its built to change a vlume name. ======================================================= strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colDrives = objWMIService.ExecQuery _ ("Select * from Win32_LogicalDisk where DeviceID = 'C:'") For Each objDrive in colDrives objDrive.VolumeName = "Finance Volume" objDrive.Put_ End ======================================================
|
|