I need a script to search user's PC for database (mdb or Mbl) and tell me where was it located and the user it found it on.

I need to do this to a department label. .

 

ie

w:\work\client.mbd    tsmith

w:\work\inventory      tsmith

 

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

1
If you are looking for powershell script find the link below.... BTW I just googled it *wink*
https://gallery.technet.microsoft.com/scriptcenter/Search-for-Files-Using-340397aa

Answered 05/27/2015 by: khanthecomputerguy
Senior White Belt

Please log in to comment

Answers

0
I did not create this and test so if you have a glitch let me know

you can run a script to do a (the single > overwrites and the >> appends)

run a script against the label

launch a program
$(KACE_SYS_DIR)
cmd
/c dir *.mdb /s > C:\ProgramData\Dell\KACE\user\findmdb.txt
(check wait for completion)
launch a program
$(KACE_SYS_DIR)
cmd
/c dir *.mbl /s >> C:\ProgramData\Dell\KACE\user\findmdb.txt

then create a CIR

shellcommandtextreturn(cmd /c if exist C:\ProgramData\Dell\KACE\user\findmdb.txt type C:\ProgramData\Dell\KACE\user\findmdb.txt)
Answered 05/21/2015 by: SMal.tmcc
Red Belt

Please log in to comment
0

VBScript? Powershell? CMD? Kscript for a KBox?

The folks here are helpful and knowledgeable but somewhat light on psychic ability.

Answered 05/22/2015 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share