force logoff of xp hosts before backup job occurs


Go Back   Computer Help Articles > Windows XP Configuration Manage
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006, 07:29 AM
Joe
 
Posts: n/a
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


Reply With Quote
  #2  
Old 01-05-2006, 07:29 AM
Bill Stewart
 
Posts: n/a
Default Re: force logoff of xp hosts before backup job occurs

Joe wrote:

> 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
Reply With Quote
  #3  
Old 01-05-2006, 07:29 AM
Joe
 
Posts: n/a
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...
> Joe wrote:
>
>> 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



Reply With Quote
  #4  
Old 01-05-2006, 07:29 AM
Jerold Schulman
 
Posts: n/a
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:

>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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP - Force Feedback 2 - Adjustments and Test Forces CAN WORK! phuzzy_davis@yahoo.com Windows XP Games 2 01-05-2006 07:53 AM
Backup failure a1i50n Windows XP Security Admin 1 01-05-2006 05:44 AM
Force logoff other accounts at hibernate Kent, Norway Windows XP Security Admin 2 01-05-2006 04:39 AM
How to create backup for my laptop manoj Windows XP Basics 1 01-05-2006 02:12 AM
BACKUP and RESTORE question Joe S. Windows XP Basics 7 01-05-2006 02:09 AM


All times are GMT. The time now is 01:16 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

force logoff of xp hosts before backup job occurs