Need help with a basic host script?
You can limit the virtual machines, you receive chaining cmdlets Get-VmHost and Get - Vm together like this
$hostlist = (get-vmhost -Name (get-content c:\hosts.txt) | select Name) #Get VMs for each host foreach ($esx in $hostlist) { $VMs = Get-VMHost $esx | Get-VM foreach ($vm in $VMs) { Write-host $vm.Name Write-host $vm.MemoryMB Write-host $vm.numcpu Write-host $vm.Guest } }
Tags: VMware
Similar Questions
-
need help with something basic, rename pages, made in muse
Hi all
can someone help me with a basic task,
I need to rename a page ivve Muse containing slide shows or forms,
When I download via FTP on writing the page index.html of Web sites
any suggestions on what I'm doing to rename Ive tried everything
Thank you in anticipation
Julie
Hi Julie,.
To rename a page in Muse name, please right-click on the page and access the properties of the page. "You can rename the name of the page of all pages, as well as the 'file name' of Muse, but you cannot change the ' file name ' Muse index page. Please refer to the following screenshot:
If you choose to export the site in HTML format, you can then change it so but links of menu items will be broken and you must manually link all the elements menu outside the muse.
I hope this helps.
See you soon!
Aish
-
Flash beginner needs help with Movie Clips/Action script
HI -.
I'm having a problem with my video clips playing simultaneously and cannot, for the life of me, know what I did wrong. I'm new to flash so I can I have created something wrong but this is what I have so far:
11 layers, total: 1 layer with 10 buttons, each button with the following actionscript code:
on (release) {}
gotoAndPlay (85);
}
When the number changes with regard to keyframes, the next film is about.
I have 10 films, total, but they are only video clips, mainly photo slideshow with audio, does everything in the library.
The problem occurs when I click on the second or third button. Not only the movie I selected starts to play, but all previous clips are as well, he has completely blurred all the sounds. I don't know what Miss me in action script, as my Action layer has a stop command to this topic at each keyframe where there is a new clip to play.
I tried to add a stopAllSounds command, but I'm afraid that does nothing because it is not an "audio file" in itself playing in the timeline panel.
I'm at the end of my rope and really need help to understand this one. My project is hanging in the balance on this point, I wrote everything correctly and it works beautifully.
Help, please!
Thank you
CarolineStart your sounds in frame 2 and place stopAllSounds() on each keyframe where begins a movieclip.
-
need help with first vsphere powercli script
Greetings,
Asked me to write a script to iterate over all the virtual machines in a given folder and to stop. The name of the folder is blue (and is deep in several files).
So far, I have:
$svr = Connect-VIServer-Server svr-protocol https-user--password...
$fldr = get-file-server $svr - blue name
I don't know what to do next. I would like to somehow get a picture of the VMS in the Blue folder, and then run:
{foreach ($vm to $vmlist)
Get - VM $vm | Stop-VMGuest
}
How can I do this? Ideally, it should be wrapped in a function that I could pass the name of the file, because I really need to stop the virtual machines in the blue folder and a few others, too.
Any help would be greatly appreciated.
Thank you
-John
You can specify the file on the location of the Get-VM cmdlet parameter.
Something like that
foreach( $vm in (Get-Vm -Location (Get-Folder Blue)) { $vm | Shutdown-VMGuest }
In PowerShell and PowerCLI, there is of course more then a way to get there.
It should work as well
Get-Folder Blue | Get-VM | %{ Shutdown-VMGuest -VM $_ }
____________
Blog: LucD notes
Twitter: lucd22
-
Need help with simple if/then script
I'm trying to replicate a simple if/then statement excel in a PDF form. Have tried several things, but am just not a scripter Java. The hope that I could get help from the community.
I have three boxes that contain information on costs. They are labeled LaborCost, MaterialCost & EquipmentCost. Later, in the form, I have two boxes of different output for the sum out of my first three boxes. If it's a positive number and the other is a negative number. In Excel forumla language, that's what each of the boxes would read as:
For the 1st result if it is a positive number: @if (+ LaborCost + MaterialCost + EquipmentCost > 0, + LaborCost + MaterialCost + EquipmentCost, 0)
For the 2nd result if it is a negative number: @if (+ LaborCost + MaterialCost + EquipmentCost < 0, + LaborCost + MaterialCost + EquipmentCost, 0)
I think that this should be a simple thing to write, but I'm not familiar with the games of the appropriate language.
Your colletive help is VERY appreciated.
Steven
Try following the calculation script customized:
// Sum the field values, as numbers var sum = +getField("LaborCost").value; sum += +getField("MaterialCost").value; sum += +getField("EquipmentCost").value; // Set this field value event.value = sum > 0 ? sum : 0;
For others, change the last line:
Event.Value = sum< 0="" sum="" :="">
-
Need help with the basic graphics
Hi all
I started trying to familiarize themselves with the development on the Blackberry. It seems
easy just use the standard of review, but becomes frustrating when I try to
paint the screen exclusively from the Graphics object.
My test program extends from the screen. The screen has a background
and the moving objects, but flickers (at least in the Blackberry JDE 4.7).
The flicker is reduced more when I work with the Graphics object
directly. If I write an object buffer Bitmap, drawBitmap back to the
main screens, flickering Graphics object is ridiculous.
I've seen other discussions where people told of using MIDlets or extend from BlackBerryCanvas or GameCanvas.
Try one of those who seems to make everything harder than it should be.
Is there a single best way to do a screen play?
Pointers, links, tips, samples,... would be greatly appreciated.
Thank you!
Hi, I had the same problem with twinkle. What you need to do is to synchronize threads. and the problem disappeared!
Kind regards
-
Need help with the basic steps to create ebook
I have a confession: I use constantly solutions instead of stop and learn the right way to use Indesign to create ebooks. I wouldn't say that I'm doing it because I'm lazy, but because I'm simply inept lol. Here are some of the basic steps I take:
1. create the document: include the block of text type (because I want the page numbers to display)
2 paste the unformatted document text
3. adjust the size of the main frame to produce the text of the appropriate margins (because its an ebook, left/right margin even opposing pages.)
4. highlight all of the text, set the spacing before and after the paragraph halfway through the character before (the bottom text is at the same point for each page)
5. go in the titles of chapters; do jumps from title page has its own page; Highlight the title, choose the font, the size; create the new character style; apply the style to other chapter titles (it is possible to create a ctrl + number shortcut to apply character styles?). Note that I did not create a character for the body text style. I'm just doing the first?
6 Insert markers page number on both master pages, then cover page number with a white box on the first page of the chapters.
7. remove photos in textbox so that if more text is added, the photos move with the text.
That's basically what I do when I create an ebook. Any suggestions as to best/way to do these things would be very appreciated.
1. the master text blocks have nothing to do with page numbers and in most cases are completely unnecessary. Set the margins of appropriately and place your text.
2. without knowing what you leave on it is impossible to tell if it's a good idea or not. My stomach says is not. See number 1.
3 see number 1.
4. it's what paragraph styles are for.
5. see number 4.
6. This is what the multiple master pages are for. Stop doing that.
7. well, you finally have a right. As my people... would say mazel tov.
Now, it's time to stop being inept (your Word, not mine) and start learning the right way to do it. First thing we do, is buy Visual Sandee Cohen of Quick Start Guide. It's the best InDesign book market for beginners. http://AMZN.to/plsvxy
Second, check out the video training on Lynda.com. This link will get you a free one week trial: http://bit.ly/fcGpiI
Bob
-
Need help with this find/replace Script.
Hi I got this script from Loic.Aigon. And I got it works for find/replace simple changes however I Cannon operate for several changes.
function cb5CallBack(target) { var findProps, changeProps; findProps = {findWhat:"Distributed by ",} changeProps = { changeTo:"Distributed by. ",} findProps = {findWhat:"Distribué par ",} changeProps = { changeTo:"Distribué par. ",} findProps = {findWhat:"Distribuido por ",} changeProps = { changeTo:"Distribuido por. ",}, RTXT(target, findProps, changeProps); }
function RTXT(target, findProps, changeProps) { app.findChangeTextOptions.caseSensitive = true; app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing; app.findTextPreferences.properties = findProps; app.changeTextPreferences.properties = changeProps; app.changeTextPreferences.properties = changeProps; target.changeText(); }
You must call the function RTXT repeatedly as well:
var findProps, changeProps;
findProps = { findWhat:"Distributed by "};
changeProps = { changeTo:"Distributed by. "};
RTXT(target, findProps, changeProps);
findProps = { findWhat:"Distribué par "};
changeProps = { changeTo:"Distribué par. "};
RTXT(target, findProps, changeProps);
findProps = { findWhat:"Distribuido por "};
changeProps = { changeTo:"Distribuido por. "};
RTXT(target, findProps, changeProps);
-
Need help with custom script to rename the layers
Hello world.
I need help to write a custom script (because I suck at it) that will allow me to go through all the layers and sous-calques for a specific name ('X') and give it a new specific name ('Y').
I have had success using the script below, but it does not work on any text layers names where the text layer was previously particularly well-known in 'X' and now changed needs.
Any help is greatly appreciated.
* Note: this script was originally used to find any layer with 'Copy' in its name and remove with anything after (to correct the problem of duplication of layers by adding this text).
This is why the function is named removeCopy. It works for renaming layers also - just not a layer of text unfortunately.
#target illustrator function removeCopy() {} If (app.documents.length == 0) return; var app.activeDocument = docRef; recurseLayers (docRef.layers); } removeCopy(); function recurseLayers (objArray) {} for (var i = 0; i < objArray.length; i ++) {} ObjArr [i] .name = ObjArr [i].name.replace (/ \s*current name\s*\d*/, 'new name'); If (objArray [i] .layers) recurseLayers (. layers.length > 0 ObjArr [i]); } } I finally found something after searching forums for a week. My confusion was related to the way Illustrator treats real layers against text/path/object "layers." Instead of layers, I had to use the pageItems in the script. The code below works. Thanks to Gustavo for his answer in another thread and Carlos I thank you for this looking too good! You're great to be ready to help models do more advanced things with Illustrator.
var doc = app.activeDocument; var items = doc.pageItems; for (var g = 0; g) elements [g] .name = elements [g].name.replace ('Century Schoolbook text line', ' MonogramText: Century Schoolbook "); }; App.Redraw (); -
Need help with a script (o - o8) *, see the Virgin if there is no
Hi all what I need help with a script I can't find an example.
I'm trying to subtract 2 numbers and then multiply this product. (o o8) * one but I just want to do the calculations if all fields have the numbers IE field o, o8 of field and field one.
Thank you in advance. I was stuck on this days searching the Internet.
Assuming you want to affect the outcome of this calculation in another text field, use this code as a custom field calculation script:
var o = this.getField("o").valueAsString; var o8 = this.getField("o8").valueAsString; var a = this.getField("a").valueAsString; if (o!="" && o8!="" && a!="") event.value = (Number(o)-Number(o8))*Number(a); else event.value = "";
-
Need help with some cluster power shell scripts
Guys,
I need help with 2 scripts.
Text 1.
I need a power shell script that will get all the virtual machine in a specific cluster. Virtual machine names as well as the number of processors, output allocated RAM and size of CSV file.
Text 2.
I need a script that will get all data warehouses in a specific cluster and store name data as well as the amounf of free space for a CSV output.
Thanks in advance guys.
Greetings, @peter79 -.
For the first part:
Get-Cluster myClusterName | Get-VM | Select-Object Name, MemoryMB, NumCpu | Export-Csv -NoTypeInformation c:\temp\myVMInfo.csv
And for the second, how about:
Get-Cluster myClusterName | Get-VMHost | Get-Random | Get-Datastore | Select-Object name, FreeSpaceMB, CapacityMB | Export-Csv -NoTypeInformation c:\temp\myDaterstoreInfo.csv
The first would be quite a bit faster by using Get - view instead of Get - VM. It would be like:
## get an array of VM View objects with just the desired/needed properties $arrVMViews = Get-View -ViewType VirtualMachine -SearchRoot (Get-Cluster myClusterName).MoRef -Property Config.Hardware,Name ## make the two filters for displaying the desired info $hshCPUCountFilter = @{n="NumCPUs"; e={$_.Config.Hardware.NumCPU}} $hshMemAmtFilter = @{n="MemoryMB"; e={$_.Config.Hardware.MemoryMB}} ## display the info, and export to CSV $arrVMViews | Select-Object name, $hshCPUCountFilter, $hshMemAmtFilter | Export-Csv -NoTypeInformation c:\temp\myVMInfo.csv
Enjoy.
-
Need help with Flash - really basic!
Hi, I really need help with Flash and quick. I have to create an auto-run cd, but before I can create that, I have to make everything works! I took a class in College Flash, which up to 1 1/2 ago so im kind of knowledge missing!
My first problem is as follows:
I have the homepage, and it contains a button English and french.
When you click on buttons, it brings you to the next page, either resourcesFr or resourcesEn.
I tried to use the loadMovie script but and it works but the new page loads on the home page you can still see the English/french under buttons. How can I fix? I know its simple but I am short on time... Should I still use the loadMovie script?
My other problem is that im trying to have another button to link to a folder. Use the script for getURL for this as well?
Help!I was able to solve my problem... it was only the forward slash that were in the wrong way... so the correct code is:
on (release) {}
DRV = _url.substr (8.1);
getURL (drv + ": / English/brochures");
}Only took me 5 days... I think I need to buy a script book action! Laughing out loud
-
Need help with slui message with the Validation Code: 50
OT: need help with the message 'victim' slui...
Diagnostic report (1.9.0027.0):
-----------------------------------------
Validation of Windows data-->Validation code: 50
Code of Validation caching online: 0xc004c4a2
Windows product key: *-* - YMK9F - 7Q3XK-X7D3P
Windows product key hash: 9WDJkbD1PdUJ + GCdK63bG2yus5g =
Windows product ID: 00371-702-8613485-06367
Windows product ID type: 5
Windows license type: retail
The Windows OS version: 6.1.7601.2.00010100.1.0.048
ID: {60986DD4-5ADA-464C-A590-469385BD5D3A} (1)
Admin: Yes
TestCab: 0x0
LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
Signed by: n/a, hr = 0 x 80070002
Product name: Windows 7 Professional
Architecture: 0 x 00000009
Build lab: 7601.win7sp1_gdr.150928 - 1507
TTS error:
Validation of diagnosis:
Resolution state: n/aGiven Vista WgaER-->
ThreatID (s): n/a, hr = 0 x 80070002
Version: N/a, hr = 0 x 80070002Windows XP Notifications data-->
Cached result: n/a, hr = 0 x 80070002
File: No.
Version: N/a, hr = 0 x 80070002
WgaTray.exe signed by: n/a, hr = 0 x 80070002
WgaLogon.dll signed by: n/a, hr = 0 x 80070002OGA Notifications data-->
Cached result: n/a, hr = 0 x 80070002
Version: N/a, hr = 0 x 80070002
OGAExec.exe signed by: n/a, hr = 0 x 80070002
OGAAddin.dll signed by: n/a, hr = 0 x 80070002OGA data-->
Office status: 109 n/a
OGA Version: N/a, 0 x 80070002
Signed by: n/a, hr = 0 x 80070002
Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3Data browser-->
Proxy settings: N/A
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
Default browser: C:\Program Files (x 86) \Mozilla Firefox\firefox.exe
Download signed ActiveX controls: fast
Download unsigned ActiveX controls: disabled
Run ActiveX controls and plug-ins: allowed
Initialize and script ActiveX controls not marked as safe: disabled
Allow the Internet Explorer Webbrowser control scripts: disabled
Active scripting: allowed
Recognized ActiveX controls safe for scripting: allowedAnalysis of file data-->
Other data-->
Office details:{60986DD4-5ADA-464C-A590-469385BD5D3A} 1.9.0027.0 6.1.7601.2.00010100.1.0.048 x 64 *-*-*-*-X7D3P 5 S-1-5-21-4040712825-3780279311-4191590923 the system manufacturer ,System Product Name American Megatrends Inc. 00371-702-8613485-06367 0802 20110601000000.000000 + 000F3A53C07018400FE 0409 0409 Central Standard Time(GMT-06:00) 0 3 109 Content Spsys.log: 0 x 80070002
License data-->
The software licensing service version: 6.1.7601.17514Name: Windows 7 Professional edition
Description: operating system Windows - Windows (r) 7, retail channel
Activation ID: c1e88de3-96c4-4563-ad7d-775f65b1e670
ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 00371-00212-702-861348-00-1033-7601.0000-1142014
Installation ID: 022214046070387640229264400212325972472065330163335456
Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
Machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
Partial product key: X7D3P
License status: Notification
Reason for the notification: 0xC004F200 (non-genuine).
Remaining Windows rearm count: 4
Trust time: 12/01/2016 11:28:57Windows Activation Technologies-->
HrOffline: 0x00000000
HrOnline: 0xC004C4A2
Beyond: 0 x 0000000000000000
Event timestamp: 1:11:2016 12:55
ActiveX: Registered, Version: 7.1.7600.16395
The admin service: recorded, Version: 7.1.7600.16395
Output beyond bitmask:--> HWID data
Current HWID of Hash: QAAAAAEAAwABAAEAAQADAAAABwABAAEAln3OI0bUDFRsO24dgCKo58SW2JyUY/1mMckmPrb67HxoDsAKMMl2Vg ==Activation 1.0 data OEM-->
N/AActivation 2.0 data OEM-->
BIOS valid for OA 2.0: Yes, but no SLIC table
Windows marker version: N/A
OEMID and OEMTableID consistent: n/a
BIOS information:
ACPI Table name OEMID value OEMTableID value
APIC1425 APIC 060111
FACP 060111 FACP1425
HPET 060111 OEMHPET
MCFG 060111 OEMMCFG
LASRYVITRAGE OEMB1425 060111
ASPT 060111 PerfTune
OEMOSFR OSFR 060111
SSDT DpgPmm CpuPmHello
Thanks to everyone who responded to my question.
Turns out it would not activate the system properties page.
He did, however, turn on the tool online browser without a
hitch. Yes, problem solved.
Jon
-
Need help with a Hp Papvilion Dv7-1270US, from vista to xp 64
Well, I noticed that a lot of guys are useful here with installing XP on Vista and yes I'm another unhappy Vista user, I am a graphic designer and let me tell you programs and performance is not very good on my laptop HP that I am ready to go back to XP.
I have an extra HD a seagate sata 80 GB of my PS3 that I drag never used, so I'll use it to install XP on my laptop
Its what I need help with drivers, man what a pain. I can install drivers left and right that I know how to do this, but Nlite, manual, unzip its so confusing...
good so I use Nlite to wake my sata drivers and my installation of Windows XP on my HP I would add something in there like {video card driver} {driver Chipset} etc, what should I put in the wake? and once the wake is done and winxp is installed in what order should I start to install stuff, please guys Im confused and need help if someone can point me in the right direction of the dv7-1270 drivers I would appreciate...
If I happen to screw up my 80 GB hard drive, not a big deal, blue screen, can not load, etc etc... can I just put my original 320 GB hard drive and back to Vista the way it was. ??? is it possible, which would ease my mind, thank you for your responses and assistance.
Drivers:
Chipset Intel, (install and reboot before other drivers) here
Intel Matrix Storage Manager here
MS-UAA fo SP2 (required with a reboot before the graphic and Audio driver) here
MS-UAA fo SP3 (required with a reboot before the graphic and Audio driver) here
NVIDIA GeForce 9600GT here
Intel Wireless 5100 here
Bluetooth here
Realtek RTL8168C Family PCI - E Fast Ethernet NIC here
Please check first that link written by Joshua Wood and concentrate on problems that may appear when you install the sound card in it.
IDT High-Definition Audio CODEC Pilot,
1 sp41693, pilot, work reported in XP here view
2 SP39671, driver, jobs reported in XP here or here view
3 sp41698, vista, work reported in here XP driver
High-Definition Audio (HDA) Modem Installer and driver here
.NET framework (required before HP Quick Lunch Buttons) here
HP Quick Launch buttons here
Synaptic Touchpad here S
ENE CIR (infrared receiver) here (your Vista driver)
JMB38X card reader Host Controller Driver here
HP 3D DriveGuard 1.10 has here
If you had for 7 unknown devices (buttons drivers), here
Do a manual installation
Go to Device Manager, right click on the unknown device,
Choose update driver, not to communicate.
Choose the install from a list or a specific location, not search, have-disk,
Navigate to the location of machine.inf.
Do it for the rest of the unknown devices
-
Need help with the ip configuration on/etc/hosts for the installation of 11 GR 2 on linux vmware 6 on win7.
Let me know if you need more info... in fact I have a setting error while installation said
-(/ etc/hosts has no correct entry for the host name)
Host: 192.168.85.100
Win7 ip: 192.168.1.x
Thank you...
(host computer)
Win7 64 bit
(vmware)
Oracle Linux Server 6.3 version
Release of Red Hat Enterprise Linux Server 6.3 (Santiago)
Oracle Linux Server 6.3 version
-(/ etc/hosts has no correct entry for the host name)
Then post your/etc/hosts.
Host: 192.168.85.100
Win7 ip: 192.168.1.x
Why 85? have you tried 192.168.1.100?
Maybe you are looking for
-
Hello I work with a user who got the kernel panic and I was able to get a report, but I do not know how to read. If someone could help it would be greatly appreciated. Anonymous UUID: 28CFE41F-7DE5-BC34-9676-848714F1E4A8 Wed Apr 6 10:53:50 2016 Pani
-
Satellite L450D PSLY5E freeze during the BIOS update - now does not turn on
Hi guys,. I have a Satellite L450D. I recently tried (unfortunately) update the BIOS after a clean installation, because the FN key no longer working to bring up the toolbar. Winphlash program froze near the end and the system remained frozen for a g
-
Satellite 2430-301 uses battery plugged
Hello!Sometimes, when executing programs from CPU, my battery begins to discharge up to zero, while the Toshiba Energy Manager even acknowledges that the laptop is plugged. After leaving the program (game), the doesn´t of the battery starts to charge
-
I've seen a few posts on this topic but does not know if it is a universal problem or random. Was taken with my F5 and really noticed the fan noise today. I switched it off auto during recording who works at first, but later the fan again even while
-
What is SCC.dll because it is to be taken as an infection on laptop by antivirus
What is SCC.dll for him is to be taken as an infection on cell of antivirus programs. Since I've updated my Vista and Office and student that keeps coming back and is taken as an infection. What is this and how do I get around it?