Uploading Snip-its
While I was at Vmworld I head there was a URL that you could trade code/examples.Plus I want a powercli t-shirt
View ArticleVCSA disk utilization report
Hello All, Recently we had boot drive full issue on one of the VCSA 6.0. After this issue, we have decided to set some monitoring for all disk usage. what are the ways get this done.we have vROPS in...
View ArticleGet List of VMs, Datastores and Folder name per Cluster
Hello!! I'm hoping someone can assist me with a PowerCLI script that can pull the subject info into a txt or csv file. In an effort to get our environment cleaned up before our next DR exercise with...
View ArticleNew-CDDrive -contentlibraryiso issue
Hi All, I'm trying to add a cd drive with a mounted iso from the content library. I'm trying the following: PS D:\Users\z8qno> $test = Get-ContentLibraryItem -Name "TinyCore-current.iso"PS...
View ArticlevCLI Host Backups (minimum permissions)
I've been going onto each of my ESX hosts and creating a new account called "backup" that I then use in a --config file to backup that host using the vicfg-cfgbackup.pl script. Just to get it to work...
View ArticleNeed Powershell script for VM inventory
Hi, Need a powershell script to collect the below given info from virtual center. vmname | ESX Name | memory(GB) | vCPU count | vNIC Count | IP address(all) | vmdk(s) size(GB) | Total vmdk size(GB) |...
View ArticlePowerCLi
Guys, Any help would be appreciated.... I have a SATA Controller and I am trying to add HD's via powercli, keep asking for SCSI controller type. The option I see for -controller is not "SATA...
View ArticleHelp Needed for Snapshot creation and Deletion
Hello, I am using this Powershell GUI based script made by one of Microsoft engineer to create snapshot and also report using email. I have enhanced it further and also added delete snapshot. Now what...
View Articleinvoke-vmscript vmwarte tools upgrade on linux
trying to get an automated way to patch linux guests $cmd1 = get-vm testlinux | Mount-Toolsstart-sleep 5$script1 = "mkdir -p /mnt/cdrom && mount /dev/cdrom /mnt/cdrom && cp -f...
View ArticleNeed help with RDM script to set them to Perennially Reserved
So I found this script to set the RDMs to Perennially Reserved, however, we have probably 15-20 VMs with RDMs so doing this manually can be tough. I'd like to be able to have PowerCLI build a list of...
View ArticleSRM - How to keep Recovery Status in a powershell script when Recovery Plan...
I need to automate scripts for storage tasks (NetApp) that are not managed by SRM. To automate scripts with SRM I have created steps in the Recovery Plan that invoke Powershell scripts.I have the...
View ArticleAssistance with scrip to bulk set Perennially Reservations using Get-ESXCLi
I was hoping for a little help here. Ive written a script that Should set a lun to "Perennially Reserved" using Powercli & Get-ESXICli, however when I run the following command locally on a host to...
View ArticlevSphere 6.5 – Automate VCSA Backup (Lost)
Hi guys, Hoping you can help a CLI noob. I'm trying to get this to work as per Brian's article (https://www.brianjgraf.com/2016/11/18/vsphere-6-5-automate-vcsa-backup) and failing hopelessly. I'm just...
View ArticlePowerCLI Core - Update or Roadmap
Hi, I'm looking at increasing the automation of our platform with Ansible. As such, I'm looking at ways to run PowerCLI on the Ansible host. The PowerCLI Docker container is one option, however with...
View ArticleInvoke-VMScript to disable Remote Desktop Network Level Authentication
Hi comrades!I need a liitle help)I have thisInvoke-VMScript -vm $vm -GuestUser Administrator -GuestPassword NewYork2017! -ScriptType Powershell -Scripttext "(Get-WmiObject -class...
View ArticlevCheck halts at "snapshot information.ps1" with vSphere 6.5
Hello, vCheck used to work perfectly with vSphere 6.5, but it started to face issues in step 64, nothing as changed in the environment, and it doesn't also ask for the credentials, I've created the...
View ArticleHelp Migrating VMs
A little history. I'm trying to migrate some VMs from a cluster running vSphere 5.1 to a new vSphere 6.0 vSAN Cluster. Via the web client, if I do a migrate both Compute & Storage option, and...
View ArticleTrying to list Datastores that are not in a list of folders.
I am stuck, What I would like to do is exclude datastores within a list of datastore folders when getting a list of datastores. if I do a get-folder, I get the following (which is expected): Name...
View ArticlePowerCLI script to get HP Onboard Administrator IP
Hi All,I'm in a difficult situation. I have 4 HP C7000 Chassis' that I have no IP information (OA and VCM). The Blades in the chassis are BL460 G7's (16 per Chassis total of 64 Hosts in 4 Farms). The...
View Article