New article on PowerShell Magazine: Working with a Uniform Resource Identifier (URI) in PowerShell

The article explains how the [System.Uri] .Net class can be used to manipulate URIs and to convert them into objects. For more information on this topic please have a look at the article that has been posted on PowerShell Magazine:

http://www.powershellmagazine.com/2012/12/24/pstip-working-with-a-uniform-resource-identifier-uri-in-powershell/

Share

One thought on “New article on PowerShell Magazine: Working with a Uniform Resource Identifier (URI) in PowerShell

  1. Gary Liebl

    Jaap,

    I used your PowerShell script to list scheduled tasks on remote computer and ran into a “bug”. My network contains servers from multiple domains, not all of which I have remote access to. When the script hits a server it doesn’t have access to, it duplicates the information from the last server it could connect to. I solved the problem by adding a line to initialize $tasks.

    $schedule.connect($ComputerName)
    $tasks = “” <– new line
    $tasks = $schedule.getfolder("\").gettasks(0)

    Now when the script hits a server it doesn't have access to, the results are null.

    Thank you for publishing your script as it is coming in very handy for a project I have.

    Gary

    Reply

Leave a Reply