<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>powercli on David Hrbáč</title>
    <link>https://www.hrbac.cz/tags/powercli/</link>
    <description>Recent content in powercli on David Hrbáč</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 07 Jan 2013 13:43:14 +0000</lastBuildDate><atom:link href="https://www.hrbac.cz/tags/powercli/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Powercli to list &amp; delete snapshots</title>
      <link>https://www.hrbac.cz/2013/01/powercli-to-list-delete-snapshots/</link>
      <pubDate>Mon, 07 Jan 2013 13:43:14 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2013/01/powercli-to-list-delete-snapshots/</guid>
      
      <description>We have realized we are having broken NetApp VMs backup. The process left a lot of VM snapshots. To start off let&amp;rsquo;s find out those snaps with:
get-vm | get-snapshot | where {$\_.Description -match &amp;#34;SMVI Snapshot generated for backup&amp;#34;} | Format-Table -Property VM,Name,Created,Description, SizeMB This command prints the flowing table:
VM Name Created Description SizeMB -- ---- ------- ----------- ------ vyuka.fs smvi\_a3d... 23.11.2012 17:56:25 SMVI Snapshot... 6768,13 ojs smvi\_a3d... 23.11.2012 18:01:25 SMVI Snapshot.</description>
      
    </item>
    
    <item>
      <title>PowerCLI to start and stop Remote Tech Support (SSH)</title>
      <link>https://www.hrbac.cz/2012/08/powercli-to-start-and-stop-remote-tech-support-ssh/</link>
      <pubDate>Mon, 06 Aug 2012 12:02:56 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/08/powercli-to-start-and-stop-remote-tech-support-ssh/</guid>
      
      <description>Another PowerCLI one-liner to start Remote Tech Support (SSH) on ESX/ESXi:
Get-Cluster -Name &amp;#34;CIT2 CLuster&amp;#34; | Get-VMHost | Get-VMHostService | ? {$\_.Key -eq &amp;#34;TSM-ssh&amp;#34;} | Start-VMHostService One-liner to stop:
Get-Cluster -Name &amp;#34;CIT2 CLuster&amp;#34; | Get-VMHost | Get-VMHostService | ? {$\_.Key -eq &amp;#34;TSM-ssh&amp;#34;} | Stop-VMHostService -Confirm:$false </description>
      
    </item>
    
    <item>
      <title>PowerCLI to add vlan to vmware cluster</title>
      <link>https://www.hrbac.cz/2012/04/powercli-to-add-vlan-to-vmware-cluster/</link>
      <pubDate>Thu, 19 Apr 2012 11:12:29 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/04/powercli-to-add-vlan-to-vmware-cluster/</guid>
      
      <description>One-liner to add VLANs to the all hosts within vSphere cluster:
Get-Cluster &amp;#34;CIT Cluster&amp;#34; | Get-VMHost | Get-VirtualSwitch -name vSwitch0 | New-VirtualPortGroup -name &amp;#34;Networking - Vlan80&amp;#34; -VLanId 80 </description>
      
    </item>
    
  </channel>
</rss>
