Solved

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

Posted on 2011-03-03
3
566 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
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…
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

751 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