Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

using a registry entry to copy files from a remote PC (for Citrix)

$
0
0

I am trying to use a script to automate many parts of a virtualization move (Citrix for the end users)

In this script I am trying to get a registry entry on a virtual PC ( finding the host) and use this registry entry to copy their favorites from their remote PC to their virtual PC

 $fav = "HKLM:\Software\Citrix\ICA\Session\"

(Get-ItemProperty-Path$fav).ClientName

$username  =$env:username

**************** the above part works*****************

now I want to insert the .clientname into the part below as well as the username of the currently logged in user

********************************************************

gci \\**missing part for client name**|copy-dest  \\contoso\Citrix\User_Data\%username%\Favorites\C$\users\$username \Favorites\*.url

 I was wandering if someone could point me in the right direction(still learning PS)

Thank you

 If you have any other scripts or ideas how to move a physical environment into Citrix please let me know


Viewing all articles
Browse latest Browse all 6937

Trending Articles