Question : Owner  file permissions

Guys and Gals I need some assistance. I am sort of a newbie to scripts.
 However, I managed to get this one to work after spending sometime  with the script.
 Here is the issue now after running the script. We have users on our network who have word files, PST files, excel files etc.. scattered throughout the network drive.
 Some are stored 3-4 levels down and some are at the root level. I got the script to work and pick up files by the extension no matter what drive is mapped. However, its not smart enough to tell me exactly who that user is.
I would like to have scripted the user name or cn of that person as far as the output. For example here is an illustration of the output

y:\temp\
microsoft office outlook 2007 inside out.pdf
35354062

If I could get this instead

y:\temp\
microsoft office outlook 2007 inside out.pdf
35354062
username or cn of this person who owns the file more than likely the person who created this.

Here is the script below.

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer &

"\root\cimv2")

Set colFiles = objWMIService.ExecQuery _
    ("Select * from CIM_DataFile Where Extension = 'pdf'")

For Each objFile in colFiles
    Wscript.Echo objFile.Drive & objFile.Path
    Wscript.Echo objFile.FileName & "." & objFile.Extension
    Wscript.Echo objFile.FileSize
    Wscript.Echo
Next

Answer : Owner  file permissions

Yup that's exactly what I was looking for.

Basically your prints are going through another PC/Server called "ccprint01" and the printer name is "printer4"

in other words ccprint01 has total control of the printer and the print jobs that it's processing. But this doesn't answer our question why your print spooler service is running so high. It could be a local problem or a problem with the ccprint01

Let's do this, delete all your printers and see if the spoolsv.exe will drop it's CPU use. Then start adding one printer at a time and see when your problem starts.

Your problem could simple be one of the 4 printer drivers that is causing the issue.

Random Solutions  
 
programming4us programming4us