Quantcast
Channel: VMware Communities : Discussion List - Automation Tools
Browsing index pages (9071 articles)

Image may be NSFW.
Clik here to view.

DNS

Hello, Can someone please tell me: I have a text file called 'Server_IP' and in that sheet it has all the IPs.Is there anyway I can script and get the DNS names by doing nslookup of that IPs and get...

View Article


SCSIcanonicalname?

Hi, I am using the following script to keep track of RDMs in relation to migrations. $DiskInfo= @()$vm = Get-Cluster "CLUSTERNAME" | Get-VM foreach ($VMview in Get-VM $vm | Get-View){foreach...

View Article


Error running Invoke-Vmscript - An error occurred while sending the request....

(EDIT: Same issue already reported here: Invoke-VMScript - An error occurred while sending the request ) Hello folks,  I used to run Invoke-Vmscript againts our Environment to automate Template...

View Article

Is a way to extract installed softwares and version for auditory with PowerCLI?

Hello,         I have an audit. I need to extract for each vm an installed softwares and I don't know if exist a way through vmware cli. Thanks and regards,Tomás

View Article

Image may be NSFW.
Clik here to view.

powercli Get-Task output language

I want to change the output(TaskName) language

View Article


IMM Ip Address through PowerCLI

hello I am exeucting following line from https://www.altaro.com/vmware/esxi-ilo-idrac-powercli/Get-VMHostWSManInstance –Vmhost (Get-VMhost ESX01.tglab.lcl) –IgnoreCertFailures –Class...

View Article

Convert 500+ thick disks to Thin

Hi, I need a script which can covert thick disks to Thin, requirement is aa below. 1. Get VM name/Thick disks list, source datastore  and destination datastore from CSV file.2. Move only the thick...

View Article

Update VM template (non domain joined)

Hello, Has anyone found a neat way of updating their VM template with Windows updates without joining to the domain? I have found the following post which is also on another website but wondering if...

View Article


Invoke-VMScript Response status code does not indicate success: 403 (Forbidden)

Hi, Hope you're all well. I am using Invoke-VMScript to interact with Windows VMs. Something strange is happening. On my Windows 10 machine every time I do an invoke-vmscript, it carries out the script...

View Article


New-VM on linked vCenter HCI

Hi. There are 2 vCenters on HCI platform in linked mode. vCenter1vCenter2 Templates and Customization specs resides on vCenter1. Using PowerCLI, I am trying to deploy a VM from the template to...

View Article

find VM that was deleted from vcenter

Trying to find a VM that was deleted from vcenter. Probablyt last 2 weeks  is this right? Get-VIEvent-maxsamples ([int]::MaxValue) -Start (Get-Date).AddDays(–14) |...

View Article

Exclude a group of VMs in a get-filter regex

Hi. I am having issues excluding a group of VMs from a regex expression in a get-filter. I won't bore everyone and list everything I tried, which has exhausted me. Essentially I am using this call...

View Article

new-tagassignment value cannot be null

Hi everyone, so I am trying to simply add a tag to a series of machines. I have the tag and a vm name in a CSV. every time I run my script my output says value cannot be null. what am i doing wrong....

View Article


Image may be NSFW.
Clik here to view.

Template Update Script Not Finishing

I have a script that takes a template and converts it, updates the windows, then converts it back.  Script works great with Win2016 & 2019, but I had to make a win10 template and it won't convert...

View Article

use Get-VDPortgroup cmdlet in the VDS component

Hello I'm using the below script to get VDS Port Group it's working fine but I'm getting the warring message: WARNING: The output of the command produced distributed virtual portgroup objects. This...

View Article


Image may be NSFW.
Clik here to view.

DistributedVirtualSwitchInfo with id 'xxx' does not exist

Hello there. I am trying to create vmk intarfaces with New-VMHostNetworkAdapter cmlet, but gettin the error "DistributedVirtualSwitchInfo with id 50 02 5a 5c 8c fc 30 be-15 99 73 74 7d 87 b7 37' does...

View Article

Datacenter migration script from standard to distributed portgroups with the...

Hello friends,I'm currently working on trying to migrating virtual machines to a new datacenter. Networks are identical (stretched) in both datacenters but we have to do a svmotion to move between...

View Article


Image may be NSFW.
Clik here to view.

Restart information

Hello,Can someone please help me to how to find the restart information (Windows servers) such as: Date and time and who performed the taskI can get this last reboot information. But here I am looking...

View Article

Change MTU on physical ports without downTime

is there a way to change the MTU for physical NICs [vmnic] without downtime? The issue is that MTU 9000 was enabled on vmkernel and not enabled on physical ports which is not recommended and such kind...

View Article

Image may be NSFW.
Clik here to view.

How to run script in Power CLI

I have powershell version 4.0 and Power CLI version 6.5 Release build 4624819. If I run one line command like  "Get-VMHostNetwork -VMHost $esx | Set-VMHostNetwork -DomainName $domainname -DNSAddress...

View Article
Browsing index pages (9071 articles)


Latest Images