Showing posts with label Powershell. Show all posts
Showing posts with label Powershell. Show all posts

Friday, November 9, 2012

Export / Import vCenter permissions.

These scripts, written by Alan and LucD, have been invaluable to me. I now have them set to run weekly as backups for production and I can do a manual export for my dev environment if needed (and that's where I've used the import, twice now, with vCSA upgrade issues).
Thank you, Darren for posting them up, and yes! they still work for vSphere 5.1!

I did need to change the domain from the shorthand to longhand version in the xml file importing into 5.1 from 5.0, but this might have been the way I put the domain in SSO.

Drink Up!

Wednesday, September 26, 2012

powershell security warning

Microsoft being helpful again...

Security Warning
Run only scripts that you trust. While scripts from the Internet can be useful, this script can potentially harm your computer. Do you want to run <script>?
[D] Do not run [R] Run once [S] Suspend (default is "D"):

I thought this was related to the file path that was in the script so I started going down the path of disabling UNC Paths... this wasn't the issue.

  • Right-click the ps1 file and choose properties
  • Hey, hey! There's this obnoxious Security bit here at the bottom of the General tab:
    • This file came from another computer and might be blocked to help protect this computer. [Unblock]
    • Click Unblock
  • OK
  • Get back to work