Running ntbackup via psexec

Posted on 2008-11-03
Last Modified: 2011-09-20
I want to run this command on Windows 2003 Standard to backup system state of computers to network share. Via psexec it is working on all Windows 2000 Prof computers, but all Windows XP Prof computers are returning error code 31. When I run the command locally from XP computers, the backup is working just fine and is saved to the network share (drive Z). Firewall service is disabled.

What is wrong?
psexec -u USERNAME -p PASSWORD \\%%t ntbackup backup systemstate /F "Z:\Computers Backup\%%t.bkf"

Open in new window

Question by:haldoxp
    LVL 18

    Expert Comment

    LVL 18

    Expert Comment

    LVL 3

    Author Comment

    sk_raja_raja - already modified the script according to these links before my first post.

    "31 A device attached to the system is not functioning". I assume ntbackup cannot use the Z drive. Question is why it is working on 2000 and not on XP and only remotly via psexec.

    LVL 3

    Accepted Solution

    I modified the script so it is now pointing to \\servername\sharename. Also it is working when I use built in administrator. I found out that the user I was using didn't had enough permissions on network computers so I added the account to Backup Operators.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Too many email signature updates to deal with?

    Are you constantly visiting users’ desks making changes to email signatures? Feel like it’s taking up all of your time? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

    1. Boot PC and press F10, select storage options and change the compatibility from “AHCI” to “IDE”, save and exit 2. Boot PC and press F12 3. Upon PXE display of searching for DHCP server, press Pause break to obtain MAC address 3. Open Configu…
    My previous article  ( one possible method to get SCCM 2007 installed an…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now