Open a command prompt to access the folders of your Windows connected Windows phone
I am trying to open a command prompt to access the folders of a Windows connected Windows phone. I have tried several commands like the following to no avail.
wmic logicaldisk get name
GET-WMIOBJECT win32_diskdrive | Where { $_.InterfaceType -eq 'USB' }
Can anyone suggest me a better way to accomplish this without using any tool? My task is to access my mobile device to configure language settings using PowerShell commands.
Phone: Lumia 1020 running Windows Phone 8.
+3
source to share
1 answer
Run this command to get a list of USB drives connected to your PC.
Get-WmiObject Win32_Volume -Filter "DriveType='2'"
If your mobile phone is connected as a USB drive, it should appear. From the received data, you will be able to extract things like Caption, Label, Name and DriveLetter. Then you can automate things a little further:
cd (Get-WmiObject Win32_Volume -Filter "DriveType='2'" | Where-Object label -eq "YourDiskName").DriveLetter
0
source to share