Listing Files On A Remote Machine

 

To get a listing of all the files in a particular folder on a remote machine is quite easy to accomplish in PowerShell.

 

For example if you want to see if there are any files in a particular SMS site server inbox you would use something similar to the line below:

 

Get-ChildItem \\SmsServer\SMS_XXX\Inboxes\Ccrretry.Box

 

If you were to enter the following:

 

Get-ChildItem \\SmsServer\SMS_XXX\Inboxes

 

You will get a listing of all the folders contained in the inboxes on the site server. This will allow you to immediately see all of the Inbox folders so that you can modify the first example to look for files contained in for example the Ddm.Box.

 

Published Sunday, September 24, 2006 7:31 AM by dhite
Filed under:

Comments

No Comments