Help :-(

Viewing 1 reply thread
  • Author
    Posts
    • #230197
      Participant
      Topics: 4
      Replies: 10
      Points: 51
      Rank: Member

      Hey Guys,

      Having some troubles finishing off this. This is how it should go

      Prompt to enter the folder name e.g. Enter username

      Perform the Search in the share drive location 

      Copy username folder and content to users one drive 

      /pre

      $DestBase = ‘\\tpin01\it_data\Backups’
      $Search = Read-Host -Prompt “Enter username:”

      Get-ChildItem -Path \\tpin01\IT_Data\Backups -Filter $Search -Directory -Recurse -ErrorAction SilentlyContinue -Force |
      Copy-Item -Destination “$env:USERPROFILE\OneDrive” -Recurse -Force

      /pre

    • #230314
      Participant
      Topics: 3
      Replies: 50
      Points: 124
      Helping Hand
      Rank: Participant

      Are you getting any errors?

Viewing 1 reply thread
  • You must be logged in to reply to this topic.