Solved

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

Posted on 2011-03-03
3
563 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RSOP Red "X" 7 44
create SRP/Applocker rules in GPO on DC 5 30
Server 2012 R2 TLS 1.2? 2 40
Cannot see all of hard drive on HP Server 7 43
Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
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…

770 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