Please refer the below script to, Get Disk Partition Information
Disk partitioning or disk slicing is the creation of one or more regions on a hard disk or other secondary storage, so that an operating system can manage information in each region separately. ... Once a partition is created, it can then be formatted so that it can be used on a computer.
This script will display the information of Disk,Status, Size, Free, Dyn Gpt . Partition, Type Size Offset and it will display the partion disks types size and other factors.
Please run the script procedure as either "system user" or Loggedinuser.