powercli Questions
4
Solved
I need to permanently add a scripts folder to my PowerShell path (not just a particular session). I am running the following code:
[System.Environment]::SetEnvironmentVariable("PATH", $Env:Path + ...
Kwon asked 20/11, 2013 at 21:44
6
Solved
I am trying to locate specific VM's based from IP addresses in PowerCLI. I found this script online Grabbing VM ipaddress via PowerCLI
The intial question explaines the issues I was having, and th...
Charismatic asked 2/3, 2015 at 9:4
3
I am trying to use Copy-Item from remote machine to another remote machine with the command:
Copy-Item -Path "\\machine1\abc\123\log 1.zip" -Destination "\\machine2\\c$\Logs\"
I am constantly ge...
Merrythought asked 1/2, 2013 at 19:45
2
Solved
I'd like to be connected to multiple VIservers and list all the VMs + their respective clusters. Is this possible?
I've gotten as far as Get-VM | Select Name,VMHost. What property in place of VMHo...
Alainealair asked 4/9, 2016 at 6:41
1
Below i'm trying to create nested array and to add array elements to it like below
$nArr = @(@('1','3'), @('5','7','9'), @('2','4','6'))
And here is the script to get the above structure
$integ =...
Trinatte asked 10/11, 2020 at 5:29
2
Solved
I'm looking to do the Following Steps:
Reading in a CSV File
Add The Contents from the CSV File to An Array
Compare the Contents from the CSV with the Contents from another Array
If the Item...
Fanfare asked 15/4, 2020 at 11:11
1
Solved
As the title suggests, I'm trying to login to a VMWare vSphere server using PowerCLI. Even though I ran Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false -Scope AllUsers, w...
Cristal asked 30/3, 2020 at 13:24
5
Solved
I have a PowerCLI script that powers off a VM, changes its memory and cpu, and then powers it back on. I've adapted the script to utilize variables. This all works perfectly.
I'm now trying to mod...
Crosspatch asked 7/8, 2014 at 20:41
4
Solved
How do we make Inner-Join or something a Cross-Join in PowerShell or PowerCLI?
Even though im new to PowerCLI/PowerShell , I do have a basic grasp on them, yet have practically spent 2 days trying...
Sydel asked 22/9, 2016 at 4:41
2
Solved
I am having trouble getting an array passed to a scriptblock in Start-Job. Can you tell me what I might be doing wrong?
$bounceBlock = {
param(
[string[]]$list,
[System.Management.Automation.PSCre...
Lukash asked 21/8, 2015 at 14:29
1
Solved
I'm using VMWare's PowerCLI to run this command to output an inventory of sorts from vCenter.
Get-VM | Select-Object Name,MemoryGB,NumCpu,UsedSpaceGB,@{n="TotalHDSizeGB"; e={(Get-HardDisk -VM $_ |...
Essen asked 13/10, 2014 at 22:42
2
Solved
I have two arrays.
An array of objects containing Virtual Machine Information called $vms one of the attributes called Name. Here's the type:
PowerCLI > $vms.GetType()
IsPublic IsSerial Name ...
Deutoplasm asked 1/8, 2014 at 16:15
1
Solved
How can I disable the prompt when using the following cmdlet to disconnect from a server in PowerCLI? The help file shows a -Confirm option, which I don't use, so I'm inferring from this that witho...
1
Solved
I've started rewriting my VMware daily report to use Get-View, rather than the related PowerCLI commands wherever possible, for performance reasons. One minor inconvenience with this is that the vi...
Willner asked 20/2, 2013 at 0:14
1
Solved
I'm trying to write a fairly simple application in C# (or at least, I think it should be simple) that polls a vCenter for all of its ESX servers, then each ESX server for all of its VMs. It w...
1
© 2022 - 2024 — McMap. All rights reserved.