Solved

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

Posted on 2011-03-03
3
564 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:gd6627
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
KenMcF earned 500 total points
ID: 35031918
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
 

Author Comment

by:gd6627
ID: 35038398
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
 

Author Closing Comment

by:gd6627
ID: 35191476
didnt get any more feed back
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question