Overclock.net › Forums › Software, Programming and Coding › Networking & Security › [Windows Server 2008 R2 GPO] Group policy script slowing down login/off
New Posts  All Forums:Forum Nav:

[Windows Server 2008 R2 GPO] Group policy script slowing down login/off

post #1 of 3
Thread Starter 
Hi guys,

We recently added a rather simple script, to the default domain policy of our network, that makes a backup of people's desktop when they log-off and places it in their personal folder on an on-site file server.

But now, logging off the network takes forever, if it succeeds at all. So we had to remove the script again...

This is the script.
Code:
@echo off
XCOPY C:\Users\%USERNAME%\Desktop \\DomainNameGoesHere\data\userdata\%USERNAME%\Desktop /S /i

Do you guys have any ideas on how to tackle this program? Or another way of achieving the same result, without having to do it locally?

Note: I tried it by adding a task to the Scheduled Tasks for the GPO but this requires me to check "Run whether user is logged on or not" but this doesn't work since you need to provide a password for a variable user (which is impossible).

Note: We're using Windows Server 2008 R2 Enterprise on the DomainController and the hosts use Windows 7 and XP.
Note 2: Running the script locally works fine.
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
post #2 of 3
When the system is logging off, is the backup occurring in the background as expected? If you're trying to do this via a slow WAN link or when disconnected from the network entirely, I can imagine this would take for freaking ever to complete the backup or time out.

There may be a way to add the desktop as an offline folder and use "Offline Files" in XP or "Sync Center" in 7.
    
CPUMotherboardGraphicsRAM
2x intel Xeon E5-2650 Supermicro MBD-X9DR3-F-O Onboard awesomeness 8 x 8GB Kingston DDR3 1333 ECC 
Hard DriveCoolingOSMonitor
4x WD Green 2TB in RAID 10 2x Coolermaster Hyper 212 EVOs Windows Server 2012 Datacenter 3x Dell Ultrasharp U2410s 
PowerCase
Corsair AX1200 Case Labs TX10-D 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
2x intel Xeon E5-2650 Supermicro MBD-X9DR3-F-O Onboard awesomeness 8 x 8GB Kingston DDR3 1333 ECC 
Hard DriveCoolingOSMonitor
4x WD Green 2TB in RAID 10 2x Coolermaster Hyper 212 EVOs Windows Server 2012 Datacenter 3x Dell Ultrasharp U2410s 
PowerCase
Corsair AX1200 Case Labs TX10-D 
  hide details  
Reply
post #3 of 3
Thread Starter 
Yes once they computer finally logged out and logged back in, the backup was successful. And if it didn't logout and restarted the pc, it was successful aswell.

I'll have a look at sync-center as I'm not familiar with it.

Thank you for you answer!

Edit/Update: Not sure that the sync center can do what I want.

I want the Desktop Folder on the network drive to have the same contents as the local Desktop Folder.

The Sync center just seems to make a new offline location for the Network Desktop Folder.

Edit/Update 2: Ran LAN Speed Test Lite between the local pc and the network location for a quick idea of the network's speed.

59.9 Mbps Write/ 73.5 Mbps Read
Edited by Shinhidora - 11/15/13 at 12:29am
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
My System
(28 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i7 950 X58 Extreme NVIDIA GeForce GTX 760 NVIDIA GeForce GTX 760 
GraphicsRAMRAMRAM
NVIDIA GeForce GTX 460 Kingston  Kingston  Kingston  
RAMRAMRAMHard Drive
Kingston  Kingston  Kingston  2 TB Samsung HDD 
Hard DriveCoolingCoolingOS
OCZ 120 GB Agility 3 SSD Corsair Cooling Hydro Series H80 Scythe Kaze Fan Controller Windows 7 Ultimate 64bit 
MonitorMonitorMonitorKeyboard
3x BenQ XL2420  Philips HDTV 2x Fujitsu Siemens 24" Razer Lycosa Mirror Edition 
PowerCaseMouseMouse Pad
Antec Truepower TP-750 Cooler Master HAF 912 Plus Razer Deathadder Razer Vespula 
AudioAudioAudio
Muse Pocket LT3  Razer Megalodon Logitech Dolby 5.1 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › [Windows Server 2008 R2 GPO] Group policy script slowing down login/off