我正在进行新的VDI基础架构升级。 我们正在从VMWare Horizon View v5.1升级到v6。 我从前面的pipe理员inheritance了这个混乱。
随着升级,我们将用户数据从漫游configuration文件转移到redirect的configuration文件/angular色pipe理和新的文件服务器。 漫游configuration文件和各种configuration文件数据在Server 2008上,我们正在迁移到Server 2012 R2。
我目前正在testingRobocopy,以迁移遍布各种服务器的不同数据,将其合并到新服务器上的1个用户configuration文件位置,因此对于该用户来说是一个全面的举措。 在我的脚本中,当我将数据从某些文件夹移动到相应的文件夹,移动根文件夹和删除重复的文件夹时,可以看到几个逻辑步骤。
我的脚本如下:
REM :Copy roaming profile from old location to new location: Robocopy \\scfile1\StaffProfiles$\WS\Individual\%username%.v2\Desktop \\pvsc-file03.kdl.net\home$\%username%\Desktop /e /copy:datso /mt:32 Robocopy \\scfile1\StaffProfiles$\WS\Individual\%username%.v2\Downloads \\pvsc-file03.kdl.net\home$\%username%\Downloads /e /copy:datso /mt:32 Robocopy \\scfile1\StaffProfiles$\WS\Individual\%username%.v2\Pictures \\pvsc-file03.kdl.net\home$\%username%\Pictures /e /copy:datso /mt:32 Robocopy \\scfile1\StaffProfiles$\WS\Individual\%username%.v2\Favorites \\pvsc-file03.kdl.net\home$\%username%\Favorites /e /copy:datso /mt:32 Robocopy \\scfile1\StaffProfiles$\WS\Individual\%username%.v2\Documents \\pvsc-file03.kdl.net\home$\%username%\Documents /e /copy:datso /mt:32 REM :Copy home profile pictures from old location to new location: Robocopy \\scfile1\Home\%username%\\"My Pictures" \\pvsc-file03.kdl.net\home$\%username%\Pictures /e /copy:datso /mt:32 REM :Copy home profile music and videos from old location to new persona management location: Robocopy \\scfile1\Home\%username%\\"My Music" \\pvsc-file03.kdl.net\persona$\%username%.V2\Music /e /copy:datso /mt:32 Robocopy \\scfile1\Home\%username%\\"My Videos" \\pvsc-file03.kdl.net\persona$\%username%.V2\Videos /e /copy:datso /mt:32 REM :Copy home profile documents to new location Robocopy \\scfile1\Home\%username%\\"My Documents" \\pvsc-file03.kdl.net\home$\%username%\Documents /e /copy:datso /mt:32 REM :Copy remaining home profile root folder from old location to new location: ; Robocopy \\scfile1\Home\%username%\ \\pvsc-file03.kdl.net\home$\%username%\Documents /e /copy:datso /mt:32 REM :Delete un-needed, duplicate folders that were migrated from the above command: RD /s /q \\pvsc-file03.kdl.net\home$\%username%\Documents\"My Music" RD /s /q \\pvsc-file03.kdl.net\home$\%username%\Documents\"My Videos" RD /s /q \\pvsc-file03.kdl.net\home$\%username%\Documents\"My Pictures" RD /s /q \\pvsc-file03.kdl.net\home$\%username%\Documents\"My Documents"
现在,我遇到的问题是,当我login到新的文件服务器作为域pipe理员,并运行脚本代替我当前login的用户名%USERNAME%。 有没有解决的办法?
如果不是,你将不得不从AD填充用户列表或使用通配符来获取它们全部? 或者只有在date不比robocopy中的参数早。 但login脚本的东西也将正常工作:)
希望你相处得好:)