Item and item of inventory

Dear all,

I know this question has been asked several times.

But frankly, impossible to find or maybe I misunderstood the post. Anyway;

Our company needs as follows:

Inventory Super user receives expenditures (stationery items, etc) and deliver them to the departments. It should (just count) the expenditure items that remain. He don't need the value of these objects. Right amount (In and Out).

Financial management on the other hand wants no ledger entry that affect the value of inventory; (which debits the inventory account) he want just account for the costs of this item as the side corresponding to the invoice when creating, receiving and then Dr.

Is it possible by setting the item as item (check the attribute Purchasable and bought) only?

Because the definition of the element by setting the attributes of stocks:

a stock article = YES

b - stock

c transactable

d inventory Asset Value = NO

e - costs enabled = No

increase the value of the inventory? Is this true?

Articles and reading notes such as (how to track an item of expense by quantity (Doc ID 793125.1) has not given a clear answer. )

So, we need a clear answer.

Thanks in advance.

Shareef

Dear Donatien Saha,

Thank you...

It's just to have a clear answer and help many others trying to understand this question.

The answer is:

There's no way to count the expenditure items unless we have defined as item of inventory and this will increase (debit) account of the hardware inventory.

Thanks again.

Shareef

Tags: Oracle Applications

Similar Questions

  • Project related to inventory items

    Whenever a purchase order amounts against a project, the items are purchased as an expense. Received, delivered and expensed out receipt. Incase of surplus items, how to get back return these items in the inventory?

    What is the best way to return these items to the inventory?

    You cannot return items as inventory.

    You should do like inventory item and perform Misc/account aliases

    reception to the stock.

    In addition, you may need to perform manual reviews to adjust the calculation of project costs.

    Monday, April 13, 2015, at 13:14, community-admin

  • List of BOM items and INV

    I need a query to the inventory item Number, inventory item description, inventory point category, the inventory item type and approved supplier(if any), sequence number of transaction for each item in the BOM BOM. to do this, I wrote a query, but I'm getting double point.

    When I join MTL_SYSTEM_ITEMS_B, MTL_ITEM_CATEGORIES and MTL_CATEGORIES_B I get duplicate items.

    any body can help to eliminate duplicates.

    This is my query:
    SELECT THE MC. MODEL SEGMENT1
    MC. SEGMENT3 ITEM_GROUP
    MC. SEGMENT4 ITEM_TYPE
    BCB. OPERATION_SEQ_NUM, OPERATION_NUM
    MSI. SEGMENT1 PART_NUMBER
    MSI. PART_NAME DESCRIPTION
    MSI. INVENTORY_ITEM_ID
    msi.organization_id
    THE BBM BOM_BILL_OF_MATERIALS
    bom_components_b bcb
    MSI MTL_SYSTEM_ITEMS_B
    MTL_ITEM_CATEGORIES MIC
    MC MTL_CATEGORIES_B
    WHERE BBM. BILL_SEQUENCE_ID = BCB. BILL_SEQUENCE_ID
    AND BCB.COMPONENT_ITEM_ID = MSI. INVENTORY_ITEM_ID
    AND BBM.ORGANIZATION_ID = MSI.ORGANIZATION_ID
    AND MSI.ORGANIZATION_ID = MIC.ORGANIZATION_ID
    AND MSI. INVENTORY_ITEM_ID = MIC. INVENTORY_ITEM_ID
    AND THE MICROPHONE. STUFF = MC. STUFF;

    Thanks in advance.

    Concerning
    Ravi

    If you use DISTINCT in the SELECT, you will get NO duplicates.

    SELECT DISTINCT MC.SEGMENT1 MODEL, . . .
    
  • Transfer the items in stock to Oracle capital

    Hello

    I would like to know if it is possible to transfer the active items in the INVENTORY module to the module of Oracle stock.

    If Yes, how can it be done please.

    If you can confirm this basic install point instances have been created and have created and receive an amount of install Base traceable, serialized, depreciable items in inventory, then you would run

    Create assets: the movements of the Interface to tangible capital assets

    http://docs.Oracle.com/CD/B53825_08/current/Acrobat/121invug.zip R12 Guide using the inventory

    Set up groups of service attribute starts on page 6-73, create fixed assets noticed on page 6-76.

    Please mark answers 'Proper' or 'Useful', as appropriate, to facilitate solutions to the other participants of the RTO.

  • What table stores the published/unpublished indicator for items assigned to any section in iStore

    Hi all

    I want to know what table stores the published/unpublished indicator for items assigned to them sections to iStore?

    According to my understanding:

    When any item of inventory is assigned to any section we have given in to this inventory_item_id ibe_dsp_section_items.

    This board just have the start_date/end_date and tell me if the article is published on the site

    There is an another table ibe_dsp_msite_sct_items which shows what minisites element is available.

    This board just have the start_date/end_date and tell me if the article is published on the site

    We can always go to responsibility administrator iStore

    Merchant iStore > > catalog > > Products > > summary

    search for any item and it shows the item was attributed to what all the sections.

    Here, we have a button "change published Flag." This can be used to publish/not to publish articles on all sections.

    I want to know what table is updated when we hit this button.

    Thanks in advance!

    Thank you

    Shashank

    Hi all

    I got the answer.

    This button updates the

    MSI.web_status

    Just thought that answer here in case it helps anyone.

    Thank you

    Shashank

  • Cannot delete vm orphan and inaccessible from the inventory.

    An accident during a svmotion, vm orphans and tried to readd to the inventory, but not luck.  I have since restored the virtual machine from a snapshot of the san and removed all the original files and it is now part of a new folder, but I can't remove 2 items in inventory that I tried from it readd after the initial failure.

    I restarted the server, I rebooted mgmt-vmware and vmware-vmkauthd vpxa. -several times now.

    VMware-cmd - l host does not list any reference to the virtual machine ghost.  Cannot remove vclient

    vitoolkit (powershell) will list the 2 vms,

    get-vm-name vmname -


    product name of the virtual computer object.

    but I can not:

    get-vm-name vmname | remove-vm -does not work because I get this error message... "Remove-VM: 2009-05-11 21:05:02 delete VM a general error has occurred: you must turn off the virtual machine and complete the migration before this operation is called. »

    nothing I've tried annoys me to remove the orphan.

    I worked with vmware on this issue support and ended up coming up with my own 'solution' if it's that a cluster just a fix is quite simple...  I had the same symptoms you had as well...

    1. place the knot in Maint Mode

    2 remove the node from the Cluster

    3 Add the node in the Cluster.

    Presto - fixed.

    Question of fact, here's my thread of origin on this issue. http://communities.VMware.com/thread/203764?TSTART=0

    According to me, the only drawback is that if you have Pools of resources in place it will be those screw up on this node/vm... but is it really wasn't a question/problem for me in my case...

    -

  • My smart-net-total-care portal does not show inventory and Segments see other admins

    My smart-net-total-care portal does not show inventory and Segments see the other admins.

    Our "Managing Director" has installed a collector who submits an inventory of our company on the Smart-Net-Total-Care Portal.

    When I log in to see the information of the collector (https://tools.cisco.com) I do not see the inventory collector, I can only see its "manually downloaded CSV stock."

    I got rights to see the data by this 'Managing Director' and I waited for the weekend for the website reflect this - but my opinion has not updated.

    How can I get the web portal to show all our accounts inventory of the collection?

    npicard,

    Thanks for your help so far.  I am a Director of a company on behalf of Mark.  I have over 7 days, deleted his role (not his association) and then reactivated it after waiting 48 hours.  Mark has been able to see the results of the present.  Once he was able to reconnect that he had the same problems with not being able to select the correct and most recent inventory.

    It's one of the reasons why, in another post I think you are familiar with, I asked Cisco to remove previous inventories to not exactly cause this type of confusion that we are trying to transfer this system to our operations department, whose brand is a key member.  Things do not go well.  Please let me know the status of the present and speed if possible.

  • The inventory records and vApps

    Hello

    Just a question on the inventory in vSphere client modes.

    I'm discovering vApps. As I understand it, they work as containers for multiple virtual machines, but I also use folders to organize my virtual machines.

    The question is how to than my machines both in their dedicated container VAPP according to inventory - host & Clusters and in their usual folder in inventory - VM and templates?

    For example, after you move a virtual machine in a new TIME that I created, this virtual machine also moved from its original folder. So it seems it is not possible to mix the vApps with folders view view? The VAPP organization changes the distribution of records!
    If I am not mistaken, it is not the case with Resource Pools.

    Thanks for any idea.

    vApps in models of inventory and virtual computers are treated as a single entity, moving it's component VM will move its location completely. Is one of the cases of the use of the virtual machine to manage an application at several levels in a single container, in this case I'd be more interested move together multi-tier app, not one of the constituents.

    While Resource Pools are not yet visible in the models and virtual computers inventory VMs who are the child object of resource pools in inventory host and Cluster are free to move through different folders according to inv. models and virtual computers.

    So yes, you are right. You can't wait vApps and resource pools to give a similar behavior in virtual machines and Inv. models view

  • vCenter Linked Mode and Perl SDK

    Hello

    our VMware environment is divided into two physical places represented as two instances of vCenter. The two vCenters are interconnected. I think that its Mode called "related"?

    Is it possible to use the Perl SDK also bound mode? Currently, I have to manually interrogate both our vCenters and then sort out myself.

    (1) How to configure Perl SDK so I only authenticate once against our environment in Linked mode?

    (2) How can I build queries against the API so results will include objects in the two vCenters? That is to say. If I run a ' Vim::find_entity_views (view_type = > 'VirtualMachine') "I want to get all the objects 'VirtualMachine' in the two vCenters I can avoid running two separate queries and then later combining query results? ".

    Thank you!

    Thomas Willert

    It is not a published API method, but there is a way to get the vCenter server list in a group of related modes.  I have an explanation and sample code: http://www.virtuin.com/2012/12/querying-vcenter-linked-mode-with.html

    With respect to authentication, if your vCenter instances use the same permissions (which is recommended), then it's just a matter to authenticate each vCenter.  This is what the native client as well (if you have never installed vCenters with different permissions, you will see the login for each vCenter prompt).

    If you look at the blog post I linked earlier, you self an example of authentication each vCenter as well.  Basically you call Util::connect() two times, once for each of your URL for vCenter.  However, do not delete the global VIM uses the SDK package, or it will default to the last vCenter.  I show in the example script: LinkedModeExample.pl

    With respect to the combination of queries... not so easy.  You need to redesign each vCenter with $vim-> find_entity_views().  Now on a more advanced note, API is powerful enough to make custom inventory queries, you can usually pick up and keep the updates in your objects.

    What I would recommend as a simple approach is two calls to find_entity_views, then push them in a hash or an array.  You'll just want to use the UUID vCenter:

    $vc_uuid is $vim1-> get_service_content()-> {'about'}-> {'instanceUuid'};.

    The instanceUuid has been added in vCenter 4.x and later versions (do not have in the past 2.5 vCenter instances).  Then use this instanceUuid + moref as hash keys.  This is important because the morefs can be duplicated between vCenters.

    So, you can then create a hash:

    My % vm_hash;

    foreach my {$entity (@$vm_views)}

    My $moref = $entity-> {'mo_ref'}-> {'value'}; # will be vm-# for virtual machines

    $vm_hash {$vc_uuid.} "+". $moref} = $entity;

    }

    Then you can quickly research specific VMs and keep separate them between vCenters.

    You'll find it works for simple data queries, but you start to get more items of inventory (say for an inventory report), the relationship becomes more complex and the number of objects grow.  I did work to push these values in a database and files (including by running it on 5 or less than weight and WaitForUpdatesEx), excel, which works well if you have the time to build the DB and the work of database object schemas.  Just use instanceUuid + Moref value as primary key to prevent any moref vCenter cross reuse value.

    The other option is that the vim reference is added to each object, so you can just get the data of each entity:

    foreach my {$vm (@$vm_views)}

    Print "VM:". "." $vm-> {'name'}. "\n";

    Print "InstanceUuid VC:". $vm-> {'vim'}-> {'service_content'}-> {'about'}-> {'instanceUuid'}. "\n";

    Print "ServiceUrl VC:". $vm-> {'vim'}-> {'service_url'}. "\n";

    }

    I have a project that I tinker with in my spare time (which is rare these days) which aims to consolidate multiple vCenters into one database for queries and reports, but I didn't get far enough away from share it (very rude, but works for a subset of data at present, but it is very effective for collecting loose on<5s intervals).="">

    You can also look into VMware Orchestrator.  Orchestrator can connect to multiple vCenters and caches data for access by automation.  According to your WAN performance, he can work a geographic site and make sure that you need (just watch the moref, names of entities and other potential overlap between vCenters) aggregated data.

  • table names the interface and interface modules of oracle programs

    Hi all
    I need urgent and specific information on the names of the tables of the interface and the following oracle R12 modules interface programs, or either ther are custom made. Any specific link by referring to information of desire would be much appreciated.
    In addition, I need a clear and simple definition and the purpose of the tables of the interface and the program interface and what other names are known in the industry.

    Data object, Oracle Module
    Chart of accounts, General Ledger Oracle
    Oracle General Ledger, trial balance

    Main provider, Oracle Payables
    Open invoices from suppliers, Oracle Payables
    Open the provider of credit / debit memos, Oracle Payables
    Open the Advanced provider, Oracle Payables

    Master Bank, Oracle cash management

    Master client, Oracle to receive

    Categories of assets, assets of Oracle
    Master asset, active Oracle

    Master point, Oracle inventory
    Categories of items, inventory of Oracle
    Void / inventory and locators, Oracle inventory
    Point of share sales, Oracle inventory
    Point wise / unit cost, Oracle inventory

    Nomenclature, Oracle discrete manufacturing
    Departments, Oracle discrete manufacturing
    Operations, Oracle discrete manufacturing
    Routings, Oracle discrete manufacturing
    Resources, Oracle discrete manufacturing
    Oracle discrete manufacturing overhead

    Principal of the employee, trust hierarchy
    Trust hierarchy, trust hierarchy

    Open customer invoices, claims Oracle
    Open the customer credit / debit memos, Oracle receivables
    Open customer advances, Oracle receivables

    Pending purchase orders, purchase of the Oracle
    Pending purchase orders, purchase of the Oracle

    Open sales orders, Oracle order management
    Price list, Oracle order management

    Salvation;

    His metalink note you need connection with valid CSI number metalink (support ID customer) can notice via using the note number.

    Please see:

    Oracle EBS based tables and Interface
    Oracle EBS based tables and Interface

    Respect of
    HELIOS

  • Problem reading and event registration

    I made a request of CEP to record and events in reading with the following components:
    1. inlet adapter:

    Assembly entry
    < wlevs: adapt id = "csvgenAdapter" provider = "csvgen" >
    < wlevs:listener ref = 'channel' / >
    < wlevs:instance - name of the property = 'port' value = "9013" / >
    < wlevs:instance - name of property = "eventTypeName' value ="EmployeeEvent"/ >
    < wlevs:instance - property name = "eventPropertyNames" value = "name, age, place of birth" / >
    < / wlevs: adjust >

    config entry
    <>adapter
    < name > csvgenAdapter < / name >
    < record-settings >
    < the dataset name > recplay_sample < / dataset-name >
    < list type event >
    SimpleEvent <-event type > < / type of event >
    < / list-type-event >
    < provider name > - test-RDBMS-provider < / provider-name >
    > size of lots < 1 < / batch size >
    < batch time out > 10 < / batch time out >
    < / record-settings >
    < / adapter >
    2. a channel:

    Assembly entry
    < wlevs: channel id = 'string' - type event 'EmployeeEvent' = >

    config entry
    channel < name > < / name >
    < reading settings >
    < the dataset name > recplay_sample < / dataset-name >
    < list type event >
    SimpleEvent <-event type > < / type of event >
    < / list-type-event >
    < provider name > - test-RDBMS-provider < / provider-name >
    < / reading-settings >
    < / channel >

    3. an eventbean
    4. an adpater pub.
    config entry
    < http-pub-sub-adapter >
    adapter < name > < / name >

    < path-context-Server > / pubsub < / server-context-path >
    < channel > / channel 1 < / channel >
    wlevs < user > < / user >
    password <>wlevs < / password >

    < / http-pub-sub-adapter >

    Config.xml file server entry:

    > data source <
    < name > DataSource_test < / name >
    < connection-pool-params >
    > capacity initial < 1 < / capacity >
    > capacity max 10 < < / capacity max >
    < / connection-pool-params >
    < driver-params >
    < url > JDBC: thin: pallavi / [email protected]:1521:XE < / url >
    < driver name > - oracle.jdbc.driver.OracleDriver < / driver name >
    Properties of <>
    < item >
    < name > inventory < / name >
    < value > XE < / value >
    < / item >
    < item >
    < name > create < / name >
    < value > true < / value >
    < / item >
    < / properties >
    < / pilot-params >

    < / data source >
    < RDBMS-store-event provider >
    < name > test-RDBMS-provider < / name >
    DataSource_test < data-source-name > < / data-source-name >
    < / RDBMS-event-store-provider >

    But while deploying the application we get error like:


    < the context of the "eventBean" application could not be started: org.springframework.beans.factory.BeanCreationException: error creating bean with name 'csvgenAdapter': cannot resolve the reference to bean 'channel' when setting bean property "listeners" with the [0] key. nested exception is org.springframework.beans.factory.BeanCreationException: error creating bean with name 'channel': calling the init method failed; nested exception is java.lang.RuntimeException: invalid event type SimpleEvent
    org.springframework.beans.factory.BeanCreationException: error creating bean with name 'csvgenAdapter': cannot resolve the reference to bean 'channel' when setting bean property "listeners" with the [0] key. nested exception is org.springframework.beans.factory.BeanCreationException: error creating bean with name 'channel': calling the init method failed; nested exception is java.lang.RuntimeException: invalid event type SimpleEvent

    Published by: 856272 on August 18, 2011 07:44

    Is this pubsub adapter an adapter http-pub? Then you need your event beans implement StreamSource. Here is an example of code for this:

    / public class SimpleEventBean implements StreamSink, StreamSource {}
    private StreamSender sender;

    {} public void setEventSender (s StreamSender)
    sender s =
    }

    public void onInsertEvent (Object e) {}
    If (sender! = null) {}
    sender.sendInsertEvent (e)
    }

    }

    }

    In addition, you must define the event as bean rather than . and add the adapter http-pub as it is listener.

    Published by: Junger He August 19, 2011 12:27 AM

  • How to use SQL above and PARTITION BY in OBIEE expression builder?

    Hello
    I want to create a new logical column with the following SQL query.

    AMOUNT (inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C,Inventory Detail.D,MyDATE) /SUM (Inventory Detail.Qty) ON (PARTITION OF the inventory Detail.A Inventory Detail.B, Item.C)

    How to use OVER and the SCORE OF OBIEE expression builder?

    Thanks in advance

    Hi Janet,.
    We cannot use by in the Expression builder (DB). But use the same formula like this in Fx to response

    AMOUNT (inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C,Inventory Detail.D,MyDATE) /SUM (Inventory Detail.Qty) > (PARTITION OF the inventory Detail.A Inventory Detail.B, Item.C)

    Sum (Inventory Detail.Qty by detail, Item, MyDate) /SUM (qty by detail, item)

    First check the numerator if it worked well or not then go with denominator

    compare the results with sql you have

    Let me know if it works

    Thank you
    saichand.v

    Published by: André Varanasi on 27 July 2010 21:27

    Published by: André Varanasi on 27 July 2010 21:28

  • What is Belarc Advisor and how to get it and use it?

    What is Belarc Advisor and how to get it and use it?

    Don't try real hard to figure that one out yourself, huh? Heh

    http://www.Google.com/search?q=what+is+Belarc+Advisor

    Search example:

    The best place, probably, for more information about the application/utility is probably:
    http://www.Belarc.com/free_download.html

    More directly:

    The Belarc Advisor generates a detailed profile of your installed software and hardware, network inventory, missing of patches Microsoft anti-virus status, safety criteria and displays the results in your Web browser. All of your PC profile information is kept private on your PC and is not sent to any web server.

    • Operating systems: runs on Windows 7, 2008 R2, Vista, 2008, 2003, XP, 2000, NT 4, Me, 98 and 95. 32-bit and 64-bit Windows are supported.
    • Browsers: works on Internet Explorer, Firefox, Safari, Opera and many others.
    • File size: 3062 KB.
    • License: the license associated with this product allows for free personal use. Use on multiple computers in a business, educational, military or Government facility is prohibited. See the license agreement for more details.


    DOWNLOAD TIPS:

    • Click the click here to download .
    • Click run in the file download of Internet Explorer pop up.
    • Belarc Advisor automatically install, build a profile of your hardware and software and display in your Web browser.
  • How to set up HOME and iDRAC6/7

    We have a Poweredge T310 and T320. The T310 has iDRAC6 Enterprise. The Express iDRAC7 T320. I installed Open Essesntials manage on the T320 and created an inventory. He finds all the equipment in the network, but I can't find the iDRAC.

    Now, I've been messing around with the settings of the iDRAC, so it is possible very well I missed for OME. Read the manual of OME and iDRAC, but I can't find information on how to configure OME and iDRAC for them to interact.

    Is there a faq/paper/wiki explaining how to configure things is usable?

    Simon

    Hello Simon

    To use SNMP to discover the iDRAC. IDRAC expected default SNMP enabled with a public community name. Enable SNMP to OME and make sure that the community appoints match and you should be good to go. Here is a white paper:

    http://en.community.Dell.com/TechCenter/Extras/m/white_papers/20061803.aspx

    Thank you

  • Assistance with the creation of the VM for the automation of laboratory and criticism

    Being a novice at scripting powershellCLI from scratch, I managed to put together a script to automate the creation of virtual machines for my ESXi5.1 training laboratory. Some of my orders have been adapted from Luc - D blog. Many thanks for your great blog.

    I have a list of virtual computers that have different OS, memory, CPU, disk, NetworkPort, ISOPath, FloppyDrive etc.


    Here's the routine I created to go after using the help of VMware PowerCLI and the reference and examples of the VMware community. I would like to help to be able to optimize the code to speed up the processing, because it does not have enough in the process, I tried to use the | Out-Null but it does not seem to turn off the output. I also wanted to know how read a CSV file parameters and phase of each virtual machine created by feeding one after the other time it has been fully configured, as remotely via VMTools looking for the existence of a file or setting on a virtual machine before the next VM is created in order--something like a configuration of vAPP. I tried the CSV file, but only managed to partially run my script is included below:
    Finally, when it's time to clean up a script to check if the virtual machine is turned on then turn off and delete the inventory and drive of the virtual computer. (I think I could manage removing relatively easily). Hope my request is not a big ask.

    Thanks in advance.


    # Connect to vSphere Host with root

    $date = get-Date

    $ESXhost = Read-Host "enter the host ESX or IP name.

    $username = Read-Host "Username".

    $password = Read-Host "Password."

    SE connect-VIServer-Server $ESXhost - User $username - Password $password


    # Create DC

    $VMname = "Lab_DC".

    New-VM - VMHost $ESXhost - CD - name $VMname - MemoryMB 512 - NumCPU 1 - Version v9 - ID windows7Server64Guest-Floppy - Datastore LUN1-DiskGB 15 - DiskStorageFormat thin - Notes '$VMname AutoDeployed on $date.

    Get - VM $VMname | Get-CDDrive. Game-CDDrive - ISOPath "[Host3] VM/Lab_Local\WIN2K8R2SP1_CUST.» "ISO" - StartConnected $true - confirm: $false

    $DelayValue = "5000".

    $vm = get - VM $VMname | Get-View

    $vmConfigSpec = new-Object VMware.Vim.VirtualMachineConfigSpec

    $vmConfigSpec.BootOptions = new-Object VMware.Vim.VirtualMachineBootOptions

    $vmConfigSpec.BootOptions.BootDelay = $DelayValue

    $vmConfigSpec.flags = new-Object VMware.Vim.VirtualMachineFlagInfo

    $vmConfigSpec.flags.enableLogging = $false

    $vm. ReconfigVM_Task ($vmConfigSpec)

    Get - VM $VMname | Get-NetworkAdapter | Together-NetworkAdapter - NetworkName "Lab_Local" - confirm: $False

    FloppyDrive get - VM $VMname | Game-FloppyDrive - FloppyImagePath "Automate/BootFloppies/LAB-DC.flp [build]" - StartConnected $true - confirm: $false

    Most of the time the foregoing successfully created the virtual machine, but I have about 20 MV that I need to build/remove and the only way I can do it is by adding the individual game published for each virtual computer orders - it isn't nice to handle, so I tried to add a loop foreach to read the name of the virtual machine and the settings for each computer virtual to a CSV file.

    The CSV file is formatted as follows:

    VMName MemoryMB NumCpu Version, ID, Datastore, DiskGB, ISOPath, NetworkName, FloppyPath

    Lab_DC, 512, 1, v9, windows7Server64Guest, Lun1, 15, [Host3] VM/Lab_Local\WIN2K8R2SP1_CUST. ISO, Lab_Local, Automate/BootFloppies/LAN-DC.flp [build]

    Lab_VC, 2048, 1, v9, windows7Server64Guest, Lun2, 20, [Host3] VM/Lab_Local\WIN2K8R2SP1_CUST. ISO, Lab_Local, Automate/BootFloppies/LAN-VC.flp [build]

    I tried to add this to "test" as below, but it seems to work partially. It fails to set the path of the ISO, disk path and the Network Port correctly - could not understand how to properly use the BootOptions so I left it.

    $VMs = import-CSV - UseCulture b:\automate\servers.csv

    New-VM - VMhost Host3 - CD-name $VM. VMName - MemoryMB $VM. MemoryMB - NumCPU $VM. NumCPU-Version $VM. Version - ID $VM. ID-floppy - Datastore $VM. Store data-DiskGB $VM. DiskGB - DiskStorageFormat 'thin' - Notes '$name Auto deployed on $date.

    Get - VM $VM | Get-CDDrive. Game-CDDrive - ISOPath $VM. ISOPath - StartConnected $true - confirm: $false

    Get - VM $VM | Get-NetworkAdapter | Together-NetworkAdapter NetworkName - $VM.NetworkName - confirm: $False

    FloppyDrive get - VM | Game-FloppyDrive - FloppyImagePath $VM. FloppyPath - StartConnected $true - confirm: $false

    This is the result I get from the routine above.

    NameUse of the port
    --------  ----
    Host3root of 443

    WARNING: The 'Description' of type VirtualMachine property is deprecated. Use the property "Note".

    WARNING: The 'Hard drives' property type VirtualMachine is discouraged. The "Get-hard drive" cmdlet instead.

    WARNING: The 'NetworkAdapters"type VirtualMachine property is deprecated. The cmdlet "Get-NetworkAdapter" instead.

    WARNING: The 'UsbDevices' of type VritualMachine property is obsolete. Use the "Get-UsbDevice" cmdlet instead.

    WARNING: The 'CDDrives' of type VitrualMachine property is obsolete. Use the "Get-CDDrive" cmdlet instead.

    WARNING: The 'FloppyDrives"type VirtualMachine property is deprecated. Use the "Get-FloppyDrive" cmdlet instead.

    WARNING: The 'Host' of type VirtualMachine property is deprecated. Use the property "$vmhost".

    WARNING: The "HostId" type VirtualMachine property is deprecated. Use the property "VMHostId".

    Get-FloppyDrive: it lacks an argument for the parameter "VM". Specify a parameter of type ' VMware.VimAutomation.ViCore.Type

    s.V1. [Inventory.VirtualMachine] ' and try again.

    To b:\Automate\Various Scripts\CreateVM.ps1:48 tank: 20

    + Get-FloppyDrive - VM < < < < | Game-FloppyDrive - FloppyImagePath $VM. FloppyPath - StartConnected $true - confirm: $false

    + CategoryInfo: InvalidArgument: (:)) [Get-FloppyDrive], ParameterBindingException)
    + FullyQualifiedErrorId: MissingArgument, VMware.VimAutomation.ViCore.Cmdlets.Commands.VirtualDevice.GetFloppyDriv

    e

    Ah, my mistake, I don't check your code.

    Inside the loop, the script must use the variable $_ instead of the variable $VM to the New - VM.

    The variable $_ will have extracted the CSV file line.

    I've updated the code above. Give him another chance.

Maybe you are looking for