LAST UPDATED : 10/10/2021
How to Set-Up CMD in W10M Devices (Automated Process)
Requirements
❖ Windows PC running minimum W7 SP1 (Not compulsory)
❖ Interop Unlocked W10M Device
❖ Bootloader Unlock (ONLY FOR TH BUILDS, READ HERE)
Interop Unlock Guides
How to Interop unlock Non-X50 Lumia : NOT NECESSARY WITH THIS GUIDE
How to Interop unlock X50 Lumia :
How to Interop unlock Other OEM :
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
Table of Contents………………………………………………………………………..
1) Preparations Page 03
2) Introduction to CMD Injector Page 04
3) Setting-UP CMD Page 05
4) Setting-UP PowerShell Page 08
5) Extra Optional Features of the app Page 10
• Reinjection of CMD Files Page 10
• In-Built Console Page 11
• Startup Commands Page 12
• PacMan (Package Manager/Installer) Page 14
• Snapper (Screen Capture) Page 15
6) Additional Notes Page 16
7) Credits Page 16
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
Preparations
DISCLAIMER !
Neither the creator of the “CMD Injector” nor I do not take responsibility for any damage cause to
the phone by the app, DO IT AT YOUR OWN RISK !
> Download “CMD Injector” UWP app and Install it.
TIP
You can also use “Putty” or “Admin Shell” apps instead of Token2Shell if you want
> Download “Token2Shell” and install it.
We are using the “trial” version of the Token2Shell app as it’s
listed as Paid.
But the trial will never expire, just dismiss the trial prompt by
clicking “Unpin” icon
Guides for reference
How to Install Appx/Bundle Files to W10M Devices :
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
Introduction to CMD Injector app
CMD Injector is an app designed to simplify CMD Configuration of W10M Devices.
It can run on every W10M Build and every WP device whether it’s a Nokia/MS Lumia or Other OEM
Device like HP Elite, Alcatel Idol etc… if it’s Interop Unlocked (Linked in First Page)
Requirements • Developer Unlock
• Interop Unlock
Supported W10M Builds W10M RS Build 14393, 15063, 15254 (Recommended)
W10M TH Build 10240, 10540, 10570, 10586 (Need Special
Requirements, read below notes)
Unsupported W10M Builds Every W10M Build lower than Build 10240 such as 10166
Supported Windows Phones. Every Windows phone no matter the manufacturer
Notices for users with W10M Build 10240, 10540, 10570, 10586
❖ Even though “CMD Injector” app supports every W10M Build, there is a special requirement for
builds lower than 14393.
If you wish to use “CMD Injector” in any W10M Build below 14393 such as 10586, 10240, you need
to Unlock Bootloader of your Device.
❖ If you injected CMD to builds lower than 14393 & want to Relock the bootloader of your Lumia
device, then disable "Security manager" via Settings in “CMD Injector” before relocking.
1. Open “CMD Injector”
2. Go to “Settings”
3. Scroll to the bottom and click “Restore
Driver”
You have a W10M Redstone build such as AU (14393), CU (15063) & FCU (15240) ?
Then ignore & skip all the above notes and head into Setting up CMD
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
Setting-UP CMD
> Install CMD Injector app & Open it.
> You will be presented with a button called “inject”
which is the option to inject CMD files to System
(If you are already injected using an older version, then
read this part)
Note
The two injection options are removed from the app.
Because the permanent option was not able to do
with UWP apps.
The Injection we do from here after by default is the
“Temporary Injection”.
Hence you will be needing to run the “injection”
again after a hard reset !
> Click on it
> Then you will be prompted to restart the phone, select “Restart now”
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
> Now that the CMD files are injected to system, you can use any telnet client to setup the CMD in your
phone.
> We are going to use the “Token2Shell” app, open it
Notice
Token2Shell UWP Client can be used only if you “Inject” or “Re-Inject” using CMD Injector V.1.5 or
higher version, if you used a lower version to inject, reinject using the latest.
> Open the upper flyout by clicking the Arrow option, then choose “New Terminal”
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
Fill in the Server details using these values ;
o Server address: 127.0.0.1
o Connection Type: Telnet
o PORT Number: 23
When filled, click on “Connect” button
> That’s it, now you have the CMD access to
the system via Token2Shell app.
> Use the same Server values if you want to
use another client like putty
If you want to disconnect ;
• Click on Hamburger menu
• Then at the end of the flyout,
click on “Disconnect’
• Then click “Close”
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
Setting UP PowerShell
With the Injection of CMD files, PowerShell files are also injected to System.
So you can connect to PowerShell using any client too along with CMD.
How to :-
1. Open “Token2Shell” app or any client you prefer
2. Open the upper flyout by clicking the Arrow option.
3. Click “New Terminal”
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
> Fill in the Server details using these
values;
o Server address: 127.0.0.1
o Connection Type: Telnet
o PORT Number: 24
When filled, click on “Connect” button
> voila !
you now have stablished PowerShell
connection.
If you want to disconnect ;
• Click on Hamburger menu
• Then at the end of the flyout,
click on “Disconnect’
• Then click “Close”
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
Extra Optional Features of CMD Injector app
1. Reinjection of CMD files
If you have CMD files already injected to system, but if you want to inject it again due to some reasons,
you can reinject using the same or a higher version of the “CMD Injector” app (Starting from V.1.5)
How to :-
1. Open the “CMD Injector” app
2. Click on “Reinject” button
3. Press “Restart now” in the pop-up dialog.
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
2. In-Built Console
CMD Injector now has an in-built simple CMD windows.
It accepts command inputs and shows output of the
result.
How to :-
1. Open “CMD Injector” app
2. Expand Side (Hamburger) menu
3. Select “Console”
4. Click on the “Input Box” to start typing commands
Configurations
You can change the Console to start CMD or
PowerShell.
1. Open “CMD Injector” app
2. Go to Settings of the app.
3, Change “Host name” and “IP” to the server you wish
to have.
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
3. Startup Commands (Advanced)
From this section, you can set your commands to execute automatically whenever the phone reboots.
By default, it has two commands which you can apply to set to execute per reboot.
1. Keep Developer Mode active (Enable Developer mode every time when the phone boots)
2. Keep Interop Unlocked (Enable Interop Unlock every time when the phone boots)
How to :-
1. Open “CMD Injector” app
2. Open Side Menu and select “Startup”
2. Write your command in next line
3. Click “Apply”
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
Enabling Loopback Exception for apps
By default, UWP apps are restricted to connect to 127.0.0.1 server, but now thanks to the CMD Injector
app, Connecting to Telnet is allowed for Token2Shell, W10M Group & W.U.T apps.
This will benefit W10M Group/W.U.T app mostly
as;
1. Installing Xaps only with W10M Group app (Via
Telnet option)
2, Running every included Scripts such as
“Screenrecorder”
You have more apps that are needed to
connect to Telnet ?
You can also allow more apps too with CMD
Injector “Startup” commands feature
Simply Enter this command with the target App’s
Family name in startup commands.
checkNetIsolation loopbackexempt -a -n=<App
family name>
Note
This feature was introduced with CMD Injector_1.5.XX versions.
So if you have already injected with an old CMD injector app version such as 1.1, 1.3 ; You have to
“Reinject” CMD files
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
4. PacMan (Packages Manager/Installer)
This section will let you install XAP applications
directly within CMD Injector app despite using W10M
Group app.
How to :-
1. Open “CMD Injector” app
2. Open Side menu and click “PacMan”
3. Click “Browse” to open file picker, there select the
XAP file you want to Install.
4. Then Click “Install” after you select a XAP file.
Then it will start the Installation, monitor the progress
in the bar.
When finished, it will state “Installation Completed”
TIP
The greyed-out options are not yet accessible for the users.
They will be available within a next release.
Configuration
You can change the Xap Installer settings in CMD
Injector settings.
Currently, you can change the Install location to SD or
Internal.
Click on the toggle to switch between “Internal” and
“SD”
(There may be more options in next releases)
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
5. Snapper (Screen capture)
Intended to cover both Screen recording and
screenshot capturing, currently it only has the
Screenshot capturing.
Screen recording will arrive in a next release.
How to :-
1. Open “CMD Injector” app
2. Open Side menu and click “Snapper”
3. In the “Amount of Screenshots” select how much screenshots you need the app to take.
(Ex :- Value 1 means 1 screenshot and so on)
4. In “Delay Between Shots” select the how much delay there should be when taking screenshots
(Ex :- Input value 1 and there will be a 1 second
delay when taking screenshot 1 to 2)
5. Then select “Start Capture”, as soon as you click that button, it will start to capture screenshots.
7. Screenshot will go to a folder called “Snapper” in “Pictures” folder in your Windows Phone.
Go there manually or click “Open Shots” to open “Pictures” folder of your WP.
It will automatically Stop capturing when it takes the assigned screenshot amount, if you want to
terminate the process before it stops, click “Stop Capturing”.
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone
LAST UPDATED : 10/10/2021
Common Issues
❖ There are some cases where the application may crash during startup.
Solution is simply Restart the phone.
Additional Notes
• If using Putty, when you are Disconnecting from the CMD Session, sometimes it will not bring you
back.
Solution is simply clicking the white “Command Input Box” after you accepted the “Disconnect”
confirmation prompt.
• If you “Hard Reset” your Windows 10 Mobile device, you have to Install “CMD Injector” back and
“Click” inject” to have CMD working again.
Warning !
You should not run every random batch programs you find, they won’t work with ARM W10M and
might lead to system bricks like boot loop !
Credits
✓ All Credits to Fadil Fadz for “CMD Injector” app
✓ Credits to everyone in the “About” page of “CMD Injector” app
Thank You & have a Nice day !
______Lasitha Samarasinghe______
Windows 10 Mobile (Lumia) Group :- https://t.me/Windows10Phone