Ana içeriğe atla

How to unlock the files that are unlocked by other users in Azure DevOps

After an employee quits you should remove his/her permissions on TFS Azure DevOps. Unfortunately if you have deleted the user before checking his locks like me, you need to make him release the files that are cheked out to him. Of course you will not be able to reach him and ask for help.

So here is the solution for you.

1 - Get your backups. This is important. Some files may be gone. I have face this issue. Just do it now.

2 - You have to delete the workspace belongs to him.

3 - It is automatically unlocked. 

4 - Succeded. Congrats. 


How to delete the workspace in TFS DevOps?

1 - Open the Visual Studio Command Line: Tools > Command Line > Developer Command Prompt

2 - Write these (better copy-paste) tf workspaces /owner:* /computer:* /format:xml

3.1 - In the xml you may find 

           a. The name of the workspace, (DESKTOP-WORKSPACE_1)

           b. GUID for the user (c60e9e21-9a7a-6a27-8ba5-7db078885f7a)

           c. mail address for the user (mydear@colleague.com)

3.2 - If there is no xml then you dont have rights to do this operation. Go find someone to do this for you.

4 - So prepare this line in notepad editor.

tf workspace /delete DESKTOP-WORKSPACE_1;c60e9e21-9a7a-6a27-8ba5-7db078885f7a\mydear@colleague.com

5 - Paste the line into command prompt and press enter.

6 - It will ask Yes or No. Write Yes. :) Then it is completed. 


This worked for me. I hope this takes also your headache.



I searched for these phrases and I hardly find a solution combining the ideas and comments. Maybe someday if I need this and can't remember the solution then I will search with the same phrases probably. 

DevOps force unlock

DevOps unlock the files that are checked-ou by other users

devops how to delete users workspace

How to delete workspace owned by someone else.

 tf workspace /delete

Yorumlar

Bu blogdaki popüler yayınlar

İzmir'de ne yapılır? (alıntı)

Okumanızı şiddetle tavsiye ediyorum. Bir sitede rastladım fakat çok hoşuma gitti. 7 senedir izmirde yaşayan birisi olarak hemen hemen hepsini onaylıyorum. Şimdilik sadece alıntı olarak yayınlıyorum. Belki sonra kendim benzer bir liste oluşturabilirim.   Kendi Yapmış olduğum listeye buradan erişebilirsiniz. İzmir´e Yeni Gelenler İçin 100 Maddede İZMİR 1-İstanbul´dan geldiyseniz, burada da karşı kavramı vardır. Şaşırmayın. 2-Boyoz´un ne olduğunu hemen öğrenin ve evinize yakın bir boyozcu bulun. 3-İlk gördüğünüz kıza yiyecekmiş gibi bakmayın, zira çok var onlardan, alışın. 4-Bu şehirde -özellikle İstanbul´dan geldiyseniz- insanlar birine çarptıklarında özür diler, genelde sabahları "günaydın", akşamları "iyi akşamlar", gün genelindeyse "iyi günler" diyerek güler yüz gösterirler. "Teşekkür ederim" de en çok duyacağınız kelime gruplarından biridir. 5-Daha önceden yediğiniz adı kumru olan sandviçlerin hepsinin dandik olduğunu kabul edi...

HP notebook fn tuşu iptal etme

Eğer siz de benim gibi fonksiyon tuşlarını (F1, F2, .... , F12) çok kullanan birisiyseniz ve hp notebookunuz ile sürekli olarak fn tuşuna basmanız gerekiyorsa, sorunun çözümü oldukça basit. Bilgisayarınızı yeniden başlatıp f10 tuşu ile bios ayarlarınıza girin. System configuration sekmesinden Active Keys seçeneğini disabled konumuna getirin. Kayıt edip çıkın. İşlem tamamdır.

Flash AS3, ASP.NET and MSSQL connectivity

To connect your flash actionscript project to a database the easiest way is to use dynamically creating XML method. With this code snippet you may load xml file into swf. If you implement MyDataXML.aspx as responsing XML file flash will accept it as an xml file. var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, loadXML); loader.load(new URLRequest(“ MyDataXML.aspx”)); function loadXML(e:Event):void { xml = new XML(e.target.data); trace(xml); } To make an aspx file responsing XML file this code block you should write into page_load method. System.Web.HttpResponse response = System.Web.HttpContext.Current.Response; response.Buffer = true; response.ClearContent(); response.ClearHeaders(); response.ContentType = "text/xml"; xmldata="xml comes here"; response.Write(xmldata); response.End(); This query sample may help you getting your data from database. This is not obligated. Just select your data however you like....