How to shrink Hyper-V VHD to a smaller size

Hi guys, I need help urgently. I initially created a (golden image) Win 7 VM with lot off apps installed. I assigned 130G. now I discovered that I don't need 130G on this machine, is there a way of shrinking my disk to 40G? when I shrink it on disk management I can see unallocated space but how to get it back to my SAN? when I edit a disk on Hyper v console it only show Compact and Expand there is no shrink option. or is there a way that I can great new VM using old image without re-installing everything because It will take 5hrs to install all apps but disk size must be small. My host is Win Server 2012 R

Hi Guys,I wrote below script for creating new user and granting it read only access but I'm getting attached error.Please help...Powershell$HostList = Get-Content C:\Users\malvika\Desktop\Hostnames.txtforeach ($server in $HostList){ $HostDetail = $server.Split(',') $HostName = ($server -split ',')[0] $userid = ($server -split ',')[1] $password = ($server -split ',')[2] $VCimpl = Get-VIServer -Server $HostName -User $userid -Password $password [Reflection.Assembly]::LoadWithPartialName("vmware.vim") # The name of the role to be assigned $roleLabel="Read-Only" #craete user New-VMHostAccount -Id Test -Password U!er -Description "Test User" #The name of the principal (user or group) that the role is assigned to $principal="Test" # set to false if principal is a user , not a group $principalIsGroup = $false $propagateToSubEntities = $true ...

