This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # my powershell profile | |
| # This profile requres PowerCLI module to be installed | |
| # vmrun -T ws -gu ssadm -gp P@ssw0rd runScriptInGuest $vmss "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "C:\Users\ssadm\Desktop\scripts\updCommon.ps1" | |
| # host time setup | |
| function SetupHostTime { | |
| param( [string]$hostName, [string]$hostDomain, [string]$username, [string]$userpwd ) | |
| Connect-ViServer "$hostName.$hostDomain" -User $username -Password $userpwd | |
| $esxcli = Get-EsxCli |
NewerOlder