How to Create HyperV VM's remotely

Hi,
I have the following code typed in a remote windows 8 machine and trying to create a VM on my HyperV server.
$CLI1 = "Windows7"
$CRAM = 1GB
$CLI1VHD = 20GB
$VMLOC = "\\HypervSRV\c$\Vms\VM1"
$NetworkSwitch1 = "vswitch"
$W7ISO = "\\hypervsrv\c$\ISO\windows7.ISO"
Invoke-command -computername HypervSRV -scriptblock {New-VM -Name $CLI1 -Path $VMLOC -MemoryStartupBytes $CRAM -NewVHDPath $VMLOC\$CLI1.vhdx -NewVHDSizeBytes $CLI1VHD -SwitchName $NetworkSwitch1}
But this command does not work
Please help.
Thanks,
Shamir

Hi Shamir,
Also please refer to following article regarding how to run powershell command remotely :
http://blogs.technet.com/b/heyscriptingguy/archive/2010/11/16/enable-powershell-remoting-to-enable-running-commands.aspx
I suggest you to use enter-pssession to run the script you posted .
Best Regards,
Elton Ji
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

Similar Messages

  • How to create managed server in remote machine ?

    Hi,
    I have a cluster. It has 2 managed servers
    one managed server runs on machine A
    I want to run another managed server on machine B
    How do i do that.
    I have weblogic installed on both machines A and B
    Problem:
    a.) how to create domain in machine B ? should i use pack/unpack commands or can i create a new domain from scratch in the machine B ?
    Machine A has the domain directory created. Machine A also has admin server
    b.) if i create a domian from scratch in machine B, then how does synchroniziation happens ?
    say in machine A ( initially where the domain is created ). I add some entries in setDomainenv.sh, how will it reflect in machine B ?
    Regards,
    Harsha

    There are many ways to achieve this, this is one of the method that might help you get started...
    http://download.oracle.com/docs/cd/E12839_01/web.1111/e14144/toc.htm
    Hope this helps.
    .raja

  • How to create a RMAN channel (remote host)

    Hi Folks
    I am trying to duplicate a DB with RMAN, but when I run in the box2(aux)
    $ rman target sys/oracle@stdp auxiliary /
    (stdp is my target)
    RMAN>duplicate target database to basedos;
    (basedos is my aux)
    the follow error message is displayed:
    channel ORA_AUX_DISK_1: reading from backup piece +GRUPO01/stdp/backupset/2006_04_23/nnndf0_tag20060423t130319_0.268.588517401
    ORA-19870: error reading backup piece +GRUPO01/stdp/backupset/2006_04_23/nnndf0_tag20060423t130319_0.268.588517401
    ORA-19505: failed to identify file "+GRUPO01/stdp/backupset/2006_04_23/nnndf0_tag20060423t130319_0.268.588517401"
    ORA-17503: ksfdopn:2 Failed to open file +GRUPO01/stdp/backupset/2006_04_23/nnndf0_tag20060423t130319_0.268.588517401
    The +GRUPO01/stdp/backupset/2006_04_23/nnndf0_tag20060423t130319_0.268.588517401 is in box1(target), how to create a channel in the box2 that reference this backup piece or need aditional permissions or grants?
    Thanks for your responses?

    RMAN needs access to the backup sets. You can try:
    - running RMAN on the target machine whilst still duplicating to the auxilliary box;
    - copying/mounting your backup sets to the same path on the auxilliary box;
    - copying/mounting your backup sets to a different path on the auxilliary box and registering in RMAN;
    Details on versions, O/S, backup locations, channel specs would help.

  • How to Create Process Chain for Remote Cube.

    Hi,
              I created Remote info cube, data from ECC, loaded Successfully, I want to create Process Chain for Reomte Cube, Please Help me.
    Thanks,
    Nandish Gowda

    Hi Nandish,
    After initialization, th next delta will come as per your delta nature, if it is 0calday: Then your next delta will come tomorrow only.
    If you are able to 7 records in RSA3, why not in PSA( Why it's only 5 records). Analyze this closely.
    Sometimes, RSA3 exactly doesn't match with PSA because, RSA3 works on update mode F.
    Regards,
    Suman

  • How to create remotes with version 8  , consolidate db version is 12

    consolidate db and remote agent service are running on sybase sql anywhere 12 , where as remote dbs are running on sql anywhere 8,
    we have already have remotes db running version 8 and want to continue same version due to application .
    now we would like to have more version 8 remote dbs .
    How to create or extract new remotes with version 8  ?

    Starting with V11, the version of DBXTRACT must match that of the consolidated database. This is documented here:
    Extraction utility (dbxtract) behavior change   In previous releases the version of dbxtract used to extract a database did not have to be the same version as the database server running the database. Now, when dbxtract is used with a version 10.0.0 or later database, the version of dbxtract used must match the version of the database server used to access the database. If an older version of dbxtract is used with a newer database server, or vice versa, an error is reported.
    As a consequence, you can no longer use DBXTRACT directly to create a v8 remote database. (Aside:Several years ago, I was surprised by that as well, as can be read in the old NNTP archives...)
    Therefore, to create a remote database for an older version, you will have to use a custom extraction, as described in the help. You may be able to use the reload.sql generated by v12 as a base to then backport the DDL statements to v8 - or you may use an existing v8 reload.sql script and parametrize that so it supports remote users, subcriptions and the like as variables.

  • How to create a Flex3 project with remote ColdFusion server?

    I have a question related to Flex 3 and ColdFusion that it might be simple to answer but I have been struggling with it for a while.
    How to create a Flex application using Flex Builder 3 that uses ColdFusion, but the ColdFusion server is not installed locally but in a remote server?
    I need to create a Flex application to use with ColdFusion and although this is a simple procedure when we are creating the project in a computer where you have ColdFusion installed locally (as all books shows examples of it), but what if the ColdFusion server is installed in another machine in the network?
    My current situation is the following:
    -          I have Flex Builder 3 install in my PC at work and its workspace is in a folder in the network outside of my PC.
    -          We have a server (ISWEB1) partition in two drives; C, where the ColdFusion 8 is installed and D where all the files the developers work with reside. The ColdFusion installation runs in a server where IIS is used as the web server.
    -          I have the drive D on the server ISWEB1 mapped to one of my letter drives and can access it easily
    -          The drive C on the Server can only be accessed remotely (or through the web to access the ColdFusion admin page) and is not exposed to the network as drive D is.
    My problem is, I need to create a Flex 3 application that uses ColdFusion using remote object access service (CF Flash Remoting) but I wanted to point to the installation version on the server ISWEB1 and not to the one installed locally. The Configure ColdFusion Server screen in the Flex Builder asked me for the location of ColdFusion root folder, Web root, and root URL. There is no way I can point to the server (ISWEB1)where ColdFusion is installed as those fields seem to required a address that points to a local install or a mapping on that local server.
    The work around that could be used is to use the ColdFusion developers edition I have installed locally and use during the creation of the project in Flex Builder, but then I would have to have all the same data sources, mappings, and CFCs in my the local server in order to test, which seems double work. To aggravate that when you try to test the application Flex writes the files to the local server and unless you have everything available locally it would not work properly. I am trying to avoid duplicating the work. Ideally I would like to test the Flex application on the server where the CF is installed and where the Flex Builder workspace is.

    Sort of. I found this article below that helped me to connect to the remote CF server using MXML. It seems that you have to create a regular project in Flex with Aplication Server Type set to None and connect to CF using the endpoint attribute of the RemoteObject MXML tag or via AS.
    http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/200
    However I found out after getting error using the AS3 code to use the endpoint property that
    mx.rpc.remoting.RemoteObject does not support  the "endpoint" property
    whereas mx.rpc.remoting.mxml.RemoteObject does. See link below
    http://www.mail-archive.com/[email protected]/msg101439.html//www.mail-archive.com/[email protected]/msg101439.html
    So I had to change my AS3 code by adding a new channel to my RemoteObject using a code similar to the one on the link below (Note that this code uses PHP, when I instantiate myRemoteObject, I do so informing that the destination is "ColdFusion" [new RemoteObject("ColdFusion")], so no need to set destination as in the code on the link below
    http://tech.groups.yahoo.com/group/flexcoders/message/120115
    I hope that helps you.

  • How to create the log file in remote system using log4j.

    Hi,
    How to create the log file in remote system using log4j. please give me a sample code or related links.The below example i used for create the log file in remote system but it return the below exception.Is there any authandication parameter for accessing the remote path? Please help.
    public class Logging
    Logger log=null;
    FileAppender fileapp=null;
    public Logging(String classname)
    try
    log = Logger.getLogger(classname);
    String path=" [\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt|file://\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt]";
    fileapp = new FileAppender(new PatternLayout("%r [%t] %-5p %c %x - %m%n"),path, true);
    log.addAppender(fileapp);
    log.info("Logger initilized");
    }catch(Exception ex)
    ex.printStackTrace();
    java.io.FileNotFoundException: \\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt (The network path was not found)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:109)
    at annwyn.logger.BioCapLogger.<init>(Logging.java:23)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Please help.
    Thanks in advance.
    Saravanan.K

    Sorry path is missing for the above request.
    path="\\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt ";
    please help.
    Saravanan.K

  • How to create Remote Desktop Application in C# or port it from HTML5/JS project ?

    Hi
    How can create Remote Desktop Application in C# template ? I were searching on google but not found example or API for this.
    If can, please suggest for me some solution, example and document.
    And I have JavaScript project template Remote Desktop Application. Can i port it to c# ? Or use Webview to show it ?
    I were create demo use webview to show it but it not run. Maybe i do some mistake or can't be do it.
    Thanks.

    I have no other options.  We already provide the RDP plug-in for JavaScript. I'm not sure what else is needed for this.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with
    undefined objects and unknown namespaces.
    My project needs work with C# Windows Store. So I need RDP on C#, not JS. If we don't support C#, do we have a RDP spec on Windows 8.1 so that we can follow that spec to implement with native code to support RDP?

  • How to Create a Remotely Enabled Function Module

    Hi All,
    How to Create a Remotely Enabled Function Module.
    I Want to Create a FM Using Sample Data , This for Practice
    What Fields can i give in the Import and Export Parameters.
    Please Give me one Example
    Can Any one Give me the Steps to do this.
    Regards
    Vamsi

    Hi Vamsi,
    Lets do simple example where you will first create a RFC in one server (say A) and create normal program in othere server (say B). Finally you will call the RFC in A from B.
    Do the following steps for creating RFC in server A.
    1. log on to server A
    2. go to se37
    3. Edit -> function groups-> create function group and give the function group name (say ZGRP).
    4. create a FM ( say Z_TEST_RFC) in se37 providing the function group which is created just now.
    5. go to attribute tab -> choose remote-enabled module from processing type.
    so that your FM will become RFC.
    6. provide the import parameter in import tab.
    we will provide only two import parameters.
    - parameter name : P_NUM1, typing: TYPE, associated type : I & <b>check the pass value</b> (all the parameters of RFC must pass by value).
    - parameter name : P_NUM2, typing: TYPE, associated type : I & <b>check the pass value</b>
    7. provide the export parameter in export tab.
    parameter name : P_SUM, typing: TYPE, associated type : I & <b>check the pass value</b>
    8. write the given simple code in source code tab.
    FUNCTION Z_TEST_RFC.
    P_TOT = P_NUM1 + P_NUM2.
    ENDFUNCTION.
    Do the following steps for creating ABAP program which will call the RFC in server B.
    1. se38 - > creat a program.
    2. write the given simple code.
    data tot type i.
    call function 'Z_TEST_RFC' destination '<b>XXXXXX</b>'
      exporting
        p_num1 = 10
        p_num2 = 15
      importing
        p_tot = tot.
    write tot.
    please note that <b>XXXXXX</b> is RFC connection which is avialable in <b>sm59</b> transaction in server A.
    -go to sm59 - > abap connection (list of RFC connection configurations are avialable). choose server B connection and replace it of <b>XXXXXX</b> in the code.
    finally you can execute the normal abap program that will call the RFC and display the result.
    Regards,
    Sukhee

  • How to create a JMS queue linked to external (remote) JMS server?

    Hello,
    I'm trying to receive messages from a remote JMS queue. I found some information on the Internet on how to create an external JNDI resource (my remote JMS queue connection factory is bound to LDAP context on remote box). I was able to configure JNDI resource that points to remote queue connection factory, but I don't know what to do next.
    How can I create a local JMS destination (queue) that will be the image of the remote queue? At least I'm guessing this is what needs to be done in order to deploy MDBs.
    I would appreciate it if someone could tell me how to get this working. Maybe the steps I took were not in the right direction - the bottom line is that JMS queue and queue connection factory are deployed on a remote server, and I need to get messages sent to them on the local server. I'm using Sun App Server from J2EE 1.4.
    Thank you,
    Mark

    Please refer to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6377822, particularly the evaluation. Could your situation be the same too (i.e server ip address changing dynamically)? Also, which OS are you using and do you have any firewalls setup that prevents access to port 3700?

  • How to create the General Remote Cube

    Hi Experts,
    pl help me to tell the steps for the HOw to Create Remote Cube.
    is the mandatory for assign  the 3rd party source system.
    Thanks
    Herald

    HI,
    Remote cubes(Virtual infocubes) will be used to export up-to-date data directly from a planning area.
    A). we can create Virtual infocubes three types in BW.
    1.SAP remote cube -- for other modules like CRM etc
    2.Non SAP remote cube -- for other databases
    3.with services -- for a particular functional module
    B). we can create three types Virtual infocubes in BI.
    a).Virtual infocubes for Direct Access
    b). with SOurce system
    c). Based on Funtion Module.
    The above types are same(BW and BI).
    You can create by RSA1> Select Infoprovider> Select Info area> Create the Infocube> Select Virtual infocubes.
    Regards,
    Suman.

  • How  we create the Remote enabled FM

    hi.. can any one tell me how to create the Remote Enabled FM
    venkat

    You create a RFC function module just as you create a normal function module.
    After you create the function module, in  the general tab of the function module select the "Remote Enabled" radio button which makes the function module as RFC function module.
    Also the parameters should be Pass by value so select the "Pass value" check box against each of the parameters.
    Last but not the least. RFC function modules cannot have exceptions, so define a return structure and pass all your messages like success, error etc. in the return structure.
    After the function module is created, the RFC function moule can be called using the statement
    CALL FUNCTION <FN Name> DESTINATION <RFC Dest>.
    where RFC Dest it the remote destination created in SM59.
    Ravi.

  • How do i use my apple remote on my macbook pro

    how do i use my apple remote on my macbook pro?

    Hi,
    System Preferences > Accounts > Your Account
    Select current  Pic and chose to Change it.
    You get an option to take a SnapShot.
    Quicktime will also be able to access it and record using Quicktime  X in Snow Leopard.
    Check the Menu items for New Recording.
    MSN for Mac can use it (It depend on version and in some cases whether you are connected to the correct type of Windows server)
    Yahoo (This is in Beta 3 and has been for years)
    Results can vary.
    A Web Browser with the Flash Plug-in active can access the camera on certain Web Sites that run video Chat rooms
    See Koowy
    (Type anything to Create a Room Name
    On the New Page allow access to the camera in the Flash Pop Up - You may need to use the tabs to Select Camera type.
    Send Buddy the URL of that page).
    Also see Here (Work by EZ Jim)
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.
    9:44 PM      Saturday; May 7, 2011
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
    , Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to Create a Bootable Flash Drive to do a clean install of Lion.  I have tried to use the InstallESD.dmg but it still will not do a clean install so that I do not have to do a reinstall from the Recovery (That just re downloads and takes over 6 hours)?

    How to Create a Bootable Flash Drive to do a clean install of Lion.  I have tried to use the InstallESD.dmg but it still will not do a clean install so that I do not have to do a reinstall from the Recovery (That just re downloads and takes over 6 hours)?
    The system I'm have is a Mac-mini that had SL on it and no SuperDrive.  I have also call Apple Support and they have really have not been to much help over 1st did my up grade to Lion and Installed the Lion Server.... it lost my SSL that I paid for and kill almost on of my server setting, plus kill all my web servers (using apache vhosts), and not to say the LDAP will even let remote users login to your laptops.
    PS: There is no way that I'm going to buy a Install USB from Apple... They have over billed me over $300.00 because the Apps Store still has bugs (Glad I did not write that App/Service)
    If there is anyone that can give in the information to create a USB install stick, I would be very thinkful.

    Here you are bro, courtesy of "softpedia.com"....brilliant site!!!
    If you ever had problems with your Mac OS X installation you know that the first thing you should do is to check the startup volume using Disk Utility.
    After the check has ended and, if the errors exceed a certain level of seriousness, the Disk Utility application will require you to restart your Mac and use its Mac OS X Install disc counterpart.
    Other users may have to reinstall OS X altogether, but will find, or already know, that their SuperDrive (a CD/DVD reader and write combo drive) is not functioning properly and it will not be able to read the Install disc.
    Although this might happen to Mac OS X Leopard users due to faultyhardware, the vast majority of problematic SuperDrives will be encountered inside Snow Leopard running Macs.
    This is due to the updated SuperDrive firmware included in either the Install disc or the software updates one has to install to reach the latest version of OS X, namely 10.6.6.
    This can be fixed by flashing the SuperDrive’s stock firmware using free command line tools that one can find for free online (I will write about this process also, but at a later time because this article only focuses on allowing you to create your own alternative USB boot disc).
    If you are reading this last bit of information with skepticism, than you should know that it happened to me too. Despite all my tries to make it work properly, the SuperDrive kept on munching any inserted DVDs and just popped them out in about twenty seconds.
    The workaround to this issue was to create my own Leopard bootable USB memory stick. I am not suggesting a Snow Leopard bootable stick mainly because there are lots of users that have decided to buy the cheaper, Upgrade version, which I have not tested and, therefore, I’m not sure if it will work properly once written to a USB disk.
    And now, here are the exact steps you should follow in order to obtain a fully bootable Leopard (or Lion) Install disc.
    Step 1 (If you already have the Leopard install disc DMG file you can skip to Step 2)
    Launch Disk Utility (you can find it inside /Applications/Utilities). Here select the Leopard Install disc in the list of drives on the left and click on the New Image menu entry at the top of the window. A save message will appear where you will have to select the Desktop as a destination.
    Step 2
    After Disk Utility has finished creating the Leopard DMG, insert your USB stick and erase all data and reformat the disk. To do this select the USB in the list of drives on the left and, after clicking on the Erase tab on the right side of the window, choose the Mac OS Extended (Journaled) format and click the Erase button beneath.
    Step 3
    After the USB has been reformatted, download the SuperDuper app from HERE and launch it. Once SuperDuper starts, you will only have to select the DMG in the Copy drop-down menu, your USB memory stick on the right and hit the “Copy Now” button.
    One can also use Disk Utility for this task but creating a bootable USB stick failed 2 out 4 times when copying the DMG to the stick (with the exact same settings each time). Creating the bootable stick using SuperDuper proved to be the perfect way to do it because it worked each of the 4 times I tested it.
    The steps above can also be used to create a bootable Mac OS X Lion USB by using the InstallESD.dmg image you can find inside the Lion installer (named “Install Mac OS X Lion.app”) downloaded from the Mac App Store in the /Applications folder.
    To locate the InstallESD.dmg right click the Lion installer, select the “Show Package Contents” entry, go inside the “Contents” folder, and from there into the “SharedSupport” folder. Inside this folder you can find the InstallESD.dmg you can use to create your own bootable Mac OS X Lion USB stick. To do so, go to the third step described above and use the InstallESD.dmg as the DMG to be copied to your USB disc.
    That’s it! Once the process ends you will have a fully bootable Leopard (or Lion) USB disk that you can use as an alternative to the Apple’s DVD Install disc that comes bundled with all Macs.
    To use your newly created bootable disk you will have to restart the Mac, press and hold the OPTION key until the StartupManager appears. Here, select the Mac OS X Install disk using your keyboard arrows and press return to start from the selected drive.

  • How to create a view with Oracle apps Org initialization ?

    Hi,
    How to create a view which needs Oracle apps org initialization to provide the correct data .
    The purpose of the view is to be accessed in Primavera DB via a DB link for reporting purpose.
    So how should the org be initialized so that the view returns the correct data when accessed from the remote data base using the DB link?
    EX: step1 run fnd_client_info.set_org_context for the org
    step2 query the veiw returns correct data in Oracle.
    How can this be achieved if the view needs to be accessed via DB link?
    sample view sql :
    select po_header_id
    from po_distributions_all pod
    where (apps.po_intg_document_funds_grp.get_active_encumbrance_func
    ('PO',
    pod.po_distribution_id
    ) <> 0
    Thanks in advance!
    Darshini

    Hi,
    This is not possible in Oracle. What u can do is create the view without the where clasue and supply the where clause at runtime.
    Hope this helps...
    Regards,
    Ganesh R

Maybe you are looking for