Similar Messages

  • How to shrink an .PNG file to a specified size

    I want to shrink .PNG file to a specified width and height.
    I need that too be done in SWING itself.
    I've tried with AWT and PJA(PureJavaAWT). IT's giving me some error.
    Please reply me ASAP
    Thanks & Regards
    venkatesh

    Yes, java.lang.Runtime.exec().
    Read this carefully before you do:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    Don't write a line of code before you're reviewed and understood the article completely. - MOD

  • How to Import Photos from iPhoto in a smaller size

    I'd like to import some of my Photo folders to my iPhone but would like to import them in a size such as the iPhone screen or perhaps twice as big.
    There is no need for the full size photo.
    Similiar to when importing songs, there is an option to convert songs to 128 bits

    I know that you can select a photo or several and select export that then saves it to a folder.
    As for drag + drop into Quark ??????
    I can copy+paste / drag+drop to Mail maybe you can try to ctrl click / right click copy and paste to Quark.
    It could be a setting in Quark or they just need to upgrade it to work with Iphoto 6 ????
    Hope this helps.

  • How to Fix a Corrupted Hyper-V VHD File

    Hi,
    Just found a blog about fixing corrupt VHDs.
    How to Fix a Corrupted Hyper-V VHD File
    http://blogs.technet.com/b/tonyso/archive/2011/12/06/how-to-fix-a-corrupted-hyper-v-vhd-file.aspx
    Enjoy!
    Best Regards,
    Vincent Hu

    Easy to run, VHD file recovery application is simple and fast solution for recovering corrupt VHD file data. It has many features which are useful in every stage data harm situations without any delay. There is no need to create Virtual environment for
    restoring recovered VHD file. Get this helpful application over here: 
    http://www.vhd.recoverydeletedfiles.com/

  • How to get a bootable vhd for a Linux on Hyper-V with two disks ?

    Hi folks,
    I am running a custom linux on my Hyper-V in Windows Server 2008 R2. I initially configured one disk(4GB) and then I added one more hard disk of higher capacity (8GB). Now I got two vhd files with different sizes.
    If I want to create a new linux VM (with two hard disks as original), with an existing vhd file, which one can I use?
    I tried the first one, but it is not working as expected.
    Is there any other way to get a bootable vhd file for a linux VM with two hard disks? 
    Any tools to make it?
    Thanks in advance,
    Saleem

    Hi Tim,
    Thanks for your response. I am rephrasing my question and requirement again.
    I need to create a pre-configured Virtual Machine package(something like OVA in ESXi) in Hyper-V. This package should have disk, memory and network configs.
    These are the steps I performed:
    1. I created a Linux VM with a single 4GB disk.
    2. I added another 80GB SCSI disk.
    3. Now I got two .vhd files with 108MB and 80GB sizes
    When I tried to create a new VM using VHD file, I was able to give one VHD file as input and selected 108MB VHD file for my VM.
    With this VM got created but with only one disk of size 4GB. I need to add a new disk manually to get two disks.
    My requirement is to create a VM with two/more disks using one VHD file without any manual input.
    In other words, I need to create a pre-configured VM package (Similar to OVA) that could be used to create a VM with two or more disks.
    This single package file could be given to users, so that they can deploy a similar VM as defined in the package file.
    When we create VM using ESXi OVA file, we get the configured number of disks.
    What is the similar packaging mechanism in Hyper-V?
    Does Hyper-V on Windows Server 2008/2012 and SCVMM 2008/2012 support OVF/OVA to export and import?
    Thanks,
    Saleem

  • How to Install Hyper-V on a Virtual Machine in Hyper-V on windows 2erver 2012 R2 ?

    Hi ,
    anybody know  How to Install Hyper-V on a Virtual Machine in Hyper-V on windows 2erver 2012 R2 ?
    I want to create lab but i couldn't  I follow this article but the new VM is off
    http://blogs.technet.com/b/gbanin/archive/2013/06/26/how-to-install-hyper-v-on-a-virtual-machine-in-hyper-v.aspx
    one of hyper-v component is not running
    thanks

    Previously it has been blocked to install Windows Server in the VM and then add the Hyper-V Role.
    However, it has always been possible to install Hyper-V Server inside a VM. (the free Hyper-V Server SKU)
    The Hyper-V Server VM is fully manageable, but it cannot start any VMs.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • How to shrink my Call log screen?

    By accident I've zoomed in my call log screen at max. Having zoomed in that much as a result of which I only can read a part of the screen/information (last 2 calls). How to shrink it again and have the overview back again?
    Thanks im advance,
    Daniel
    Solved!
    Go to Solution.

    Thanks for your reply, unfortunately this doesn't provide a solution.
    Problem is not in the font size but zoom functionality. It's zoomed in to the max and no way to get it back to normal again.
    I've just removed the battery forcing a hard reboor of my Q10. Things are back to normal now.

  • How to install hyper-v on windows 8 ?

    How to install hyper-v on windows 8 ?
    I want to install virtual PC but after some research I came to know that windows 8 no longer support virtual pc and it has been replaced by something called hyper-v.
    I just bought a Windows 8 laptop.
    I tried looking into windows on / off features (in control panel) and there is NO hyper-V.
    I know why I don't have hyper-V because after doing some research it seems like it is only available on windows 8 PRO.
    Here is comparison chart:
    http://en.wikipedia.org/wiki/Windows_8_editions#Comparison_chart
    I have Widows 8 on my laptop (NOT Windows PRO).
    Now in this situation, how to install hyper-v on my laptop ?
    Also, will I be able to run windows 7 virtually on my windows 8 laptop using hyper-v just like virtual pc ? like switching in windows between OS ? If I cannot do this and hyper-v does not work like virtual PC then I don;t think hyper-v will be useful to
    me at all and i don't wanna figure it out if it is not useful in any way ?

    Hi jeffcarter,
    To enable the Windows 8 Client Hyper-V feature, our computer needs to meet the following requirements:
    1. Hardware supports Second Level Address Translation (SLAT)
    2. 64-bit Windows 8 Pro or Enterprise.
    3. 4 GB or above of RAM.
    Therefore, it seems that your computer cannot install Hyper-V. Also, Windows Virtual PC cannot be run on Windows 8. Thanks for your understanding.
    In addition, regarding how to configure your BIOS to enable Intel VT-X, you can refer to your motherboard’s operating manual or query the vendor support for help.
    More information:
    Client Hyper-V
    Bringing Hyper-V to “Windows 8”
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • How to shrink this LOB and what steps need to perform.

    Problem Description: hi
    one of our production database having one table i that table having 320 gb LOB in one column
    can you please suggest how to shrink this LOB and what steps need to perform.
    during shrinkg of LOB how much undo tablespace is require,and does it create more archive log because LOB size is 320gb.
    this table having function based index also.so we will not shrink it.
    we need to release the space from database this in only big LOB out of my DATABASE its took approx. 80%.
    there is any way we can reclame this space with less time.
    please suggest how to do this and how much downtime is required.
    database version 10.2.0.4 and OS AIX 5.3

    Hi;
    Please check below which could be helpful for your issue:
    Shrink LOB Segment On Partitioned Table [ID 802059.1]
    How to determine the actual size of the LOB segments and how to free the deleted/unused space above/below the HWM [ID 386341.1]
    Why is no space released after an ALTER TABLE ... SHRINK? [ID 820043.1]
    Troubleshooting Guide (TSG) - Large Objects (LOBs) [ID 846562.1]
    Regard
    Helios

  • How to shrink the MS SQL 2005 Databse.

    how to shrink the ms sql server 2005 databse on windows 2003 server?

    What's the filling level of the database?
    Markus

  • How to Shrink UNDO Tablespace

    Hello,
    We had a UNDO Tablespace of 22Gb but it is using just 2GB. How to shrink undo tablespace. we are using clustered 3 node production database 10.2.0.4
    Is there is way that we can shrink UNDO Tablespace or do i need to create a UNDO tablespace and assign the undo tablespace to DB and drop the old UNDO?
    How to ensure that transactions are done and free to drop the old UNDO?
    Is it something we need to restart all the three nodes as each node has its own UNDO Tablespace.
    Need Help on this issue.
    would appreciate your quick response.
    Thanks

    if i am in your place i will do the following:
    <pre class="jive-pre">1-Query DBA_DATA_FILES to determine the name of the datafiles of the UNDO</pre>
    2. Create a new UNDO tablespace.
    <pre class="jive-pre">CREATE UNDO TABLESPACE undo_ts2 DATAFILE '/directory/undo_ts2_01.dbf' SIZE xxxM;</pre>
    3. Modify the database parameter to use the new UNDO tablespace.
    <pre class="jive-pre"> ALTER SYSTEM SET undo_tablespace=undo_ts2 SCOPE=BOTH; </pre>
    4-The Drawback:
    <pre class="jive-pre">New transactions will begin using the new undo tablespace. After some time passes (at least the number of seconds specified by the UNDO_RETENTION initialization parameter), you can drop the old UNDO tablespace. The downside to this approach is that for a short time period, your database will have two UNDO tablespaces</pre>
    Regards
    Mohamed

  • How to shrink Virtual PC screen size from full screen

    How to shrink Virtual PC screen size from full screen?

    Nobody out there has a solution to this?

  • How to shrink an image?

    I am looking for a tutorial on how to shrink and image.
    So what I what to accomplish is on the main page there is a large main logo than when the page is scrolled down it will move to the upper left (I know how to do this) then is will also shrink down or scale to a smaller image and then I will have it as a sticky header. So lets say the logo is 350x250 and I want to shrink it down to 150x75.
    Hope that makes sense...how can I accomplish this?
    theDogger

    You can use animation with scroll , or place image with scroll setup so that when Page scrolls down to a specific position then the large logo hides on page and small logo appears which can be done using scroll movement.
    Thanks,
    Sanjit

  • How To Shrink the Unity Distribution Database

    Can someone post the syntax to shrink the unity distribution database and log file?  I know how to shrink the unitydb and log file but need the syntax to shrink the distribution database.  I am running unity 4.0.5 unified messaging. Thanks, Tom

    Hello,
    These are commands that I have seen used in the past:
    C:\>osql -E
    1> use UnityDistributionDb
    2> go
    1> backup log  UnityDistributionDb with no_log
    2> go
    1> dbcc shrinkdatabase(UnityDistributionDb)
    2> go
    Thanks,
    Scott

  • How to shrink tablespace size if there is more unused space ??

    i have a tablespace it's size has increased upto 800MB but only 200MB is used, how can i minimize this gap b/w actual size and used size.
    i think i may have wrongly set the autoextent parameter.
    Please help

    You said is has increased upto 800M , but only used 200MB?
    How it is possible? Tablespace size increases to accomodate space for new data.
    Is it possible that data might have deleted?
    Use the following command to resize the datafile. If the HWM is set to higher than this, the command will with an errors.
    RROR at line 1:
    RA-03297: file contains used data beyond requested RESIZE value
    Syntax:
    ALTER DATABASE DATAFILE 'tools01.dbf' RESIZE 250m;
    Jaffar

