Skip to content

paveljurca/i

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

i — does the file path exist on a remote PC?

Test for arbitrary system file (or directory or desktop shortcut) paths exist on a remote PC.

It comes handy in work or school environments to know the program (usually some executable file) is present — as it probably should (for example after network un/installations or remote deployments).

For simple maintenance it uses a CSV file to store the full file paths to check upon.

Output:

jm361h01   | C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE | PC off
jm361h02   | C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE | OK
jm361h03   | C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE | OK
jm361h04   | C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE | PC off
jm361h05   | C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE | PC off
jm361h06   | C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE | PC off
jm361h07   | C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE | PC off
jm361h08   | C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE | OK
jm361h09   | C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE | PC off
jm361h10   | C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE | OK

Dependency:

PsExec or PAExec (download it and put it in the current folder).

For PsExec to work, the following is required:

  • File and Printer Sharing enabled
  • browser, server, lmhosts and lanmanworkstation services running
  • Default Admin$ share enabled
  • Remote UAC LocalAccountTokenFilterPolicy enabled
  • Local administrative privileges on the remote system (tip: cmdkey.exe)

https://stackoverflow.com/questions/828432/psexec-access-denied-errors

SYNOPSIS

Run i.exe >installed.txt as Administrator

DOWNLOAD

v0.1.0

NOTES

  • If you omit the computer name PsExec runs the application on the local system
  • For network drives login explicitly, i.e. -u [user] -p [password] options

RELEASE NOTES

TODO

  • sort ascending

  • directory is NON empty

  • support for multiple values (delimiters: space, comma or asterisk for all)

  • command-line invocation

  • check files exist without actually listing full paths (must be in %PATH%)

    system(qw(where /r "%ProgramFiles(x86)%" /q), 'winword.exe') or say "winword.exe OK";
    my @whereis = split /\r?\n/, qx(where /r "%SystemDrive%" $file 2>NUL:), say $? >> 8 == 0 ? "found" : "not found";

LICENSE

Released into the public domain.

DISCLAIMER

Don't blame me.

About

i — does the file path exist on a remote PC?

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages