Hello, I have created snapshots for many VMs with the description:"Prior to install VM Hardware" Can someone please tell me how to remove those snapshots that has a description : "Prior to in...
See more...
Hello, I have created snapshots for many VMs with the description:"Prior to install VM Hardware" Can someone please tell me how to remove those snapshots that has a description : "Prior to install VM Hardware" $vmlist = Get-Content "C:\VM\Snapshots\vmlists.txt" foreach($VM in $VMlist) { Get-Snapshot -VM $vm | Remove-Snapshot -Confirm:$false } Disconnect-VIServer -Confirm:$false
Hello, I have a vCenter and it has almost 100+ dvPortgroups and 20+ Standard Switches. My vCenter is 6.7. In Vmware site, I saw that the feature AutoExpand is enabled by default from vCenter 5...
See more...
Hello, I have a vCenter and it has almost 100+ dvPortgroups and 20+ Standard Switches. My vCenter is 6.7. In Vmware site, I saw that the feature AutoExpand is enabled by default from vCenter 5.1. Here my intention is disable 'AutoExpand' only for dvPortgroups with a powershell Script. Manual task is time consuming. Can someone please help me to share the powershell script that can achieve that task ?
Yes, I know. My situations demanded. This is my second one going through. But I really appreciate your time for this script and the explanations. Thank you.
Sure, thank you very much. Your second script also worked perfectly except that SSH display for the incorrect password. I really appreciate your time with this matter. Thank you very much agai...
See more...
Sure, thank you very much. Your second script also worked perfectly except that SSH display for the incorrect password. I really appreciate your time with this matter. Thank you very much again. I am going to create one more script for copying that file in all the esx hosts in the vCenter using your scripts. Once again, Thank you very much...
Also to work the command: esxcli network firewall refresh, I have to remove that '-ErrorAction Stop' from the script; This worked too $session = New-SSHSession -ComputerName $esxFQDN ...
See more...
Also to work the command: esxcli network firewall refresh, I have to remove that '-ErrorAction Stop' from the script; This worked too $session = New-SSHSession -ComputerName $esxFQDN -Credential $cred –AcceptKey Invoke-SSHCommand -SSHSession $session -Command ' esxcli network firewall refresh'
I got the fix from your first script. I changed the first -AcceptKey value to $true and it worked. Upload and share screenshots and images - print screen online | Snipboard.io Now I changed...
See more...
I got the fix from your first script. I changed the first -AcceptKey value to $true and it worked. Upload and share screenshots and images - print screen online | Snipboard.io Now I changed the esx host password to an incorrect password and tried.And the file is not copying, but getting the message it is copied. Also seeing that SSH session to the host failed in both cases. Upload and share screenshots and images - print screen online | Snipboard.io
I am able to copy the file using your first script after starting the ssh. But I am unable to copy it using the second script. So do you think we have to adjust the script ?
Thank you very much. Thats really a helpful information. I tried to connect the vCenter and ran the script and it ran. But the file didnt copy. I think the SSH didnt start Upload and share s...
See more...
Thank you very much. Thats really a helpful information. I tried to connect the vCenter and ran the script and it ran. But the file didnt copy. I think the SSH didnt start Upload and share screenshots and images - print screen online | Snipboard.io
Ok. But like I mentioned earlier, I have all esx hosts in that txt file is sitting in different different vCenters. In this case do I need to connect all the vCenters one by one? Your first scr...
See more...
Ok. But like I mentioned earlier, I have all esx hosts in that txt file is sitting in different different vCenters. In this case do I need to connect all the vCenters one by one? Your first script is perfect, it is pulling all the ESX hosts from that txt file and connecting with its root credentials and then updating the firewall xml file in that location. Here my new query was like how to start/stop SSH by the script and get the information if the xml file is copied/not copied. Is this possible without connecting the vCenter ?
Thank you for that. I have installed new power version of power cli: Upload and share screenshots and images - print screen online | Snipboard.io But not sure how to open it: Upload and share ...
See more...
Thank you for that. I have installed new power version of power cli: Upload and share screenshots and images - print screen online | Snipboard.io But not sure how to open it: Upload and share screenshots and images - print screen online | Snipboard.io Unable to search it I believe it is included in the power shell. And cannot open separately. Anyways since you helped me to install the latest version how to get that script worked? Upload and share screenshots and images - print screen online | Snipboard.io
Also I ran the below mmand and got this result : if(-not (Get-Module VMware.VimAutomation.Core)){ Import-Module VMware.VimAutomation.Core -ErrorAction SilentlyContinue } if(-not (Get-Mod...
See more...
Also I ran the below mmand and got this result : if(-not (Get-Module VMware.VimAutomation.Core)){ Import-Module VMware.VimAutomation.Core -ErrorAction SilentlyContinue } if(-not (Get-Module VMware.VimAutomation.Vds)){ Import-Module VMware.VimAutomation.Vds -ErrorAction SilentlyContinue } Upload and share screenshots and images - print screen online | Snipboard.io Yes, I see power cli in my system: Upload and share screenshots and images - print screen online | Snipboard.io
LucD, your script work like a charm!!! Thank you for that. I have enabled the SSH and removed the value '$true' from second AcceptKey.. Now I can see it is working. But instead of enabling/dis...
See more...
LucD, your script work like a charm!!! Thank you for that. I have enabled the SSH and removed the value '$true' from second AcceptKey.. Now I can see it is working. But instead of enabling/disabling ssh manually, can we add a command to do that. Also, if the file is copied in the ESX host then can we get it displayed something like 'Firewall xml file is copied for <that esx host> , if not copied (due to incorrect password or some other issue), can we get it displayed something like 'Firewall xml file is not copied for <that esx host> I tried to add but getting this error: Upload and share screenshots and images - print screen online | Snipboard.io
Hello LucD, I am really sorry. Now only I realized that your new comments are on my 2nd page. I was on 1st page and since I didnt see the 2nd page I was trying to communicate with you. Please for...
See more...
Hello LucD, I am really sorry. Now only I realized that your new comments are on my 2nd page. I was on 1st page and since I didnt see the 2nd page I was trying to communicate with you. Please forgive me. Let me go through your suggestions.
For testing purpose, I have copied only one esx host information in that txt file. There is no empty space/line after that esx host entry. Upload and share screenshots and images - print screen ...
See more...
For testing purpose, I have copied only one esx host information in that txt file. There is no empty space/line after that esx host entry. Upload and share screenshots and images - print screen online | Snipboard.io While running that script it is fetching that ESX host information from the txt file. That you have seen in previous picture.