Microsoft – SharePoint – List of uploaded documents

 

Background

This simple little code has been bugging me for a while.

I have a set of web pages that contains documents and I need to programmatically get the list of images available via hyperlink.

 

Code

Thanks to our web friends, here is as far as we got:

$url = "https://www.myimages.org"

$r = Invoke-WebRequest -URI $url -UseDefaultCredentials

$r.Links |
	  where {$_.href -like '*jpg*'} |
		select outertext

 

Listening

I will fess up and say I sampled Good Kid Rapper, … don’t kill my vibe.  But, it is not kid friendly. And, so went YouTube fishing and searched for “Christian Music 2014” and found a new group:

Switchfoot — Love Alone Is Worth The Fight
https://www.youtube.com/watch?v=rk9Pj3ID0UE&index=20&list=PLWvahZRxLnLMSWeULnub0CCeQzvxGM8hB

References

 

 

 

References – Powershell – Invoke-WebRequest

 

References – Powershell – Operators

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s