locked
Powershell to copy remote server files to local logged in user RRS feed

  • Question

  • Hello everyone, i tried scouring the technet forums, but couldnt find anything in this situation.

    Example, im getting a new machine, I have 3 co-workers total.

    What id like to do is:

    co-worker 1 logs in and my new machine script fires off and copies the companies files 

    co-worker 2 logs in and my new machine script fires off and copies the companies files 

    Currently what happens is i have a set location for the files, but id like to make it a variable. 

    I found this article:  it mentioned a command but powershell is giving me an error with the :

    $ShortcutFile = "$env:%userprofile%\Desktop"

    Tuesday, July 2, 2019 6:54 PM

All replies