{"id":431,"date":"2017-11-10T13:33:45","date_gmt":"2017-11-10T13:33:45","guid":{"rendered":"http:\/\/michaelstoica.com\/?p=431"},"modified":"2017-11-10T13:35:33","modified_gmt":"2017-11-10T13:35:33","slug":"extend-disk-space-on-windows-server-core","status":"publish","type":"post","link":"https:\/\/michaelstoica.com\/site\/extend-disk-space-on-windows-server-core\/","title":{"rendered":"Extend disk space on Windows Server Core"},"content":{"rendered":"<p>At some point you might need to extend the disk space on a Windows Server Core and this can be done using Powershell.<\/p>\n<p>The Powershell command\u00a0<em>Get-Volume<\/em> will display information about the disk (Drive Letter, Size, Size Remaining etc).<\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/getv.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-433\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/getv.png\" alt=\"\" width=\"870\" height=\"92\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/getv.png 870w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/getv-300x32.png 300w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/getv-768x81.png 768w\" sizes=\"auto, (max-width: 870px) 100vw, 870px\" \/><\/a><\/p>\n<p>You will have to add space from your hypervisor and then\u00a0use diskpart to rescan the volume to make the virtual machine aware of the space added.<\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/diskpart.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-434\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/diskpart.png\" alt=\"\" width=\"542\" height=\"148\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/diskpart.png 542w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/diskpart-300x82.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/a><\/p>\n<p>Next you will need to create a Powershell variable and bind the maximum volume size to it.<\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/resize.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-435\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/resize.png\" alt=\"\" width=\"491\" height=\"35\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/resize.png 491w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/resize-300x21.png 300w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/a><\/p>\n<p>After you create the variable you need to run the <em>Resize-Partition<\/em> command in order to increase the disk space.<\/p>\n<p>Now if you will run\u00a0<em>Get-Volume\u00a0<\/em> you&#8217;ll see that disk space was increased.<\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/gvo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-436\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/gvo.png\" alt=\"\" width=\"847\" height=\"95\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/gvo.png 847w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/gvo-300x34.png 300w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/11\/gvo-768x86.png 768w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At some point you might need to extend the disk space on a Windows Server Core and this can be done using Powershell. The Powershell&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/michaelstoica.com\/site\/extend-disk-space-on-windows-server-core\/\">Continue reading<span class=\"screen-reader-text\">Extend disk space on Windows Server Core<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_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}},"categories":[1],"tags":[15,10,8,9,19],"class_list":["post-431","post","type-post","status-publish","format-standard","hentry","category-general","tag-hyper-v","tag-powershell","tag-virtualization","tag-windows-server","tag-windows-server-2016","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p63Lge-6X","_links":{"self":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/comments?post=431"}],"version-history":[{"count":4,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/431\/revisions"}],"predecessor-version":[{"id":439,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/431\/revisions\/439"}],"wp:attachment":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/media?parent=431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/categories?post=431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/tags?post=431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}