Help :-(

Viewing 1 reply thread
  • Author
    • #230197
      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 


      $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


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

      Are you getting any errors?

Viewing 1 reply thread
  • The topic ‘Help :-(’ is closed to new replies.