Someone knows a way to move a vds in a network folder?

I checked all the cmdlets.  I'm under 6.0r1 powercli with vcenter 5.0.  There are cmdlet move-the inventory, but it only accepts items of the folder type, resourcepool, datacenter, vm, vmhost, model or cluster objects.  Otherwise, it's a no-brainer:

moving-inventory-point $vds - Destination $folder.

Of course, it does not.  Have come a way, I am at a loss.  I checked perhaps a method on the vds or the folder and nothing works.  Drag / drop works fine, so there must be a way to powercli to do things? I also checked all the objects with indices and reconfig card if I use one of them.  Or I am missing something blantently or not aware of a cmdlet?   I won't resort to a drag / drop all 60 + VDSs I.

Thanks in advance.

You can use the MoveIntoFolder_Task method on the object of the file.

http://pubs.VMware.com/vSphere-55/index.jsp?topic=%2Fcom.VMware.wssdk.apiref.doc%2Fvim.folder.html

If you have any port groups attached to the dvs, they will also be moved as well. Here's a sample script that I wrote and tested with a dvs and two groups of ports. I'm sure that there is a more elegant approach, but it should do the job.

$folder = Get-Folder -Type Network -Name folderName | Get-View
$dvs = Get-VirtualSwitch -Name dvsName
$dvPGs = $dvs | Get-VirtualPortGroup
$count = $dvs.count + $dvPGs.count
$list = New-Object VMware.Vim.ManagedObjectReference[] ($count)
$list[0] = New-Object VMware.Vim.ManagedObjectReference
$list[0].type = $dvs.Extensiondata.MoRef.Type
$list[0].value = $dvs.Extensiondata.MoRef.Value
$dvPgCount = 1
foreach ($dvPg in $dvPgs) {
    $list[$dvPgCount] = New-Object VMware.Vim.ManagedObjectReference
    $list[$dvPgCount].type = $dvPg.Extensiondata.MoRef.Type
    $list[$dvPgCount].value = $dvPg.Extensiondata.MoRef.Value
    $dvPgCount++
}
$folder.MoveIntoFolder_Task($list)

Tags: VMware

Similar Questions

  • Did someone knows a way I can delete the fonts of all WIN XP and then download a CLEAN game and validated?

    Did someone knows a way I can delete the fonts of all WIN XP and then download a CLEAN game and validated?

    Validater fonts Microsoft can manage only a small subset at a time without crashing, and I prefer nuke batch and start over.
    Win XP Pro SP3, Office 2003 PRO.
    And relocation of the disk / repair / restoration clean them...

    What is the problem with your fonts?

    I have very few problems of fonts in my notes...

    I took a this auditor of fonts and I don't know what that is supposed to do, but it takes too much time everything he does, so I just stopped after several minutes while it digested 2 files.   It also seems to be unsupported.

    I compressed to the top of my fonts folder and put it on my SkyDrive, but I don't know too much about the operation of the fonts with XP and think that they must be "installed" by clicking on the file and choose to install the fonts.

    I have NO idea if this zipped upward file will help you or not, but I would be sure to make a copy of what you have before overwriting things.  If things go haywire, I might have to leave town for a few days until things cool off.

    One thing is for sure... we don't know even what it is, or anything on your system.  It is because the MS Answers forum ask all system information when a new question is requested (which is doubly certain).

    I downloaded a copy of my zipped folder fonts on my SkyDrive (everyone has a SkyDrive for file sharing).

    Here is the link to my SkyDrive and you can get the file you need it (fonts.zip).

    http://CID-6a7e789cab1d6f39.SkyDrive.live.com/redir.aspx?RESID=6A7E789CAB1D6F39! 311

    When you see the files available for download, you will not see the file extension (.exe, .dll, .cpl, .sys, .zip etc), but when download you them they will have the right extension.

    When you download the file (especially if you use Internet Explorer), when you get a chance to save the file, it cannot save the file with an extension (for example, .exe, .dll, .cpl, .sys, .zip) then you will need to manually add the extension appropriate to the file when you download the file before you save it.

    You can download the file without the extension, and then rename the file to add the appropriate extension.

    Rotsa ruck and we inform!

  • Never had CS6 so had not yet installed on my system (as part of the first installation) - had CC for awhile and just realized there is not yet - someone knows a way to still get on the road with CC Prime Minister? I looked for days now

    Never had CS6 so had not yet installed on my system (as part of the first installation) - had CC for awhile and just realized there is not yet - someone knows a way to still get on the road with CC Prime Minister? I looked for days now and the best advice seems to apply to CC 2014 and has to do with installoing a previous version (CS6) of the Prime Minister - but seems not to apply to the CC 2015... HELP - I have plans to burn and don't want to go to third-party software (if I do I'll ditch CC because it won't let me complete my work on a DVD!) @.

    Hi Matt,

    I found this link corresponding to your query, please see if it helps: CS6 still not installed with creative cloud

    Kind regards
    Rahul

  • Is there an easy way to move files from subfolders to parent folder?

    Hello

    I was using Senuti and I made a return of my iPod classic and it works fine the only thing because of different folders for each artist and inside each artist folder each album he owns the folder. I was wondering is there a quick and easy way to move all the files from subfolders to a master folder?

    Thank you

    If you have added the tracks to iTunes, see http://dougscripts.com/itunes/scripts/ss.php?sp=filerenamer.

    That said, I recommend usually leave iTunes to manage the media folder.

    TT2

  • Someone knows a way to create a crossword puzzle and deploy on a DPS page?

    Trying to deploy Crusaders in DPS. Does anyone have a solution?

    We have a solution to crossword puzzles, we did for a while with AARP that uses an HTML overlay. Let me know if you are interested.

  • Someone knows a way to fix a date of file under Windows?

    I just finished a behavior which verifies that a remote server for updates of CD based PDFs and downloads on request. Behavior compares the local file date (CD or HARD drive depending on whether a previous update took place) against the date of the remote file to determine if the download button should be displayed. My concern is that a PDF document uploaded to a server keeps its origin date of change, as you can imagine... however... on the directFTP xtra download assigns the current date in the downloaded file. In 99% of cases it will still work properly, but imagine this scenario:

    Version 1.0 file starts on the server with a modified date of November 26, 2007
    The 2.0 version of the file is created on November 27, 2007, but is not immediately downloaded
    On November 28, 2007, a user with the version 0.0 our software works and accepts the download of the 1.0 version, where it is stored locally with a date of November 28, 2007 file
    On November 29, 2007 version 2.0 file is uploaded to the server, however, because the file has not changed the remains of date file modified November 27, 2007.
    On November 30, 2007 our user, with the version 1.0 file works our software, however, the local file (version 1.0) now has a modified date of the 28th while the remote file (version 2.0) has a modified date of 27th and so our software does not recognize the remote file is more recent.

    Confusing? ... Yes, sorry about that. An obvious solution is to just make sure that the downloaded modified date of the file is the same as the effective date of the download, however, I count on human nature so that someone who screw up. If it can be done, I think that the best choice would be to set a date for local file to the server.

    Sorry - it's baSetFileDate() that will put it.

    -Mike

  • FB4. Someone knows a way 'SIMPLE' Add scroolbars demand AHHHHHHH

    Some of my users hear resolution 800 x 600 and so the app is not visible in IE, since FB4 removed the feature of the app, WHYYYYYYY scroll strategy.

    Does anyone have a simple solution. I tried peel using a boarder, but which does not I have other components that will not play nice with the external border.

    It works for me with a resolution of 800 x 600. You can try this?

    
    
         
              
                   
              
         
    
    
  • Touchpad light shines when enabled on my HP Pavilion dv6. someone knows how to turn it on?

    I have a brand new HP Pavilion dv6-6260. I bought it only a couple of weeks.

    When I bought, if the touchpad is active, the light would shine white to indicate that he was active. However, last week, that seems to have changed and now when it is active the light does not shine.

    Oddly enough, when I turn off the touchpad the red light shines to let me know that it is not active.

    someone knows some way to re-enable this feature? the Visual indicator is useful for laptop users who are not blind, but with a visual impairment.

    Press FN + SPACEBAR for power turn the light of accentuation of touchpad

  • I can't download anything, when I have the page with four blue square bit he never move forward. Maybe, someone know why? Thank you!

    I can't download anything, when I have the page with four blue square bit he never move forward. Maybe, someone know why? Thank you!

    Please try another web browser, or delete the browser history and cookies and the same retry.

    Hope this will help you.

    Kind regards

    Hervé Khare

  • Someone knows it please do that-CS4

    Well, I have many clips of dialogue in a project PP. Calendar I can dynamic link between them in Soundbooth, but only individually, as far as I know. It's tedious. All I want to do is apply an effect, the effect of Compression of Soundbooth which seems greater than the of the PP. MultibandCompressor effect Pp, we can select many clips and apply effects to them all at once, but please, someone tell me I can't do each item one at a time to use effects in Soundbooth. It has had a way or move multiple items of the timeline into Soundbooth to apply an effect of Soundbooth on a clip and then duplicate the effect on others in PP as a group.

    This will save a ton of time if possible.

    P.S. Just had another idea. Does anyone know of a combination of audio effects of PP that can produce this Compression Soundbooth nice effect, softening?

    Thank you all.

    Paul

    P.P.S. couldn't get all of the answers on the Forum of Soundbooth.

    Paul,

    An option, but not without a few extra steps, would be to export your audio to PCM/WAV. Do not, until all cuts were made. Take SB in the output file and apply to all effects. Import this file and place it on another track audio free. Either turn OFF / Mute the original Audio track, or remove these Clips.

    Because it is really not a physical file created, when you titles point Audio to a mixer track, I don't think it would help. Now, this would allow you to add an Audio of PrPro effect on this track, assign all of this, but it does not help the need to use an effect of SB.

    Good luck

    Hunt

  • Someone know where I can find a disk for an older MacBook utility? It seems that Apple can't MacBook since 2007.

    Someone know where I can find a disk for an older MacBook utility? It seems that Apple can't MacBook since 2007.

    If you were able to call Apple support (after-sales applecare or apple?) and ask if they

    can know if you can still buy replacement system installation DVD of restoration for your MacBook

    they could tell you if it is possible if they have your serial number, to look further into it.

    • How to identify MacBook - Apple Support models

    • Find the serial number of your Apple - Apple Support product

    Depending on where you are, some support Apple or Apple Care facilities cannot

    be able to comply with a demand for vintage and filtering software obsolete spare.

    Some models introduced in 2007 started with 10.4 Tiger (with the version of the Intel-based OS)

    and went as far as Lion 10.7.5 as their higher upgrade system. All systems prior to 10.7

    usually included a system restore DVD media kit, gray-label of this Mac-specific disks.

    If you bought the computer in 2007, it may have been a year of construction 2006 model, in order to

    be able to identify the computer model exactly, the discovery of a boot of replacement keys is

    DVD that can also be used to prepare the computer for a replacement of the HDD, etc.. The

    utility disc on the DVD installation-restoration is an important tool; so is the installation disc & software.

    A detail of (if any) the system drive on the computer, if those who took on DVD

    would be a bootable disk utility version in the installation program. The DVD of grey original label

    media can be found in resale, are used or old stock, published initially with a Mac, new.

    Places online like Amazon may be able to provide the specific software package if you knew

    exactly the part numbers your computer had when new on these original discs.

    Serial number of Mac news - your Apple series number search:

    https://www.PowerBookMedic.com/identify-Mac-serial.php

    If you identify a number before contacting Apple computers on-line software resellers

    You may be able to narrow down. In addition, if identify the computer exactly, there may be some

    This time DVD media (exact details, new or used; original gray-replacement of labels, used.)

    And finally, if the computer running Snow Leopard 10.6.8 and he is older than the date of this

    OS X system, you could buy a DVD of Snow Leopard 10.6.3 retail on Apple Store online, to get

    http://www.Apple.com/shop/product/MC573Z/A/Mac-OS-x-106-Snow-Leopard

    the installation program which has a utility disk in the package. You start from the DVD to use these

    utilities include in the installation program. It can also erase everything. If the computer shipped with the

    last supported OS X installed 10.7, who no doubt had a key task to install USB, not a restore DVD.

    Later computers have their built-in OS X Recovery, a partition on the hard drive which has the OS X

    Utilities and a way to go online for the software of system recovery and restore without media disks.

    Nothing is as simple as it sounds. the first thing is to correctly identify the computer; If you call

    Apple (depending on where you are in the world), results may vary. their after-sales service or Apple

    Nobody care may be able to help or tell you that they cannot, on the basis of the serial number.

    In any case...

    Good luck & happy computing!

  • Someone knows why could it be that when I right click on a folder I get 0 in size.

    Someone knows why could it be that when I right click on a folder I get 0 in size.

    The operating system is windows 2008 STD, the folder is a shared folder on another server, but I was forced to move.

    I suspect that you moved just a shortcut and not the folder.  If it says that it is zero byte is.

  • create dvd Windows will not import the mp4, how to get around it, someone knows?

    create dvd Windows will not import the mp4, how to get around it, someone knows?

    It must convert your mp4 to WMV format video, and then add the wmv in Windows DVD Maker.

    There are other formats supported by Windows, but I chose WMV format because it is the most reliable and foolproof format for Windows.

    You can google for a free video converter. No need to buy one, unless you are a 'huge' in the making of films and others.

    I use Prism video converter. It's free.

    I'm not fan of movie maker. Prism is what I need it to do.

    http://Prism-video-converter.en.softonic.com/

  • Best way to move files?

    My laptop XP Media Center 2005 killed above, but the drive is good.  I have it in a USB external hard drive enclosure.  I want to transfer the files on my computer Vista Home Basic.

    Folders are visible, but the files are not accessible.  I tried to take possession, but not luck.  I right click on a folder, click on 'ownership' and a pop window for a split second and that's it.

    I intend to make an external hard drive, but I want to get the old files first.

    This is probably a permissions issue - or a problem with the way or the sequence that you do things (or you are not logged as an administrator - it must be).  I've included links to additional information and procedures and procedures below that may be useful.

    It also depends on what files you are trying to transfer.  Actually, you can only transfer the data in your profile (and your mail database and contact base and perhaps a few other files - but none of the programs or files system without major changes - and these files will not work on the new system anyway because they need to be installed to work properly).

    To view your permissions, right-click on the file/folder, click Properties, and check the Security tab.  Check the permissions you have by clicking on your user name (or group of users).  Here are the types of permissions, you may have: http://windows.microsoft.com/en-US/windows-vista/What-are-permissions.  You must be an administrator or owner to change the permissions (and sometimes, being an administrator or even an owner is not sufficient - there are ways to block access (even if a smart administrator knows these ways and can move them - but usually should not because they did not have access, usually for a very good reason).)  Here's how to change the permissions of folder under Vista: http://www.online-tech-tips.com/windows-vista/set-file-folder-permissions-vista/.  Remember that a denial of access to all replaces all other permissions and must be removed if you want to do something with the files.  To add take and the issuance of right of permissions and ownership in the right click menu (which will make it faster to get once it is configured), see the following article: http://www.mydigitallife.info/2009/05/21/take-and-grant-full-control-permissions-and-ownership-in-windows-7-or-vista-right-click-menu/.

    To resolve this problem with folders, appropriating the files or the drive (as an administrator) and give you all the rights.  Right-click on the folder/drive, click Properties, click the Security tab and click on advanced and then click the owner tab.  Click on edit, and then click the name of the person you want to give to the property (you may need to add if it is not there--or maybe yourself). If you want that it applies to subfolders and files in this folder/drive, then check the box to replace the owner of subcontainers and objects, and click OK.  Back and now there is a new owner for files and folders/player who can change the required permissions.  You can change now switched to read-only (even if the main folder indicates that they are always read-only - you can access yourself as the owner).  You can keep them in read-only to other users, customers and administrators even (although they can support themselves and access, if they wish, and it is really not that you can do to stop it except protect the file with a password by using a 3rd party product.)  Here is more information on the ownership of a file or a folder: http://www.vistax64.com/tutorials/67717-take-ownership-file.html.  To add take ownership in the menu of the right click (which will make it faster to get once it is configured), see the following article: http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / A +.

  • You know a way to hide the desktop.ini from the desktop?

    You know a way to hide the desktop.ini from the desktop?

    I opened the properties and tried to make hidden, but they are already hidden. So why am I see them on my desk? It should only show us the hidden files in Explorer or any other program that lists the files and folders. My setting in Folder Options to show hidden files, otherwise hides them in Explorer too. I'm not changing this coz either, I want to see all the files and folder on my hard drive. No there is no way to hide just those on desktop?

    No there is no way to hide just those on desktop?

    No, it isn't. As far as I KNOW, you hide everything or you're not hiding anything. If you really want to get rid of it, you can move it to another folder, where you won't see it.

Maybe you are looking for

  • iDVD 7 died in Sierra?

    Stop working on rendering the disk and present malfunctions at usersurface. Is he dead? ~ Karl

  • A shield appeared on the Everio MediaBrowser HD Edition icon

    I noticed that a blue and yellow shield has now itself superimposed on my Everio MediaBrowser HD Edition icon in the taskbar.What is the reason for this?

  • How can I activate the WiFi mini-PCI satellite 1905-S301 card?

    Greetz! I have installed a network card wireless mini-PCI in option in my Toshiba Satellite 1905-s301 specifications and turned on the power switch. MS Windows XP Home SP2 Pro edition recognized hardware and install its drivers - there is no cross or

  • Boolean personalized crosses on valves

    Hello I would build two Boolean, for 6 or 4-way cross valve (shown in the attached picture). I tried to pull the two States of Boolean in the powerpoint then tried to import via the Clipboard in a custom of the ring/boolean control. Her resut is not

  • Can I safely remove the Windows.old files?

    What's up guys?, I have a Compaq Presario supplied with the Windows Vista operating system, 32-bit. I backed up all my drivers on DVD and I downloaded a clean copy of Vista using an ISO on a DVD burner. I reinstalled the new copy put in my original p