{"id":3649,"date":"2021-03-17T14:03:15","date_gmt":"2021-03-17T14:03:15","guid":{"rendered":"https:\/\/www.edwardsd.co.uk\/work\/?p=3649"},"modified":"2021-07-05T10:25:30","modified_gmt":"2021-07-05T09:25:30","slug":"windows-increase-system-partition-size-remotely-ps","status":"publish","type":"post","link":"https:\/\/www.edwardsd.co.uk\/work\/2021\/03\/windows-increase-system-partition-size-remotely-ps\/","title":{"rendered":"Windows | Increase System Partition Size Remotely PS"},"content":{"rendered":"<p>After increasing a virtual machine VMDK size you need to also resize this partition in Windows.<\/p>\n<p>This can be completed remotely using PowerShell. There are various methods to run this but I prefer to use &#8220;Server Management&#8221; and admin the machines from here. you can run &#8220;PowerShell&#8221; on a remote session to run the script below.<\/p>\n<p>This process will increase the C:\\ partition to use all space that has been allocated by VMware. (Replace -DriveLetter with the required drive)<\/p>\n<p>There are various methods (this is just one of them)&nbsp;<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\n\r\nUpdate-HostStorageCache\r\n$size = Get-PartitionSupportedSize -DriveLetter C\r\nWrite-Output $size\r\nResize-Partition -DriveLetter C -Size $size.SizeMax -Verbose\r\nWrite-Output &quot;Drive Extension Complete!&quot;\r\n\r\nExit-PSSession\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After increasing a virtual machine VMDK size you need to also resize this partition in Windows. This can be completed remotely using PowerShell. There are various methods to run this but I prefer to use &#8220;Server Management&#8221; and admin the machines from here. you can run &#8220;PowerShell&#8221; on a remote session to run the script [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[13,30,51,54],"tags":[],"class_list":["post-3649","post","type-post","status-publish","format-standard","hentry","category-guide","category-powershell","category-windows-server-2016","category-windows-server-2019"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pOPt8-WR","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/posts\/3649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/comments?post=3649"}],"version-history":[{"count":5,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/posts\/3649\/revisions"}],"predecessor-version":[{"id":3719,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/posts\/3649\/revisions\/3719"}],"wp:attachment":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/media?parent=3649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/categories?post=3649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/tags?post=3649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}