Need help to update to work with the new vSphere environment 6

I have a great powershell script some time ago, I created to clone our production servers in a development environment and configure them for use in isolated vShield development networks.

We have recently updated our environment vSphere vSphere 6 and changed architecture autour 5.

Previously with vSphere 5 we had a unique vCenter server that managed our two datacenters by itself.

With the new design of vSphere 6, we have a PSC and VCSA server to each data center in one area of SSO.

The first thing I did with my script of cloning is up-to-date reference vcenter for a table of two servers, so I connect to two VCs at the same time.

This allows me to see and manage the two vCenters virtual computer guests, so get - vm strives to see the comments of the source.

However, the problem is that when I try to clone a virtual machine from one data center to another, the command fails because it can't find the virtual machine to clone.

# Virtual Centre server or VM host to connect to
$aryVIServer = @("vc01.domain.com", "vc02.domain.com")

# Load VMware environment
Set-PowerCLIConfiguration -DefaultVIServerMode Multiple -InvalidCertificateAction Ignore -Confirm:$false | Out-Null
$VIServer = Connect-VIServer $aryVIServer

# Server cluster group to deploy to
$strVMCluster = "Bubbles"

# Define name of new server including environment prefix
$vmName = "$($envPrefix)-$($CloneServer)"

# Select Host with least memory consumption
$selectedHostObj = Get-VMHost -Location $strVMCluster | Sort-Object -Property MemoryUsageGB | Select-Object -First 1

# Select folder to place VM guest into
$folderObj = Get-Datacenter -Cluster $strVMCluster | Get-Folder $selectedBubble

# Select datastore with most available space
$selectedDatastoreObj = Get-DataStore -VMHost $selectedHostObj | Sort-Object -Property FreeSpaceGB -descending | Select-Object -First 1

# Clone new VM from running Server
$newVM = New-VM -Name $vmName -VM $CloneServer -VMHost $selectedHostObj -Datastore $selectedDatastoreObj -DiskStorageFormat "Thin" -Location $folderObj -Confirm:$false

He used to work very well when there was a single VC but of course does not now with two.

So far, the only difference is the change in VCs. We always use the same exact 5.0 running ESXi hosts to the same place in separate data centers.

Oh and I'm now using powercli 6.3 R1 instead of 5.5 R1.

I look forward to this type of procedure should work fine, and I just need a different command for virtual machine cloning now?

Well, I have solved the first problem according to them here:

Re: Impossible to deploy VM model on different vCenter Server (in the same domain of SINGLE sign-on)

However, now I can't run Invoke VMScript without getting an error that the proxy authentication is required.

If I remove all my proxy settings in Internet Explorer, then it connects fine but this script must be run by a number of engineers without being dependent on their proxy settings are disabled.

I can programmatically change the settings of proxy at the beginning of the script, but nothing not preventing to change those back if they use their browser and break execution of the halfway of script.

Never had any problems with the Proxy settings before and I didn't know any other messages that have directly relevant air.

Anyone know of a way to avoid this?

Tags: VMware

