VSS: Undo Someone Else’s Check Out

One of my colleges is off sick today. I need to edit some files that he was working with on Friday. Unfortunately, he checked out these files in Visual Source Safe (VSS), but did not check them back in. As a result, Visual Studio won’t let me make any changes to these files.

From time-to-time, most VSS users need to check someone else’s files back in because they are not available to do so. Normally, in VSS, the option to undo check out is greyed-out on a file that someone else has checked out. However, if you run VSS as the Admin user, you can undo check out for another user.

To run VSS as Admin (Windows XP, VSS6):

Open a command prompt. Type the command line for VSS explorer, followed by “-yadmin”. For me this is ‘ “C:\Program Files\Microsoft Visual Studio\VSS\win32\SSEXP.EXE” -yadmin’ (including the double-quotes).

Select the database you want, and enter the admin password:

You can now right-click the files you want and undo check out:

You can accept the default on all subsequent prompts.

My thanks to Marc Hoeppner for his excellent article from which I gleaned this information.


16 Responses to VSS: Undo Someone Else’s Check Out

  1. Dawid says:

    instead of using ssadmin, use ssexp.exe

  2. kramii says:


    You’re right. Thanks for the correction. I’ve updated the article.

  3. David says:

    Thanks for the help! Got me out of a troubling situation.


  4. David says:

    Thanks for the help! Got me out of a troubling situation.


  5. irene says:

    I have the same problem, but when I login as admin to VSS, I cannot see any of file in the VSS but the folder on the left side. Its different when i use another account. Could help ?

  6. Greg says:

    Thanks for the help.

    No need to use the command line though. You can use the “File / Open SourceSafe Database” menu option. On the “Open SourceSafe Database” dialog, type in “Admin” in the Username field.

  7. Jacob says:

    Just wanted to say thanks for the article 🙂 Just what i needed

  8. sayalik says:

    Helpful and concise. Thanks! 🙂

  9. smitha says:

    solved my big problem………….tonnes of thanks

  10. Sashi says:

    Thanks for the post. Was a timely help.

  11. Manoj says:

    Thanks, The post helped to proceed 🙂

  12. Kim says:

    very helpful. Thanks!

  13. AL says:

    Yes but what happens if no one in the Company knows the ADMIN password

  14. It’s an amazing article in support of all the online viewers; they
    will take advantage from it I am sure.

  15. Valentin says:

    I like the helpful information you provide in your articles.
    I’ll bookmark your blog and check again here frequently. I am
    quite certain I’ll learn many new stuff right here!
    Best of luck for the next!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: