Need a script for wise vm file used and put into service space
Hello
In my env of customer, we have several file type of request. In each case, we have several virtual machines, including cluster virtual machines.
We need space total get used and implemented for each folder.
Thus the requirement is cluster disk must be calculated only once. Please help me with this...
-one
I think a filter to get, maybe all the VM which appear as an RDM or shared vmdk and filter those out of the collection of Get - VM.
Then add those together separately, combining the resemblance of the name of file maybe? If you can run this Script of RDM, then I can see what the data might look like to adjust. I have no RDM to play with on my end, unfortunately, all NFS these days.
$report = @)
$vms = get - VM | Name - descending sort. Get-View
foreach ($vm to $vms)
{
foreach ($dev in $vm. Config.Hardware.Device)
{
If (($dev.)) GetType()). (Name - eq "VirtualDisk")
{
If (($dev.Backing.CompatibilityMode-eq "physicalMode") - or ($dev.Backing.CompatibilityMode - eq 'virtualMode'))
{
$row = "" | Select VMName, HDDeviceName, HDFileName, HDMode, HDSize
$row. VMName = $vm. Name
$row. HDDeviceName = $dev. Backing.DeviceName
$row. HDFileName = $dev. Backing.FileName
$row. HDMode = $dev.Backing.CompatibilityMode
$row. HDSize = [math]: Round ((($ dev.)) CapacityInKB) / 1048576), 2)
$report += $row
}
}
}
}
Tags: VMware
Similar Questions
-
Script for VM HDD type, use and freespace
Hi all
I was looking for a script that can give StorageType of VM (thick or thin), the use, the space (in GB)
I received the below command where I can get storagetype, ability, but I also have need of used and free space of the virtual machine...
Get - vm | Get-hard drive | Select-Object - name, StorageFormat, CapacityGB, Parent of the property
Thanks in advance a ton.
Finally,.
I can manage to get 2 scripts to get VM with details thin or thick and another for VM disk space.
For thin VM for thick details
Get - VM | ForEach {Get-disk hard - VM $_______ |} Select-Object - Property Parent, name, StorageFormat, CapacityGB, @{N = 'OS Total free space GB of all partitions'; E = {[math]: tour ((Get-VMGuest $vm |))} ForEach-Object {($_.)} Records)} | Measure-Object-FreeSpaceGB property-sum). Sum)}}} | convertTo-html | out-file C:\Users\USERA\Desktop\VMThin&Thick.htm
(the exit for above the script given will be in html format)
For VM disk space
ForEach ($VM in Get - VM) {($VM.)} Extensiondata.Guest.Disk | Select @{N = "Name"; E = {$VM. Name}}, DiskPath, @{N = "Capacity (GB)"; "} E = {[math]: tour ($_.)} (Capacité/1Go)}}, @{N = "Free Space (GB)"; E = {[math]: tour ($_.)} (FreeSpace/1Go)}}, @{N = "free space"; E = {[math]: Round (((100 * ($_.)))} FreeSpace)) / ($_.) Capacity)), 0)}})}
NOTE: to get the output of disk space on the computer virtual format html below given running lines. (copy above the lines given in a txt file and save it as FreeSpace.ps1 (name what ever you can give) and run the below lines in powercli.)
FreeSpace.ps1 | ConvertTo-Html | Set-Content C:\Users\USERA\Desktop\FreeSpace.htm
LucD thanks for your help
-
Need a script for resizing images of Portrait and landscape without having to first sort
OK I downloaded this great script: Image Processor Pro to create multiple batches in a single shot.
http://blogs.Adobe.com/jkost/2015/06/image-processor-Pro-for-Photoshop-CC-2015.html
It's great, but I still have to run a tiny drop to resize the files exactly 374 x 498 and 276 x 385, after I cut them it will be "worthy", but this was not accurate.
Here is my method:
I have original TIFF that I have edited, original images is usually square. (sometimes they are not, and I wish I had a solution for that as well, but one thing at a time)
Since these TIFF I execute the script to save to 4 different folders:
Resize to 2000 x 2000 and rename to add sizing file name
Resize to 500 x 500 and rename to add sizing file name
Trim & resize to 374 x 498 and rename to add sizing file name
Trim & resize to 276 x 385 and rename to add sizing file name
Here's what it looks like:
Here's what it looks like once I launch my image processor:
and here is an example of the files in the folder XS with dimensions:
Which is great! But now I have to go to sort my pictures SM and XS of landscape & Portrait and THEN run another drop on them to get them to fit exactly 374 x 498 and 276 x 385.
SO please tell me there is a better way! I'm almost there!
If the version of Photoshop supports done condition and the condition is a conditional action as you can get without learing scripting. The problem, actions must be in the same action game and the game cannot be renamed. Here action must be used after Image processor makes pro then the image resizing made tho conditional actions can add the canvas so that the document of the exact size.
-
Need a script for marginal elements consists of two tags
Hello world
I need a script for the marginal elements with two paragraph tags. Object styles, library items are all available for this work. My requirement is to cut two paragraph tags and put it in the library and also using styles of both object elements. Is this possible? Can help you to do this. For more information, I have attached this file also.
Waiting for your answer...
Hi try this code...
main();
main() {} function
If {(app.documents.length!=0)}
{if(App.Libraries.Length!=0)}
myStyleDialog();
}
else {}
Alert ("Please open library.");
}
}
else {}
Alert ("Please open a document and try again.');
Exit (0);
}
}function myStyleDialog() {}
var myLabelWidth = 120;
var myParaStyleNames = myGetParagraphStyleNames();
var myObjStyleNames = myGetObjectStyleNames();
myDialog = app.dialogs.add var ({name: "Choose the Styles instead of anchoring"});
{with (MyDialog.dialogColumns.Add ())}
{with (borderPanels.Add ())}
{with (dialogColumns.Add ())}
{with (dialogRows.Add ())}
{with (dialogColumns.Add ())}
staticTexts.add ({staticLabel: "choose paragraph Style1:", minWidth:myLabelWidth});})
}
{with (dialogColumns.Add ())}
myParaStyleDropdown1 = dropdowns.add ({stringList:myParaStyleNames, selectedIndex:0});})
}
}
//---------
{with (dialogRows.Add ())}
{with (dialogColumns.Add ())}
staticTexts.add ({staticLabel: "choose paragraph Style2:", minWidth:myLabelWidth});})
}
{with (dialogColumns.Add ())}
myParaStyleDropdown2 = dropdowns.add ({stringList:myParaStyleNames, selectedIndex:0});})
}
}
//----------
~ {with (dialogRows.add ())}
~ {with (dialogColumns.add ())}
~ staticTexts.add ({staticLabel: "Object Styles:", minWidth:myLabelWidth});})
//~ }
~ {with (dialogColumns.add ())}
~ myObjectStyleDropdown = dropdowns.add ({stringList:myObjStyleNames, selectedIndex:0});})
//~ }
//~ }
}
}
myReturn = myDialog.show ();
if(myReturn == true) {}
myParagraphStyle1 = myParaStyleNames [myParaStyleDropdown1.selectedIndex];
myParagraphStyle2 = myParaStyleNames [myParaStyleDropdown2.selectedIndex];
myObjectStyle = myObjStyleNames [myObjectStyleDropdown.selectedIndex];
myDialog.destroy ();
}
else {}
myDialog.destroy ();
}
}
}
function myGetParagraphStyleNames() {}
var myStyleNames = app.documents.item (0).paragraphStyles.everyItem () .name;
Return myStyleNames;
}
~ function myGetObjectStyleNames() {}
~ var myObjStyleNames = app.documents.item (0).objectStyles.everyItem () .name;
~ return myObjStyleNames;
//~ }//----------------------------------------------
myDoc var = app.activeDocument;
var myDoc.stories = monarticle;
var myParas, myCount = 0;
myLib var = app.libraries [0];
var AnchorItemName = prompt ("Enter the name of library point exactly", "", "anchor point");for (i = 0; i
{
myParas = .paragraphs [i] monarticle;
If (myParas.length > 3)
{
for (j = 0; j
{
firstPara var = myParas [j];
var nextPara = myParas [j + 1];
var firstParaStyle = firstPara.appliedParagraphStyle.name;
var nextParaStyle = nextPara.appliedParagraphStyle.name;
If ((nextParaStyle == myParagraphStyle2) &&(firstParaStyle == myParagraphStyle1))
{
myText = myLib.assets.item (AnchorItemName) .placeAsset (firstPara.insertionPoints [0]) [0];
firstPara.move (LocationOptions.after, myText.insertionPoints [0]);
nextPara.move (LocationOptions.after, myText.insertionPoints [-1]);
myText.fit (FitOptions.frameToContent);
myCount ++;
} //End If
} //End of iteration Para
} //End of If paralength > 2
} //End of iteration history
Alert ("Found and dealt with Occurrences" + myCount);--------------
Green4ever
-
Coloration of the code for the PHP files using CSS
Coloration of the code for the PHP files using CSS
The Situation:
It is possible to mix PHP and CSS so that you create a PHP file and it is served to the user in a CSS file. It works just like writing a normal PHP file which is then processed and used in HTML. To do this, you create a PHP file and at the top of the file, you add the following line of code:
<?php header("Content-type: text/css"); ?>
This line tells the browser that the file is CSS instead of HTML. Fantastic.
Here is a link to a more detailed article on the subject: http://www.barelyfitz.com/projects/csscolor/
The problem:
The problem is that when I create a PHP file in Dreamweaver code colors in the document like PHP for PHP and HTML to CSS code code because it still thinks the document is supposed to be a HTML document. Is there a way to change the style of this situation? I find that code coloring to normal CSS files is really useful and would like to be there instead of just black text.
Other information:
I already have this submitted a feature request to Adobe, but I never heard back. Does anyone know how to do this now?
I would really like to see the code coloring to adapt to the content type of the file, when the file is PHP. So if no content type is specified, values by default in html format, but when it's CSS, code coloring so a coloration of the different code is used. It could also adapt to files JS, XML files, the works. But really, I just want to add the PHP/CSS code coloring.
I'm certainly not an expert, and this is my first time looking at the file,
but it looks like the section.
"ID ="CSS"doctypes ="CSS"priority '50' = > ' see the style css and
the
and refer to where the design must be applied. If that is correct then the code you provided should style
It all starts after the
and ending with another php code? It should be then that a
tag additional php to be present in the document of 'close' the
blowdry.
And the continuation of this line of thinking, I have just that in the (php-> css)
file. I placed my code. Then
After the CSS, I placed another block of php: and it works!
The CSS is styling just like should the CSS.
Logically, you need that, and it seems to work ok for me without it. If Yes, you can change "" to be more explicit and less impact for PHP parsing, such as ' /DW/ '.
Haha, Unfortunantely, PHP is more the same color scheme. He
went from normal red blends what the html code looks like
scheme (blue with quotations from green text). Fortunantely this configuration is far
more convenient than the previous color coding!
All subsequent PHP Directives are coloring properly for me - it's just the first one that triggers the coloration (e.g. ) is not. What do you see?
If, therefore, in the XML file you added in CodeColoring.xml, you can change:
scheme = "outerTag.
is similar to the colouring of the PHP Directive:
scheme = "customText" id = "CodeColor_PHPScriptBlock".
This causes the entire PHP directive is red color - not optimal, but a little better.
HTH,
Randy
-
I am trying to disable windows live mail, but I need windows live for my xbox, I use outlook express but now WLM keeps poping up. IWant outlook express with yahoo on windows xp email. What can I do?
Try going to tools | Options in OE and set it as default value for it. Also in Internet Explorer go to tools | Internet Options | Programs and set as default OE it as well, or click the reset web settings button, if it is present.
Steve
-
"Can not open AsIO.sys (2)" I get this message when I log in after a reboot. I have search for the file, but can't find it with the research or the command prompt. What do do in this file, and can be created and put into the appropriate folder?
Hi Jack,
This driver belongs to AsIO.sys Asus Probe. Try to uninstall Asus Probe and if you need, install again. If this does not help, uninstall Asus Probe and other tools of control such as Speedfan. Open the registry (regedit.exe) editor and search for AsIO.sys and remove all the entries that you can find.
André
"A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/ -
I have a laptop with a single monitor.
I need remote desktop for my computer at home and be able to see two screens on my computer at home.
How do I do that?
Original title: dual monitor question
If you look at 'Options' remote desktop and look at the "View" tab there is a checkbox for "use all of my monitors for the remote session. You may need to be an administrator to set this option.
Check out these similar posts too.
-
How to upgrade the form for organizations put into service?
Hello
I have a similar problem, as indicated here
But I need to update the form for organizations. I added 3 custom to your UD_ADOU attributes and this form is visible to the new accounts set up. Old accounts ORG provisioned see attributes form the only version 0.
So I tried to use FVC utility to update these accounts of Organization put into service, but it does not work.
Here are my properties file:
$ cat fvc.properties
ResourceObject; OU AD
FormName; UD_ADOU
FromVersion; 0
/ToVersion; AdOUForm02
Parent; UD_ADOU_DEPARTMENTCODE; N/A
Parent; UD_ADOU_ORGUNITTYPE; Department
Parent; UD_ADOU_MANAGER; '' cn = manager01, ou = users, dc = adroot, dc = local"
I think it works for the only user accounts (see doc: http://docs.oracle.com/cd/E27559_01/admin.1112/e27149/formver.htm#CCHCBDBJ )
My question is, who can update a form for organizations put into service? Is it possible to update the configured accounts of organizations by FVC utility? If so, how?
Thank you
Milan
OK I found the solution and I found a bug in the IOM probably.
The main tables are SDK and UD_ADOU;
The SDK table contains information about the last active version of the form... org
The UD_ADOU table contains all the forms (supplied) and their version of the form that uses the account provisioned.
So I used the following SQL command to update the version of IOM 11.1.2.1 forms:
Update UD_ADOU set UD_ADOU_VERSION =
(select SDK_ACTIVE_VERSION in the SDK where SDK_NAME = 'UD_ADOU');
commit;
In IOM 11.1.2.2.x I started the work of the "upgrade" form, but as I said, after this i see new attributes in the form of commissioning Org, but when I change the data, these data are not configured for the announcement.
Then I checked the SDK and UD_ADOU tables and I found in the SDK table active the last version of the East ADOU 1. BUT! in the UD_ADOU table, all records have UD_ADOU_VERSION = 7! (Value 7 is the number of the line of the record with the SDK_NAME = "UD_ADOU"). Is this a bug?
I changed all these archives to the value 1.
Update UD_ADOU set UD_ADOU_VERSION = 1;
commit;
And now, also commissioning works well in IOM 11.1.2.2.x
Milan
-
Need a script for InDesing culture pdf files
Hello
I have over 200 pages pdf file. I need to place pages in InDesign, jump the 4 sides about 20mm in InDesign. I did place using the script. I need to crop all pages, including at - it a script for the same... ?
Thanks in advance.
Hello
You can try with the code below:
var myDoc = app.activeDocument; var myGraphics = myDoc.allGraphics; for (var a = 0; a
But make sure that your rule should be in mm.
This is Zanelli script to put pdf in Indesign.
Shonky
-
Need a script to decompress the files
Hello friends, I am using old windows Server 2003 and I need to decompress x number of files zipped. I want to also include 'replace' option if the file already exists.
Please help with script
This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)* -
Script for "fill with pattern" - "use a last used.
Hello guys, I need a bit of help to automate my work.
I work with patterns (such as a Model Designer), but I need to automate my work a little.
There's this great function now 'fill with... model' and then you have scripts for those.
That said what I usually do, it of that I'm working on a few models, proceed to the design then their test on a file empty large format.
so
1. I do my drawing, then
2. click on "set as a new ground" then
3. I opened a new charge fbig large file and
4. use "fill... with reason" and
5. Select the last one, I created...
Then I tried to create an action / script so I can you know, batch job, having to decide which of the grounds are good on large format later.
AND HERE IS THE BUG!
When I added exactly the same steps in the macro in action - it will work for the first file, but for the second, it will always use the same model used previously, as stocks macro sees it as "fill with pattern XXX" (i.e., not as "last used"), so I land upward with all the photos in large format filled with the same model instead of different.
I thought then modify the macro so when I g oto step 4
4. use "fill... with reason" and
Add "use script" among loading scripts, which would have set something like 'use the last defined pattern' - can be both a code like "use the newer model defined" or "new model added to the batch.
I understand the logic, but I have no idea how to do to modify the scripts in this area.
This will save me hours of work, for all your help will be most appreciated.
Here is a link for the jsx file...
-
Good morning friends,
So for my work, I need a script to open files with the same name but located in a different folder. But since I'm a total noob when it comes to programming, I can't understand how do. That's what I have in mind:
-J' I manually open an image.
-The script will look for a file with the same name in another folder that I've specified.
-The script will then select the channel CMYK of the second file and copy and paste it into the first file.
-The second file is then closed without saving the changes.
I have problems with the part where the script searches for a file with the same name as the opened file. I would really appreciate help. Thanks in advance.
If (app.documents.length > 0) {}
myDocument var = app.activeDocument;
var Nomdoc = myDocument.name;
try {var basename = docName.match (/(.*)-.)} [ ^\.] +$/)[1]}
catch (e) {var basename = thedoc.name};
var path = / * path of folder to insert as a string here * / + ' / ' + base name + / * insert file extension, including the period as a string here * /;
If (queue (path) .exists == true) {var otherDocument = app.open (File (path))};
};
-
I need a script code that reflect each layer in a prayer group!
Currently the command use the pivot point for the transformation on the right side of the Center, you can change this line:
bcm_mirrorAllCH (getSelectedLayersIdx (), "CR", "Horizontal");
with this:
bcm_mirrorAllCH (getSelectedLayersIdx (), "CC", "Horizontal");
-
How to get a list of paths for all the files used in a project
I have a CC Pro first project that has a large number of bins. A sequence in one of these bins uses files of the other tanks. I'll try to find the locations of all of the files used in the project.
(1) obviously I can select each item in the timeline and display in the finder, but there are a lot of clips
(2) the use of the video associated with each file in the project would help. However
1. I have not found a way to display only the clips that have the use of the video if all locations have not been developed.
2. use video shows its use for all sequences, so it should be manually checked traction towards the bottom for each file see if it is used in the sequence in question.
(3) I tried to export the project to the final cut pro xml. The url path gives me the information I need. For some reason, however, when I do the single export item information are here, not the information for all the other elements of the project.
(4) I got tired of export for speedgrade, and all file names are there. However, the railways are not.
Basically, I want to find all the files in the project and transfer them to a specific folder for this project. There must be a way to do this, but I'm not...
You can import the sequence in a new project and then use the project manager to make them all together.
Maybe you are looking for
-
WNR2000v4 continues to change the internal ip address
Hello For some time, I have a strange problem with my WNR2000v4. time to time the Exchange Router ip address internal of himself. The standard/default ip address is 192.168.1.1, but for some reason any change the router to 10.0.0.1. According to the
-
Contacts are invisible after having removed from facebook and twitter
Hello I had a strange problem occur. My phone became increasingly slow so I decided to try to remove the facebook and twitter accounts (following the instructions of another post) to see if that helped. He did. My phone is now faster than ever, but a
-
original title: I get an error code 32768 File \i38\system32\ntkrnlmp.exe could not be loaded. The error code is 32 768. Implementation cannot continue. How can I fix?
-
When I try google search an item all I get is pictures and I'm not directed to web pages
When I try google search an item all I get is pictures and I'm not directed to web pages
-
What do you do when all printers stop working? I reinstalled the printer drivers.