need a powershell script to check the contents of a folder ina remote computer

Example i need to check to see if users are downloading certain types of files  for example check the download folder in the C drive. i like to do this with a powershell script so i dont have to remote to the computer
gd6627Asked:
Who is Participating?
 
KenMcFConnect With a Mentor Commented:
Are you able to access the admin shares of the remote computer? If so you could do this

get-childitem \\computer\c$\download | Select name, length

Or from a list of computer
$computers = "com1", "comp2", "comp3"
$computers | %{
get-childitem \\$_\c$\download | Select name, length
}
0
 
gd6627Author Commented:
Select name is the name of the file? what if i didnt know the name of the file ? i just wanted to do a random pull on the contents of the folder
0
 
gd6627Author Commented:
didnt get any more feed back
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.