Add Open command window here as administrator in Windows 10 Context Menu: With Windows 10 Creator Update Microsoft has removed Command Prompt from both the Win + X menu and the right-click context menu which is sad considering how useful cmd is for day to day operations. Although it can still be accessed through search, but earlier it was easy to access it via the shortcut. Anyway, there is an article on how to replace command prompt in Win + X menu with PowerShell and in this guide, you will see how to add “Open command window here as administrator” in the context menu in Windows 10.
Earlier Command Prompt was easily accessible by pressing Shift then right-click on any folder and then selecting “Open Command Prompt here” but with the Creator Update, it has been replaced with PowerShell. If you want to open unelevated cmd in the right-click context menu then you could see this guide “Replace PowerShell with Command Prompt in Context Menu” but if you want to open elevated command prompt then you need to follow this guide. Anyway without wasting any time let’s see How to Add Open command window here as administrator in Windows 10 Context Menu with the help of the below-listed tutorial.
ونڈوز 10 سیاق و سباق کے مینو میں بطور ایڈمنسٹریٹر یہاں اوپن کمانڈ ونڈو شامل کریں۔
کچھ غلط ہونے کی صورت میں بحالی پوائنٹ بنانا یقینی بنائیں۔
1.Open empty Notepad file and then paste the following text as it is:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTDirectoryshellOpenElevatedCmd] @="Open command prompt here as administrator" "Icon"="imageres.dll,-5324" [HKEY_CLASSES_ROOTDirectoryshellOpenElevatedCmdcommand] @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k,pushd,%V' -Verb RunAs"" [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenElevatedCmd] @="Open command prompt here as administrator" "Icon"="imageres.dll,-5324" [HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenElevatedCmdcommand] @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k,pushd,%V' -Verb RunAs"" [HKEY_CLASSES_ROOTDriveshellOpenElevatedCmd] @="Open command prompt here as administrator" "Icon"="imageres.dll,-5324" [HKEY_CLASSES_ROOTDriveshellOpenElevatedCmdcommand] @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k,pushd,%V' -Verb RunAs"" [HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenElevatedCmd] @="Open command prompt here as administrator" "Icon"="imageres.dll,-5324" [HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenElevatedCmdcommand] @=
2.Cick فائل تو ایسے محفوظ کریں from the Notepad menu.
3.From Save as type drop-down select “تمام فائلیں."
4.Type the name of the file as cmd.reg (reg extension بہت اہم ہے)۔
5.Now navigate to the location where you want to save the file and then click محفوظ کریں
6.Double-click the file then click Yes to continue and this would add the option “Open command prompt here as administrator” in the context menu.
7.Now right-click any folder and you would see “Open command prompt here as administrator".
Remove Open command window here as administrator in Windows 10 Context Menu
1.Open empty Notepad file and then paste the following text as it is:
[-HKEY_CLASSES_ROOTDirectoryshellOpenCmdHereAsAdmin] [-HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHereAsAdmin] [-HKEY_CLASSES_ROOTDriveshellOpenCmdHereAsAdmin] [-HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenCmdHereAsAdmin] [-HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenCmdHereAsAdmincommand]
2.Cick فائل تو ایسے محفوظ کریں from the Notepad menu.
3.From قسم کے طور پر محفوظ کریں drop-down select “تمام فائلیں."
4.Type the name of the file as remove_cmd.reg (reg extension بہت اہم ہے)۔
5.Now navigate to the location where you want to save the file and then click محفوظ کریں
6.Double-click the file then click ہاں جاری رکھنا۔
7.Now right-click any folder and the “Open command window here as administrator” option would have been removed successfully.
سفارش کی جاتی ہے:
بس، آپ نے کامیابی سے سیکھا۔ How to Add Open command window here as administrator in Windows 10 Context Menu لیکن اگر آپ کے پاس اب بھی اس پوسٹ کے حوالے سے کوئی سوالات ہیں تو بلا جھجھک ان سے تبصرے کے سیکشن میں پوچھیں۔