Maybe you are looking for

  • IPhone 4 mail App not working properly

    My IPhone 4 mail app just continues to spin and check email without getting email or sending. Had the same problem in October after iOS 6 update took in phone and got a new one under 1 yr warranty.( apple and Verizon techs could not figure) Again the

  • 2010 15" MBP will randomly stop charging and shut off

    Okay guys I have to say this computer has been absolutely bullet proof.  To start I have only noticed this since I have installed mavericks OS.  I tend to use my computer with an external monitor most of the time with the laptop still open so I can h

  • Is there any alternative program for RSSTAT10 in ECC6.0 system

    Dear ABAPers, Issue scenario: We are trying to create a report program in the ECC system to provide the details of the server workload. This report is a copy of the program RSSTAT10 which is working fine in other systems(3.1,4.7). The report works fi

  • How to make scanned text editable in Pages?

    My scanner (Canon 9000F) will convert a document to an rtf file but when I drag it to Pages the text layout fragments into an unusable mess. Is there OCR software that works easily and well with Pages? Any other suggestions? Basically I want to scan

  • Script saving .png

    For Photoshop CS5: Hi, I need a script, which allows me to take the .png file i am working on, and save and replace it in the existing location with the exact same name: Without creating the "copy.png" string and preferebly without have to choose "In