2013 Scripting Games archives 404

This topic contains 4 replies, has 2 voices, and was last updated by  Don Jones 3 years, 7 months ago.

  • Author
    Posts
  • #12725

    Vern Anderson
    Participant

    From https://powershell.org/the-scripting-games when I go to view the 2013 archives they're not there.

    I wanted to help some one on the https://www.facebook.com/groups/5901799452/ Scripting guys page on facebook by showing him Teresa's (ScriptingWife) event one from last year. It would have solved his problem almost exactly.

    Will that content be restored?

    -VERN

  • #12731

    Don Jones
    Keymaster

    That content will not be restored, unfortunately.

  • #12732

    Vern Anderson
    Participant

    Man that's a bummer I hope she's OK with me re-posting that, to help a guy on her and Ed's facebook page.

    -VERN

  • #12733

    Don Jones
    Keymaster

    I'm sure she is. FWIW, we've made arrangements to archive Games content henceforth.

  • #12726

    Vern Anderson
    Participant

    This was her original script for event 1:

    < # .SYNOPSIS Moves application log files that are older than 90 days to \\NASServer\Archives. .DESCRIPTION This script was originally written for Event 1 of the 2013 Scripting Games (Beginners Track). .EXAMPLE C:\Scripts\Move-LogFiles.ps1 #>

    $files = Get-ChildItem –Path “C:\Application\Log” -Filter *.log –Recurse | Where-Object -FilterScript {$_.CreationTime –lt (Get-Date).AddDays(-90)}

    foreach($file in $files)
    {
    if(!(Test-Path -LiteralPath "\\NASServer\Archives\$($file.Directory.Name)"))
    {
    New-Item -Path "\\NASServer\Archives\$($file.Directory.Name)" -ItemType Directory -ErrorAction Stop | Out-Null
    }

    Move-Item -Path $file.FullName -Destination "\\NASServer\Archives\$($file.Directory.Name)\$($file.Name)"
    }

You must be logged in to reply to this topic.