Similar Questions

  • Hello. You will need to update Mac OS El Capitan. Currently have v.8 CS Photoshop and Lightroom 2 v.2.4. In order just to work with the new operating system, please inform for updating both.

    Currently have v.8 CS Photoshop and Lightroom 2 v.2.4. In order just to work with the new operating system, please inform for updating both.

    Hi R0w1% 40nd,

    Adobe Photoshop CS v.8 and Lightroom 2 v.2.4. are very old software and the operating system you are using is the most recent, so there may be compatibility issues that adobe has not tested these applications on newer operating systems.

    The installer for Adobe Photoshop CS v.8 and Lightroom 2 v.2.4. are no longer available.

    You can see the creative Cloud, creative cloud and rates membership plans | Adobe Creative Cloud

  • 13 elements will not work with the new camera, it will not be updated raw 8.7.1

    13 elements will not work with the new camera, it will not be updated raw 8.7.1. I downloaded the patch, installed, but the old version is it in elements. Thank you, esther

    Try again a little later. Sometimes the Adobe servers are busy. If you get the same answer, you may need to uninstall and reinstall. Try an alternative link, then confirm with your 24-digit serial number - click here to download PES

  • Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the

    Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the move tool. They have become a composite of two layers which could be developed further with the mask tool.

    Hello

    Please go to the preferences > workspace and uncheck the option 'open the document in the tabs '.

    Now you can click on file and choose file > open and open the two images in two different windows which can be arranged side by side.

    Thank you

  • Updated my iPad with the new OS.

    Updated my iPad with the new OS. Initially it lights, so I have two buttons held together and finally happened. Now it is stuck on the screen with the time and will not move forward, nor is it resets. Is there any solution for this?

    Thank you

    Kat

    Try a forced reboot. Hold down the home and Sleep/Wake buttons simultaneously for about 15-20 seconds , until the Apple logo appears. You won't lose anything.

    If a force restart does not help try recovery Mode:

    https://support.Apple.com/en-us/HT201263

  • HP laserjet p1102w: wireless printer does not work with the new wireless network

    My office moved recently and we have a new wireless network. My printer always wireless worked perfectly on the previous network, but it does not work with the new network. I get a message "the printer is offline. I don't know how to reconfigure so that it detects the new wireless network. Can anyone help? Thank you

    Hi Shlomi,
    Thanks a lot for the info. I'll give it a try today...

  • CC of Photoshop and Bridge CC will work with the new Windows 10 which will be released tomorrow?

    CC of Photoshop and Bridge CC will work with the new Windows 10 which will be released tomorrow?

    The update for the desktop app from creative cloud yesterday was made to support Windows 10 better.  I had no problems with her hard on windows 10 previews.  I have a lot of creative cloud Application installed on Windows 10 although I only use Photoshop.  However, I only install Photoshop CC 2014 and 2015 CC and I do not install Lightroom.  There are many questions in Photoshop CC 2015, no issues that I know seem 10 associated Windows.   Creative Cloud Desktop Application update some CC 2015 application such as illustrator, Prime Minister, others but not Photoshop. Update all installed on Windows 10 but since I do not use these applications I can not report on how while they run.   Bridge CC and CC 2014 Photos work fine on Windows 10.

    Using creative cloud | Creative Office Cloud app | Release notes

  • Will 1st gen magic mouse will work with the new Mac Mini?

    #1

    I'm going to buy a new Mac Mini and one of the options is to add a second magical mouse of gen. I have a first gen magic mouse. I guess this first mouse magic gen will work with the new Mac Mini, but I want to check.

    The old mouse Apple and any other generic pc mouse will work fine with the Mac Mini.

  • IR remote control does not work with the new imac

    IR remote control does not work with the new iMac. From 24 "2007 machine to last 27"

    Correct, because Apple no longer includes the IR sensor in newer models

  • Recovery disks do not work with the new hard drive?

    Hello, everyone.

    I have a laptop HP (pavilion dv7-1245dx) and the hard drive is dead. I had never gotten to burn my recovery disks, so I ordered new ones from HP. When I installed the new hard drive and popped in the disk to reinstall the operating system, it gave me the error message:

    "This PC is not supported by the system recovery discs. You can continue to recover this system with these discs. »

    Error code: 0100-30 FC-3602-3603

    The original hard drive was a Hitachi, 320 GB SATA

    The new hard drive is a WD 500 GB SATA

    Any assistance anyone can give would be great. :]

    Thank you for your time,

    C

    EDIT: Trying to recover a Vista operating system

    For anyone who has the same problem, I found a solution. I cloned the original hard drive using the Clonezilla fallback option. After using Clonezilla to image on the new hard disk, the partition which held that most of the data of the laptop is not mountable, however the partition containing the restore partition was a perfect copy. I turned on the computer, hit escape to access the menu (for a list of options such as boot order, etc, which included an option for recovery), and then choose recovery option. While the recovery discs, I received from HP refused to work with the new hard drive, the Vista restored cloned recovery partition without flaw.

  • My 5s iPhone camera will not work with the new color

    I don't know if it's me, but my camera iPhone 5s doesn't seem to work with the new color.  Click on the Photo and it shows a white screen. Upstairs, he says Live - Photo - and an icon of a camera.  The screen is black and at the bottom is an X and the circle for the camera.  Nothing.  Someone else?

    Can ensure you that you have authorized access to the camera of the app? on iOS, go to: settings > privacy (make sure color is on).  If this does not work, can you please send the OS version you are using?

  • How are we supposed to work with the new motion tweens if there is no editor of motion more?

    How are we supposed to work with the new motion tweens if there is no editor of motion more? Without query editor, we can see what kind of key frames are defined and we cannot set acceleration anywhere. Adobe go us back and use the old motion tweens does want now?

    Hi all

    Flash Pro CC 2014 (v 14.0.0.110) is now available for download through the creative application of cloud.

    We have included a whole new motion editor and several other new features with this release of Flash Pro. The new query editor is completely redesigned, intuitive and easy to use while retaining the basic features and backward compatibility with Flash CS6

    To call the query editor, just double-click on your motion tweens on the timeline (or right click and select "Refine the Motion") and the motion Editor opens in the context of the scenario itself. Double click again to collapse once you have made your adjustments.

    Complete list of the new features of Flash Pro CC 2014 is available at these links:

    Overview: https://www.adobe.com/in/products/flash.html

    What's new: https://helpx.adobe.com/flash/using/whats-new.html

    Release notes: https://helpx.adobe.com/flash/release-note/flash-professional-cc-2014.html

    Videos: https://helpx.adobe.com/in/flash.html

    Thank you

    Mabrouk

  • Need help to make my printer work with the new laptop.

    I just bought a laptop ACER Aspire V5-571. At the Windows experience index. Intel (R) core, 64-bit. My current project is gettting my 2005 Dell all-in - one 944 to work with my new laptop. I passed on the line and installed the recommended driver and used the printer to scan a document I then sent an email, but for some reason my computer any it will not print a page from an online account. Keeps saying needs of troubleshooting and I need to download the driver, which I did, a Vista 7 64-bit-compatible driver. How can I make this work? or what other driver or update do I need?

    It seems that Vista drivers are the latest Dell has provided.  I noticed that, they say, you have to install all the drivers for this device before installing the Vista (s).  I found the link depending on whether you should check out

    http://support.Dell.com/support/topics/global.aspx/support/KCS/document?&docid=270659&doclang=en

    Some older printers have no Windows 7 drivers, but usually the work of those of Vista.  If they are not, you can use XP mode if you have the professional or Enterprise version of Windows 7 Ultimate.  If you have the Home Premium version, you can use him anytime upgrade to professional for $90.  Of course to buy a new printer is always an option too.

    As you probably know, it is the responsibility of the manufacturer to provide drivers.  Many manufacturers have refused to provide any Windows 7 drivers for older devices.

    Good luck.

  • Utility HP does not work with the new update of Mac software

    I downloaded the latest version of the software for my Mac and now utility HP will not work! Any advice? Thanks, Chris

    Hey Chris. Looks like you may have the old software out there which is not compatiable with the new version of Mac OS X. What I would do is a complete uninstall of the HP software you have. Let's try this:

    We will uninstall with the option 'raccoon' like this:

    1. go in Applications/Hewlett Packard / click on uninstall HP and click on continue

    2. Select your device in the left pane
    3. hold the keys Ctrl, Opt and Cmd and click on uninstall
    4. There will be a pop up that asks if you are sure you want to uninstall all hp software. (At this point, if you continue, all HP printers you have installed will need to be reinstalled)
    5. click on continue and let it finish

    Now run a software update. Before doing the next step make sure you connect your printer to the computer through USB. Then click on the Apple in the upper left corner of the screen, then clicking on software updates.

    If my instructions don't do because here's a little video to help out you:

  • HP Color LaserJet CP2025n Prin: I need to download the older driver because a program does not work with the new driver

    Where can I find the olderdriver that I can use windows 64 bits 10,

    because a program does not with the new driver.

    The year may be 2014 or almost.

    Your Timo

    @tisalmet

    Thanks for the reply with the details,

    You can activate the Device Manager to view hidden devices by following the steps mentioned below:

    To work around this behavior and display devices when you click Show hidden devices:

    1. Click Start, point to programs, point to Accessories, and then click command prompt.
    2. At a command prompt, type the following command and press ENTER:

      Set devmgr_show_nonpresent_devices = 1

    3. Type the following command a command prompt and press ENTER:

      Start devmgmt.msc

    4. Troubleshoot the devices and drivers in Device Manager.

    For more details: click here

    Uninstall all software and drivers for printers:

    When you need to uninstall a driver completely, the best and safest method is to use the uninstaller of the device (if it has one). If you have added the device to your system with a Setup program (as is the case with most of the graphics card and sound card drivers, for example), you can uninstall it as you would any other program.

    1. Click Start, type uninstall program, and then press enter.
    2. In the uninstall window, which appears, scroll through the list and find your device or drivers. Double-click the entry to start the uninstall process.

    Sometimes devices will not have an uninstall program or the uninstall program will not appear in the list. In these cases, you can use Device Manager to remove the driver completely.

    1. Click Start, type Device Managerand press enter.
    2. Find and double click on the category of the device you want to uninstall (for example, the graphic card would be listed under display card) driver.
    3. Right click on the device, and then click Uninstall.
    4. Windows prompts you to confirm the removal of the device. Click OK to remove the driver.
    5. Once the uninstall is complete, restart your computer as soon as possible.

    Once the above steps are done, click here to download the full software features for your printer and follow the Setup process to start to use your printer again.

    I would like to know if these measures worked for you.  If they did, it's great!  Give us some reinforcements by clicking on the solution and laurels, buttons that help and others see that we have the answers!
    Good luck.

Maybe you are looking for