Solved

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

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

We recently had an issue where out of nowhere, end users started indicating that their logins to our terminal server were just showing a "blank screen." After checking the usual suspects -- profiles, shell=explorer.exe in the registry, userinit.exe,…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
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…

740 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