Copy file to users home drives


sorry new ps.

i need script copy files home drives of our users. using folder redirection users app data , reason when app data directory created the sendto shortcuts not being created.

i need copy shortcuts users sendto directory. example path:

 \\server\users\<username>\appdata\roaming\microsoft\windows\sendto

thanks in advance.

 

 

copy-item [-literalpath] <string[]> [[-destination] <string>]

so:  copy-item c:\temp\foo.lnk \\server\users\$username\appdata\roaming\microsoft\windows\sendto



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

CRL Revocation always failed

0x300000d errors in Microsoft Remote Desktop client

Failed to query the results of bpa xpath