Disk Management Commands in PowerShell for Windows IoT device

0 votes

While using PowerShell for connecting to a device running Windows 10 IoT Core, I was unable to access disk management commands, which I'm, otherwise, able to access on a normal PC.

So, are these commands completely unavailable or is there something I'd have to do for getting them to work?

For instance, commands like these:

  • get-disk
  • initialize-disk
  • get-partition​
TIA!
Nov 26, 2018 in IoT (Internet of Things) by Bharani
• 4,550 points
47 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

All libraries of the full .Net framework is not available to the Windows 10 IoT, which also uses the .Net Micro Framework. Plus, PowerShell is based on .Net as well, which essentially means that its available modules and cmdlets will only depend upon the capabilities of its underlying framework. So, a fair amount of functionality would be obviously be missing in the systems of IoT.

Although, there hasn't really been a documented list of availability on all components between IoT's PowerShell and a full .Net framework that will be a part of these minimal operating software packages.

Thus, you can make use of Get-Command and Get-Module to see exactly what's available on your system. And, If there's a command that you can't find, then it's most probably just not available.

Also, please note: A known bug in PowerShell security policies causes the following issues to manifest within the remote session:

  • Get-Help returns unexpected matches.
  • Get-Command on a specified module returns empty command list.
  • Running a cmdlet from any of these modules throws CommandNotFoundException: Appx, NetAdapter, NetSecurity, NetTCPIP, PnpDevice.
  • Import-Module on any of the above modules throws PSSecurityException exception with UnauthorizedAccess. Module auto loading does not work either.

Workaround: Modify the execution policy within the remote PowerShell session to "RemoteSigned". For details on different execution policies, please refer: https://technet.microsoft.com/en-us/library/ee176961.aspx.

answered Nov 26, 2018 by nirvana
• 3,040 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

RPMs for IoT Agents of Backend Device Management GE in FIWARE IoT ecosystem

The RPMs for IDAS component are availaible. ...READ MORE

answered Jul 29, 2018 in IoT (Internet of Things) by DataKing99
• 8,100 points
25 views
0 votes
1 answer

Publishing commands to device in IBM IoT using MQTT in Java

If you are publishing from an application, ...READ MORE

answered Jul 27, 2018 in IoT (Internet of Things) by anonymous2
• 4,260 points
318 views
0 votes
1 answer

Device EndPoint Management in Kaa IoT

Normally you could just request access tokens ...READ MORE

answered Aug 2, 2018 in IoT (Internet of Things) by DataKing99
• 8,100 points
101 views
0 votes
1 answer

Device management tools for IOT/M2M supporting telecom and IOT devices

We (Cumulocity) offer an out-of-the-box device management. ...READ MORE

answered Mar 15 in IoT (Internet of Things) by Upasana
• 7,680 points
28 views
0 votes
1 answer

Setting time on Raspberry Pi using just PowerShell

The Enter-PSSession is for interactive sessions, so ...READ MORE

answered Aug 10, 2018 in IoT (Internet of Things) by nirvana
• 3,040 points
36 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Display time in a Windows Core IoT app with a clock!

It is possible, but you should understand ...READ MORE

answered Jul 9, 2018 in IoT (Internet of Things) by nirvana
• 3,040 points
48 views
0 votes
1 answer

Data Modelling for IoT based application in Apache Cassandra

I think creating a single table that has ...READ MORE

answered Dec 3, 2018 in IoT (Internet of Things) by nirvana
• 3,040 points
148 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.