PDA

View Full Version : File ownership (WXP-Pro)



Canadiantech
01-13-2006, 08:00 AM
Hello All,

Im am trying to use a script that will tell me the owner of a file. Eventually evolving into a script that will tell me the owner of all the files in a folder.
I found this on the MS site: http://www.microsoft.com/technet/scriptcenter/scripts/security/ownership/seowvb01.mspx

however when running it i get an error on line 3 char 1. Code: 80041002 Source: SWbemServicesEx

im pretty new at WSH and do not really know what information is missing. I have tried entering in a file name but get string errors.

any suggestions are welcome :)

motoflop
01-13-2006, 11:19 AM
Why do you need script for telling owner of files? If you use command prompt and want quickly to know owner of all files on folder, use command "dir /q".

Canadiantech
01-16-2006, 05:58 AM
With our Disk Quota limits some users cannot remember where they save files, this will aid them. Thanks for the command, but i was looking for a WSH solution for this. If i can just modify the script to looking for a specific user, rather then run that command and see everyones it would be more effective.

jdharm
01-16-2006, 08:56 AM
Moto: Sweet. I never noticed that /q switch before. I did a dir > owner.txt /q on a user volume on a server and the resulting text file was very informative.


Canadian: The script worked just fine for me. Could you post the script exactly as you are using it, as well as let us know what OS you are running it on and what what OS/file system you are trying to use it for?



Josh
<a target="_blank" href=http://www.jdharm.com>www.jdharm.com</a>