Difference between revisions of "ESX Script Extracts and Examples"

Jump to navigation Jump to search
Syntax highlighting broken
(Added "Add VLANs/PortGroups to Standard Switch" and re-ordered other sections)
(Syntax highlighting broken)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
Simple script that runs every morning just before I start work to provide a basic sanity check email to glance through over the first tea of the day.
Simple script that runs every morning just before I start work to provide a basic sanity check email to glance through over the first tea of the day.


<source lang="Powershell">
<syntaxhighlight lang='powershell'>
 
#############################################################################################
#############################################################################################
#
#
Line 134: Line 135:
     Start-Sleep(30000)
     Start-Sleep(30000)
}
}
</source>
 
</syntaxhighlight>


{{PowerShell_Credentials_Files}}
{{PowerShell_Credentials_Files}}
Line 219: Line 221:
</source>
</source>


{| class="wikitable"
{| class="vwikitable"
|+ Example contents of CSV file
|+ Example contents of CSV file
! VLAN !! Name
! VLAN !! Name
Line 455: Line 457:


{{PowerShell_Credentials_Files}}
{{PowerShell_Credentials_Files}}


[[Category:PowerCLI]]
[[Category:PowerCLI]]
[[Category:ESX]]
[[Category:ESX]]

Navigation menu