Real Geek Forums  

Go Back   Real Geek Forums > Archives > Operating Systems > Windows XP > Windows XP Configuration & Management

Notices

Reply

force logoff of xp hosts before backup job occurs

 

LinkBack Thread Tools Display Modes
Old 11-09-2005, 03:06 PM   #1 (permalink)
Default force logoff of xp hosts before backup job occurs

Greetings,
I have Veritas Backup Software scheduled to initiate the backup job at
2:00am.on a Windows 2000 Server.All other hosts are XP professional.
Unfortunately I have end users who fail to log off the server before backup
jobs occur. The backup jobs continously skipp specific files that are
accessed and locked, while the hosts are still logged into the domain. There
are no backup agents applicable to unlock and backup these specific files.
Is there a script I can use to implement on the hosts at a scheduled time to
force logging off of all xp pro hosts before backup jobs occur? TIA.
Joe


Joe
Guest
 
Posts: n/a
Reply With Quote  
Old 11-09-2005, 04:23 PM   #2 (permalink)
Default Re: force logoff of xp hosts before backup job occurs

Joe wrote:
Quote:
> I have Veritas Backup Software scheduled to initiate the backup job at
> 2:00am.on a Windows 2000 Server.All other hosts are XP professional.
> Unfortunately I have end users who fail to log off the server before backup
> jobs occur. The backup jobs continously skipp specific files that are
> accessed and locked, while the hosts are still logged into the domain. There
> are no backup agents applicable to unlock and backup these specific files.
> Is there a script I can use to implement on the hosts at a scheduled time to
> force logging off of all xp pro hosts before backup jobs occur? TIA.
I would instruct users that backups are not occurring, and that the
backups are for their benefit.

Next, let them know that you're going to log them off so that backups
can complete.

Prior to your backup, use a script on the server that will log off the
console user on the computer(s) in question. You can use the
Win32Shutdown() method of the Win32_OperatingSystem class to do this;
for example (JScript):

computer = "foo";
wmi = GetObject("winmgmts:{impersonationlevel=impersonat e" +
",(shutdown)}!//" + computer + "/root/cimv2");
oscoll = new Enumerator(wmi.InstancesOf("Win32_OperatingSystem" ));
oscoll.item().Win32Shutdown(4);

--
Bill Stewart
Bill Stewart
Guest
 
Posts: n/a
Reply With Quote  
Old 11-09-2005, 06:43 PM   #3 (permalink)
Default Re: force logoff of xp hosts before backup job occurs

Thanks for your reply, however I am not very familar with scripts. Can I
paste this example and use it, or is there a file located somewhere I can
access and install as a scheduled task? TIA

Joe

"Bill Stewart" <llib.trawets@yrautromhcnerf.moc> wrote in message
news:%23zsSTJV5FHA.724@TK2MSFTNGP14.phx.gbl...
Quote:
> Joe wrote:
>
Quote:
>> I have Veritas Backup Software scheduled to initiate the backup job at
>> 2:00am.on a Windows 2000 Server.All other hosts are XP professional.
>> Unfortunately I have end users who fail to log off the server before
>> backup jobs occur. The backup jobs continously skipp specific files that
>> are accessed and locked, while the hosts are still logged into the
>> domain. There are no backup agents applicable to unlock and backup these
>> specific files. Is there a script I can use to implement on the hosts at
>> a scheduled time to force logging off of all xp pro hosts before backup
>> jobs occur? TIA.
>
> I would instruct users that backups are not occurring, and that the
> backups are for their benefit.
>
> Next, let them know that you're going to log them off so that backups can
> complete.
>
> Prior to your backup, use a script on the server that will log off the
> console user on the computer(s) in question. You can use the
> Win32Shutdown() method of the Win32_OperatingSystem class to do this; for
> example (JScript):
>
> computer = "foo";
> wmi = GetObject("winmgmts:{impersonationlevel=impersonat e" +
> ",(shutdown)}!//" + computer + "/root/cimv2");
> oscoll = new Enumerator(wmi.InstancesOf("Win32_OperatingSystem" ));
> oscoll.item().Win32Shutdown(4);
>
> --
> Bill Stewart

Joe
Guest
 
Posts: n/a
Reply With Quote  
Old 11-10-2005, 12:24 PM   #4 (permalink)
Default Re: force logoff of xp hosts before backup job occurs

On Wed, 9 Nov 2005 11:06:35 -0500, "Joe" <candulj@hotmail.com> wrote:
Quote:
>Greetings,
>I have Veritas Backup Software scheduled to initiate the backup job at
>2:00am.on a Windows 2000 Server.All other hosts are XP professional.
>Unfortunately I have end users who fail to log off the server before backup
>jobs occur. The backup jobs continously skipp specific files that are
>accessed and locked, while the hosts are still logged into the domain. There
>are no backup agents applicable to unlock and backup these specific files.
>Is there a script I can use to implement on the hosts at a scheduled time to
>force logging off of all xp pro hosts before backup jobs occur? TIA.
>Joe
>
See tip 0159 » Use a batch file to disconnect user sessions.
in the 'Tips & Tricks' at http://www.jsifaq.com



Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
Jerold Schulman
Guest
 
Posts: n/a
Reply With Quote  
Reply

Tags
None

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Can't force users to logoff Ziv Windows Vista Administration 3 07-11-2007 03:39 AM
Force user logoff from Task Manager SpaceJaguar Windows Vista Performance & Maintenance 0 04-12-2007 09:50 AM
Error occurs when I try to ping gateway Giraffe Windows XP Configuration & Management 0 06-29-2004 03:45 AM
XP PRO immediate logoff occurs before desktop is displayed Skipton Windows XP Security & Administration 2 08-14-2003 07:42 PM
Force logoff before standby James Windows XP Security & Administration 0 06-30-2003 04:58 PM


All times are GMT. The time now is 06:52 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90