Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8677511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:28:28+00:00 2026-06-12T20:28:28+00:00

Very new to the powershell game, thought it was time to skill up into

  • 0

Very new to the powershell game, thought it was time to skill up into it. I’m doing OK with the operators etc but I’m having trouble actually working with the returned data, I can’t seem to wrap my head around it.

I’ve parsed a file using Get-Content and a Select-String and passed the returned line into a variable $temp1.

If I look at the properties of $test1 using:

>>$temp1 | select-object -expandproperty Matches

I get the following output:

Groups   : {http://download.avgfree.com/softw/13free/update/u13iavi5825cq.bin, 5825cq}
Success  : True
Captures : {http://download.avgfree.com/softw/13free/update/u13iavi5825cq.bin}
Index    : 447
Length   : 65
Value    : http://download.avgfree.com/softw/13free/update/u13iavi5825cq.bin

The line itself is a long string of garbage, what I’m actually after is now contained in the Value property but for the life of me I can’t figure out how to actually USE it!

Basically what I want to do is use the address in the Value property to issue a download of that particular file.

Apologies if I’m not clear, today is my first PS day so I’m still struggling even to get around the jargon!

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:28:30+00:00Added an answer on June 12, 2026 at 8:28 pm

    On PowerShell V1/2 try:

    $temp1 | Foreach {$_.Matches} | Foreach {$_.Value}
    

    V3 has a nifty member enumeration feature that allows you to simplify that to:

    $temp1.Matches.Value
    

    $temp1 can contain more than one matched line and each matched line could contain more than one match (eg if you used the -AllMatches parameter on Select-String). So it is necessary to iterate all the Matches and for each match, access its Value property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Very new to PHP and ran into some trouble and was wondering if anyone
I am very new to Powershell and am having an issue when using the
Very new to C++ and Cocos2d-x but I was just toying around with CCArray
Very new to FluentNHibernate, but I'm also excited about the area. I've recently started
Very new to XSL (and XML for that matter), but I need to step
I am really very new to powershell. I want to use powershell to read
first of all, I'm very new to Powershell, and I would like to thank
I'm very new to powershell + powercli and am in need of a hand.
I am very new to PowerShell scripting and was experimenting with Function . This
Very new to AJAX, but have learned a bit from online tutorials. If I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.