PowerShell:: PowerCLI:: Provision multiple VMs from a Template on Vmware

Below script create multiple VMs from the same template on same cluster and datastore $noVms = Read-host "Enter number of VMs to be created" $cluster = Read-host "Enter Name of the cluster" $dsCluster = Read-host "Enter Name of the Datastore cluster" $template = Read-host "Enter template name" Connect-VIServer <vcenter server name> -Credential (Get-Credential -Message "Credential … Continue reading PowerShell:: PowerCLI:: Provision multiple VMs from a Template on Vmware

Powershell:: Uninstall the application remotely (Get the servers/computer from AD )

Below script to uninstall an application from remote servers (or a number of the remote servers). You can also import the list of computers from a txt file using ($computers = get-content .\computer.txt) $computers = get-adcomputer -filter 'OperatingSystem -like "*Windows Server*"' -SearchBase "<Server name FQDN" foreach($comp in $computers){ $computer = $comp.name $error.clear() $log = Invoke-Command … Continue reading Powershell:: Uninstall the application remotely (Get the servers/computer from AD )

Powershell Script:: Check Possible Security update or Server reboot Failure:: SCCM

Powershell script to check last reboot status, Remote desktop connection and/or ping response status The script will retrieve the list of servers that not rebooted in last 15 days (assuming the last windows update happened a month or 2 back), check the ping status, to verify the server still online, and check RDP connection (to … Continue reading Powershell Script:: Check Possible Security update or Server reboot Failure:: SCCM