Click here to Skip to main content
15,910,773 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: Search file by ownership of user Pin
Mekong River3-Mar-09 18:02
Mekong River3-Mar-09 18:02 
GeneralRe: Search file by ownership of user Pin
Dave Kreskowiak3-Mar-09 18:08
mveDave Kreskowiak3-Mar-09 18:08 
GeneralRe: Search file by ownership of user Pin
Mekong River3-Mar-09 21:19
Mekong River3-Mar-09 21:19 
GeneralRe: Search file by ownership of user Pin
Sebastian Schneider3-Mar-09 23:31
Sebastian Schneider3-Mar-09 23:31 
GeneralRe: Search file by ownership of user Pin
Mekong River4-Mar-09 14:26
Mekong River4-Mar-09 14:26 
QuestionRe: Search file by ownership of user Pin
panjinshun20-Mar-09 22:44
panjinshun20-Mar-09 22:44 
AnswerRe: Search file by ownership of user Pin
Mekong River26-Mar-09 15:16
Mekong River26-Mar-09 15:16 
AnswerRe: Search file by ownership of user Pin
Jörgen Andersson9-Mar-09 13:30
professionalJörgen Andersson9-Mar-09 13:30 
You can do it with WMI scripts, but it will be slow.

To start you off, how to find the owner of the file "C:\MyDoc.doc":

On Error Resume Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
      & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

strFile = "C:\MyDoc.doc"

Set colItems = objWMIService.ExecQuery _
    ("ASSOCIATORS OF {Win32_LogicalFileSecuritySetting='" & strFile & "'}" _ 
        & " WHERE AssocClass=Win32_LogicalFileOwner ResultRole=Owner")

For Each objItem in colItems
    Wscript.Echo objItem.ReferencedDomainName
    Wscript.Echo objItem.AccountName
Next


There's plenty more info at Microsoft ScriptCenter[^]
GeneralRe: Search file by ownership of user Pin
Mekong River9-Mar-09 15:26
Mekong River9-Mar-09 15:26 
QuestionBlue Screen on booting from WinX Pin
scorp_scorp2-Mar-09 20:57
scorp_scorp2-Mar-09 20:57 
AnswerRe: Blue Screen on booting from WinX Pin
User 17164922-Mar-09 21:29
professionalUser 17164922-Mar-09 21:29 
AnswerRe: Blue Screen on booting from WinX (SOLVED) Pin
scorp_scorp2-Mar-09 21:53
scorp_scorp2-Mar-09 21:53 
GeneralRe: Blue Screen on booting from WinX (SOLVED) Pin
Noctris4-Mar-09 2:35
Noctris4-Mar-09 2:35 
QuestionSMTP port Pin
Komsot1-Mar-09 23:15
Komsot1-Mar-09 23:15 
AnswerRe: SMTP port Pin
Garth J Lancaster1-Mar-09 23:25
professionalGarth J Lancaster1-Mar-09 23:25 
Questionmake Ms. Office run fast Pin
Komsot1-Mar-09 22:39
Komsot1-Mar-09 22:39 
AnswerRe: make Ms. Office run fast Pin
Mekong River2-Mar-09 20:36
Mekong River2-Mar-09 20:36 
Questiondesktop.ini Pin
Komsot26-Feb-09 21:35
Komsot26-Feb-09 21:35 
AnswerRe: desktop.ini Pin
Mekong River26-Feb-09 23:02
Mekong River26-Feb-09 23:02 
QuestionTime Zone is changed Pin
Komsot26-Feb-09 15:10
Komsot26-Feb-09 15:10 
AnswerRe: Time Zone is changed Pin
Mekong River26-Feb-09 15:24
Mekong River26-Feb-09 15:24 
GeneralRe: Time Zone is changed Pin
dinna4-Mar-09 20:57
dinna4-Mar-09 20:57 
QuestionERROR_BAD_COMMAND Pin
vijaypcp26-Feb-09 3:05
vijaypcp26-Feb-09 3:05 
Questioncopy history list to new profile Pin
Komsot25-Feb-09 21:25
Komsot25-Feb-09 21:25 
AnswerRe: copy history list to new profile Pin
Mekong River26-Feb-09 15:06
Mekong River26-Feb-09 15:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.