{"id":642,"date":"2016-12-16T15:55:47","date_gmt":"2016-12-16T14:55:47","guid":{"rendered":"http:\/\/172.16.10.10:8080\/?p=642"},"modified":"2016-12-16T17:10:23","modified_gmt":"2016-12-16T16:10:23","slug":"restore-vms-via-powershell","status":"publish","type":"post","link":"http:\/\/vblog.hochsticher.de\/?p=642","title":{"rendered":"Restore VMs via PowerShell"},"content":{"rendered":"<p>Today I had the challenge to restore once a week multiple VMs that are used for VPN Client Testing.<\/p>\n<p>I would like to share my script with you \ud83d\ude09<\/p>\n<p><!--more--><\/p>\n<pre class=\"lang:ps decode:true \"># Restore VMs for VPN Client Test\r\n\r\n#Load PS Modules\r\nAdd-PSSnapin VMware.VimAutomation.Core\r\nAdd-PSSnapin VeeamPSSnapin\r\n \r\n#Timer start\r\n$StartTime = Get-Date\r\n \r\n#Define Logging Vars\r\n$verboseLogFile = 'c:\\temp\\myReports\\older-reports\\Restore-VM-Log_' + (Get-Date -Format yyyy-MM-dd) + '.txt'\r\n$LastverboseLogFile = 'c:\\temp\\myReports\\Restore-VM_latest.txt'\r\nFunction My-Logger {\r\n    param(\r\n    [Parameter(Mandatory=$true)]\r\n    [String]$message\r\n    )\r\n \r\n    $timeStamp = Get-Date -Format \"yyyy-MM-dd_HH:mm:ss\"\r\n \r\n    Write-Host -NoNewline -ForegroundColor White \"[$timestamp]\"\r\n    Write-Host -ForegroundColor Green \" $message\"\r\n    $logMessage = \"[$timeStamp] $message\"\r\n    $logMessage | Out-File -Append -LiteralPath $verboseLogFile\r\n}\r\n \r\n#Start Processing ...\r\nMy-Logger \"Start VPN Client VMs restore\"\r\n \r\n \r\n##Connect Veeam &amp; vCenter Server\r\nMy-Logger \"Connect vCenter Server\"\r\n#Connect vCenter Server\r\nConnect-VIServer -server my-vCenterServer.mydomain.local\r\nMy-Logger \"Connect Veeam Server\"\r\n#Connect Veeam Server\r\nConnect-VBRServer -Server my-VeeamServer.mydomain.local\r\n \r\n## Define Vars\r\n$BackupName = \"MyBackup-01\" #Enter Backupname here\r\nMy-Logger \"Backup Name: $BackupName\"\r\n$vmfolder = \"MyVMFolder\" #VMware Folder\r\nMy-Logger \"VMware Folder: $vmfolder\"\r\n## Fix Vars\r\n$vmarray = '@' #Create Array\r\n$vmarray = Get-VBRBackup -Name ($BackupName) | Get-VBRRestorePoint -Name * | select VmName #select VMs\r\nMy-Logger \"VMs to restore ...\"\r\n$vmarray *&gt;&gt; $verboseLogFile\r\n \r\n \r\n# Loop through all of the array Items to perform Restore\r\nforeach ($vm in $vmarray) {\r\n   # Get VMName from array\r\n   $Name = $vm.VmName\r\n   My-Logger \"Restoreing VM: $Name\"\r\n \r\n   #Get a list of available restore points, select the last restore point and save it into a variable\r\n   $RestorePoint = Get-VBRBackup -Name ($BackupName) | Get-VBRRestorePoint -Name ($Name) | select -Last (1)\r\n   \r\n   #Perform Restore of the VM:\r\n   Start-VBRRestoreVM -RestorePoint ($RestorePoint) -Reason \"Scheduled VPN Client VMs restore\" -ToOriginalLocation -StoragePolicyAction Default\r\n}\r\n \r\nMy-Logger \"Restore Complete!\"\r\nMy-Logger \"Poweron VMs ...\"\r\n#Power On VMs\r\n$poweronvm = Get-Folder $vmfolder | Get-VM | Where-Object {$_.PowerState -eq 'PoweredOff'}\r\n$poweronvm *&gt;&gt; $verboseLogFile\r\nStart-VM -VM $poweronvm -Confirm:$false -RunAsync\r\n#Log powererd on VMs\r\nMy-Logger \"Show Poweredon VMs ...\"\r\nGet-Folder $vmfolder | Get-VM *&gt;&gt; $verboseLogFile\r\n \r\n#Calculate Time\r\n$EndTime = Get-Date\r\n$duration = [math]::Round((New-TimeSpan -Start $StartTime -End $EndTime).TotalMinutes,2)\r\n \r\nMy-Logger \"StartTime: $StartTime\"\r\nMy-Logger \"  EndTime: $EndTime\"\r\nMy-Logger \" Duration: $duration Minutes\"\r\nMy-Logger \"Complete!\"\r\n \r\n#Archive\r\nCopy-Item $verboseLogFile $LastverboseLogFile\r\n \r\n#Disconnect\r\nDisconnect-VIServer * -Confirm:$false\r\nDisconnect-VBRServer<\/pre>\n<p>The log would look like this:<\/p>\n<pre class=\"lang:default highlight:0 decode:true \">[2016-12-16_14:16:19] Start VPN Client VMs restore\r\n[2016-12-16_14:16:19] Connect vCenter Server\r\n[2016-12-16_14:16:19] Connect Veeam Server\r\n[2016-12-16_14:16:19] Backup Name: MyBackup-01\r\n[2016-12-16_14:16:19] VMware Folder: MyFolder\r\n[2016-12-16_14:16:19] VMs to restore ...\r\n\r\nVmName                                                                                                                                                                                                                                                                               \r\n------                                                                                                                                                                                                                                                                               \r\nMy-TestVM01\r\nMy-TestVM02                                                                                                                                                                                                                                                              \r\nMy-TestVM03                                                                                                                                                                                                                                                              \r\n[2016-12-16_14:16:19] Restoreing VM: My-TestVM01\r\n[2016-12-16_14:22:15] Restoreing VM: My-TestVM02\r\n[2016-12-16_14:33:36] Restoreing VM: My-TestVM03\r\n[2016-12-16_14:42:54] Restore Complete!\r\n[2016-12-16_14:42:54] Poweron VMs ...\r\n\r\nName                 PowerState Num CPUs MemoryGB       \r\n----                 ---------- -------- --------       \r\nMy-TestVM01\t\t\t PoweredOff 2        8,000          \r\nMy-TestVM02\t\t\t PoweredOff 2        8,000          \r\nMy-TestVM03\t\t\t PoweredOff 2        8,000          \r\n[2016-12-16_14:42:57] Show Poweredon VMs ...\r\n\r\nName                 PowerState Num CPUs MemoryGB       \r\n----                 ---------- -------- --------       \r\nMy-TestVM01\t\t\t PoweredOn  2        8,000          \r\nMy-TestVM02\t\t\t PoweredOn  2        8,000          \r\nMy-TestVM03\t\t\t PoweredOn  2        8,000          \r\n\r\n\r\n[2016-12-16_14:42:59] StartTime: 12\/16\/2016 14:16:19\r\n[2016-12-16_14:42:59]   EndTime: 12\/16\/2016 14:42:59\r\n[2016-12-16_14:42:59]  Duration: 26.67 minutes\r\n[2016-12-16_14:42:59] Complete!\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I had the challenge to restore once a week multiple VMs that are used for VPN Client Testing. I would like to share my script with you \ud83d\ude09<\/p>\n","protected":false},"author":1,"featured_media":645,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-642","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powercli","category-veeam"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Today I had the challenge to restore once a week multiple VMs that are used for VPN Client Testing. I would like to share my script with you ;-) # Restore VMs for VPN Client Test #Load PS Modules Add-PSSnapin VMware.VimAutomation.Core Add-PSSnapin VeeamPSSnapin #Timer start $StartTime = Get-Date #Define Logging Vars $verboseLogFile = &#039;c:\\temp\\myReports\\older-reports\\Restore-VM-Log_&#039; +\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Christoph Hochsticher\"\/>\n\t<meta name=\"google-site-verification\" content=\"lo0g577VbySpy05Melx7kVchEKh4qiUJhEtBpOiRLg8\" \/>\n\t<link rel=\"canonical\" href=\"http:\/\/vblog.hochsticher.de\/?p=642\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Chris - vBlog - Blog about Virtualization\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Restore VMs via PowerShell - Chris - vBlog\" \/>\n\t\t<meta property=\"og:description\" content=\"Today I had the challenge to restore once a week multiple VMs that are used for VPN Client Testing. I would like to share my script with you ;-) # Restore VMs for VPN Client Test #Load PS Modules Add-PSSnapin VMware.VimAutomation.Core Add-PSSnapin VeeamPSSnapin #Timer start $StartTime = Get-Date #Define Logging Vars $verboseLogFile = &#039;c:\\temp\\myReports\\older-reports\\Restore-VM-Log_&#039; +\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/vblog.hochsticher.de\/?p=642\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-12-16T14:55:47+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2016-12-16T16:10:23+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Restore VMs via PowerShell - Chris - vBlog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Today I had the challenge to restore once a week multiple VMs that are used for VPN Client Testing. I would like to share my script with you ;-) # Restore VMs for VPN Client Test #Load PS Modules Add-PSSnapin VMware.VimAutomation.Core Add-PSSnapin VeeamPSSnapin #Timer start $StartTime = Get-Date #Define Logging Vars $verboseLogFile = &#039;c:\\temp\\myReports\\older-reports\\Restore-VM-Log_&#039; +\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642#blogposting\",\"name\":\"Restore VMs via PowerShell - Chris - vBlog\",\"headline\":\"Restore VMs via PowerShell\",\"author\":{\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?author=1#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/vblog.hochsticher.de\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/veeam-ps.jpg?wsr\",\"width\":310,\"height\":163},\"datePublished\":\"2016-12-16T15:55:47+01:00\",\"dateModified\":\"2016-12-16T17:10:23+01:00\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642#webpage\"},\"articleSection\":\"PowerCLI, Veeam\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/vblog.hochsticher.de\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?cat=4#listItem\",\"name\":\"PowerCLI\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?cat=4#listItem\",\"position\":2,\"name\":\"PowerCLI\",\"item\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?cat=4\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642#listItem\",\"name\":\"Restore VMs via PowerShell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642#listItem\",\"position\":3,\"name\":\"Restore VMs via PowerShell\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?cat=4#listItem\",\"name\":\"PowerCLI\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?author=1#author\",\"url\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?author=1\",\"name\":\"Christoph Hochsticher\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d87fe995d7081d178014a72c729204792aff213f894bac1d28d0e0cc956c1171?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Christoph Hochsticher\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642#webpage\",\"url\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642\",\"name\":\"Restore VMs via PowerShell - Chris - vBlog\",\"description\":\"Today I had the challenge to restore once a week multiple VMs that are used for VPN Client Testing. I would like to share my script with you ;-) # Restore VMs for VPN Client Test #Load PS Modules Add-PSSnapin VMware.VimAutomation.Core Add-PSSnapin VeeamPSSnapin #Timer start $StartTime = Get-Date #Define Logging Vars $verboseLogFile = 'c:\\\\temp\\\\myReports\\\\older-reports\\\\Restore-VM-Log_' +\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?author=1#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/vblog.hochsticher.de\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/veeam-ps.jpg?wsr\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642\\\/#mainImage\",\"width\":310,\"height\":163},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/?p=642#mainImage\"},\"datePublished\":\"2016-12-16T15:55:47+01:00\",\"dateModified\":\"2016-12-16T17:10:23+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/#website\",\"url\":\"http:\\\/\\\/vblog.hochsticher.de\\\/\",\"name\":\"Chris - vBlog\",\"description\":\"Blog about Virtualization\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"http:\\\/\\\/vblog.hochsticher.de\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Restore VMs via PowerShell - Chris - vBlog","description":"Today I had the challenge to restore once a week multiple VMs that are used for VPN Client Testing. I would like to share my script with you ;-) # Restore VMs for VPN Client Test #Load PS Modules Add-PSSnapin VMware.VimAutomation.Core Add-PSSnapin VeeamPSSnapin #Timer start $StartTime = Get-Date #Define Logging Vars $verboseLogFile = 'c:\\temp\\myReports\\older-reports\\Restore-VM-Log_' +","canonical_url":"http:\/\/vblog.hochsticher.de\/?p=642","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"lo0g577VbySpy05Melx7kVchEKh4qiUJhEtBpOiRLg8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"http:\/\/vblog.hochsticher.de\/?p=642#blogposting","name":"Restore VMs via PowerShell - Chris - vBlog","headline":"Restore VMs via PowerShell","author":{"@id":"http:\/\/vblog.hochsticher.de\/?author=1#author"},"publisher":{"@id":"http:\/\/vblog.hochsticher.de\/#person"},"image":{"@type":"ImageObject","url":"http:\/\/vblog.hochsticher.de\/wp-content\/uploads\/2016\/12\/veeam-ps.jpg?wsr","width":310,"height":163},"datePublished":"2016-12-16T15:55:47+01:00","dateModified":"2016-12-16T17:10:23+01:00","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"http:\/\/vblog.hochsticher.de\/?p=642#webpage"},"isPartOf":{"@id":"http:\/\/vblog.hochsticher.de\/?p=642#webpage"},"articleSection":"PowerCLI, Veeam"},{"@type":"BreadcrumbList","@id":"http:\/\/vblog.hochsticher.de\/?p=642#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/vblog.hochsticher.de#listItem","position":1,"name":"Home","item":"http:\/\/vblog.hochsticher.de","nextItem":{"@type":"ListItem","@id":"http:\/\/vblog.hochsticher.de\/?cat=4#listItem","name":"PowerCLI"}},{"@type":"ListItem","@id":"http:\/\/vblog.hochsticher.de\/?cat=4#listItem","position":2,"name":"PowerCLI","item":"http:\/\/vblog.hochsticher.de\/?cat=4","nextItem":{"@type":"ListItem","@id":"http:\/\/vblog.hochsticher.de\/?p=642#listItem","name":"Restore VMs via PowerShell"},"previousItem":{"@type":"ListItem","@id":"http:\/\/vblog.hochsticher.de#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/vblog.hochsticher.de\/?p=642#listItem","position":3,"name":"Restore VMs via PowerShell","previousItem":{"@type":"ListItem","@id":"http:\/\/vblog.hochsticher.de\/?cat=4#listItem","name":"PowerCLI"}}]},{"@type":"Person","@id":"http:\/\/vblog.hochsticher.de\/?author=1#author","url":"http:\/\/vblog.hochsticher.de\/?author=1","name":"Christoph Hochsticher","image":{"@type":"ImageObject","@id":"http:\/\/vblog.hochsticher.de\/?p=642#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d87fe995d7081d178014a72c729204792aff213f894bac1d28d0e0cc956c1171?s=96&d=mm&r=g","width":96,"height":96,"caption":"Christoph Hochsticher"}},{"@type":"WebPage","@id":"http:\/\/vblog.hochsticher.de\/?p=642#webpage","url":"http:\/\/vblog.hochsticher.de\/?p=642","name":"Restore VMs via PowerShell - Chris - vBlog","description":"Today I had the challenge to restore once a week multiple VMs that are used for VPN Client Testing. I would like to share my script with you ;-) # Restore VMs for VPN Client Test #Load PS Modules Add-PSSnapin VMware.VimAutomation.Core Add-PSSnapin VeeamPSSnapin #Timer start $StartTime = Get-Date #Define Logging Vars $verboseLogFile = 'c:\\temp\\myReports\\older-reports\\Restore-VM-Log_' +","inLanguage":"en-US","isPartOf":{"@id":"http:\/\/vblog.hochsticher.de\/#website"},"breadcrumb":{"@id":"http:\/\/vblog.hochsticher.de\/?p=642#breadcrumblist"},"author":{"@id":"http:\/\/vblog.hochsticher.de\/?author=1#author"},"creator":{"@id":"http:\/\/vblog.hochsticher.de\/?author=1#author"},"image":{"@type":"ImageObject","url":"http:\/\/vblog.hochsticher.de\/wp-content\/uploads\/2016\/12\/veeam-ps.jpg?wsr","@id":"http:\/\/vblog.hochsticher.de\/?p=642\/#mainImage","width":310,"height":163},"primaryImageOfPage":{"@id":"http:\/\/vblog.hochsticher.de\/?p=642#mainImage"},"datePublished":"2016-12-16T15:55:47+01:00","dateModified":"2016-12-16T17:10:23+01:00"},{"@type":"WebSite","@id":"http:\/\/vblog.hochsticher.de\/#website","url":"http:\/\/vblog.hochsticher.de\/","name":"Chris - vBlog","description":"Blog about Virtualization","inLanguage":"en-US","publisher":{"@id":"http:\/\/vblog.hochsticher.de\/#person"}}]},"og:locale":"en_US","og:site_name":"Chris - vBlog - Blog about Virtualization","og:type":"article","og:title":"Restore VMs via PowerShell - Chris - vBlog","og:description":"Today I had the challenge to restore once a week multiple VMs that are used for VPN Client Testing. I would like to share my script with you ;-) # Restore VMs for VPN Client Test #Load PS Modules Add-PSSnapin VMware.VimAutomation.Core Add-PSSnapin VeeamPSSnapin #Timer start $StartTime = Get-Date #Define Logging Vars $verboseLogFile = 'c:\\temp\\myReports\\older-reports\\Restore-VM-Log_' +","og:url":"http:\/\/vblog.hochsticher.de\/?p=642","article:published_time":"2016-12-16T14:55:47+00:00","article:modified_time":"2016-12-16T16:10:23+00:00","twitter:card":"summary_large_image","twitter:title":"Restore VMs via PowerShell - Chris - vBlog","twitter:description":"Today I had the challenge to restore once a week multiple VMs that are used for VPN Client Testing. I would like to share my script with you ;-) # Restore VMs for VPN Client Test #Load PS Modules Add-PSSnapin VMware.VimAutomation.Core Add-PSSnapin VeeamPSSnapin #Timer start $StartTime = Get-Date #Define Logging Vars $verboseLogFile = 'c:\\temp\\myReports\\older-reports\\Restore-VM-Log_' +"},"aioseo_meta_data":{"post_id":"642","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-03-16 21:40:54","updated":"2025-06-03 21:08:34","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/vblog.hochsticher.de\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/vblog.hochsticher.de\/?cat=4\" title=\"PowerCLI\">PowerCLI<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tRestore VMs via PowerShell\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"http:\/\/vblog.hochsticher.de"},{"label":"PowerCLI","link":"http:\/\/vblog.hochsticher.de\/?cat=4"},{"label":"Restore VMs via PowerShell","link":"http:\/\/vblog.hochsticher.de\/?p=642"}],"_links":{"self":[{"href":"http:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=642"}],"version-history":[{"count":3,"href":"http:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/642\/revisions"}],"predecessor-version":[{"id":646,"href":"http:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/642\/revisions\/646"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/media\/645"}],"wp:attachment":[{"href":"http:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=642"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}