Run the cmd PowerShell script

Hello

I am trying to run a powershell script from a file cmd with the snap of VMware has added. Here's what I'm trying to run:

PowerShell.exe - noexit Add-PSSnapin VMware.VimAutomation.Core | k:\work\DeployVM.ps1

He adds the snap, and then launches the ps1 in Notepad, which is obviously not what I'm after. I'm sure it's something simple I'm missing, but I can't get it. The reason why I want to run it this way is to associate with a button, vb, I've sorted everything else, just this last piece, I need to finish.

See you soon,.

Josh

If there is a reason that you do not add the Add-PSSnapin VMware.VimAutomation.Core as the first line of your script, then you can run it as below:

C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe - PSConsoleFile "C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\vim.psc1" "& C:\MyScript.ps1 '"

If you found this information useful, please consider the allocation of points for correct or helpful.

Alan Renouf

http://Virtu-al.NET

Tags: VMware

Similar Questions

  • Response delay after you run the patch_weblogic.sh script

    Hello
    I installed the 9.1.0.1 version of Oracle Identity Manager and did all the steps for the upgrade to version 9.1.0.2, when you run the patch_weblogic.sh script, takes too much time and I have no answer to be built successfully. It is necessary to implement this script.
    I use Oracle Weblogic Server 10.3.5

    Thank you

    This is where memory questions come into it. According to your previous message in which issues of memory during installation, you may have them again. I suggest that you stop your application server. Then in the /xellerate/OIMApplications directory, delete the 2 folders that represent the ear files. IOM startup and it will give an error on the deployment. Then run the script of your patch. In the folder/xellerate/ logs, there is a file patch_weblogic.log that you can tail to monitor the progress. It will give you the output of the patch and then there is also the log of the server itself in the /servers/ /logs and there is a .out file I think that will give you any other information. Just watch and see what file's modification timestamp and tail that one it is too.

    -Kevin

  • running the irca.h script

    Hello
    I have a problem while I am trying to install Oracle SOA Suite 10 g 3 on 10gXE of the Oracle database

    When I run the irca.sh script to load the database schemas, this message appears on the screen:

    ERROR: Cannot connect to database because of the following error:
    ORA - 00604: error occurred at the SQL level 1 recursive
    ORA - 12705: cannot access NLS data or invalid environment specified files

    I need help quickly because this application needs me for a Project of the University

    Thank you very much

    What version of java are you using?

    You must make sure you only have the good installed j2se and properly configure the JAVA_HOME

    You will probably need to install the version of the j2se, I use: j2sdk-1_4_2_18-linux-i586 - rpm.bin

    JAVA_HOME=/usr/java/j2sdk1.4.2_18/JRE; Export JAVA_HOME

    See you soon
    James

  • Newbie question - tide may run a remote PowerShell script or BAT file?

    My first post.  I am new to raz, but I've had experience with other planners.

    I have a PowerShell script that must be run on a remote computer.  All the script needs software is installed on this computer.

    In addition, I need the script runs under a service account.  Is it possible and if yes, how can I go about it?

    This work will be be launched manually whenever this is necessary.

    Sure. There are some screenshots. A variable one, I used for the location of the folder on the server of tide (not required but I use a lot of scripts). One for the command of tide itself. The last one is the script runs remotely on windows work. Let me know if they don't make sense.

  • Error when you run the setEssbaseEnv.sh script

    Hi all

    In the 11.1.2.x version:

    MIDDLEWARE_HOME/EPMSystem11R1/products/Essbase/EssbaseServer/templates/startMaxl.sh

    Scripts call another script, setEssbaseEnv.sh. When you run the script 'setEssbaseEnv.sh' it gives the error below:

    $ sh setEssbaseEnv.sh

    setEssbaseEnv.sh: line 4: close syntax error unexpected token ' (')

    setEssbaseEnv.sh: line 4: "cd $J (EPM_ORACLE_INSTANCE) / bin /".

    Why use only the location of the templates? There should be a bin folder.

    Concerning

    Celvin Kattookaran

  • How to run the application startup script before the start of telnet (inetd)

    Hello

    I need to run my application startup script before the beginning of Telnet users on the server. At the present time, the script is at /etc/rc2.d/S98startup which is not useful.

    Thanks in advance...

    Published by: user4027740 on April 7, 2012 12:41

    I am inclined to ask 'why', but I refrain...

    The problem you'll have is that 'telnet' (really inetd) will be started by SMF and your app startup is a legacy script. I don't know of anyway to you allows to map addictive SMF one departure inherited. The only solution is to write a start of SMF for your application and do inetd:default require your application to be online before you start.

  • Run the command line script AfterFX

    Hi all

    I'm trying to run a script from the command line AfterFX.exe and I get the message: "unable to run the script at line 1. Syntax error.

    If I run the same Script AE editor script file, it works perfectly

    Here is the command line that I use:

    "C:\Program Files\Adobe\Adobe after effects CS6\Support Files\AfterFX.exe" indefinite display - noui s 'D:\Product\Watermark\Rendering\WatermarkedSecuritySample.jsx '.

    Someone has an idea of what may cause this error? I tried to run the script directly from the command line like

    "C:\Program Files\Adobe\Adobe after effects CS6\Support Files\AfterFX.exe" indefinite display - noui s 'alert('1') '.

    and it works very well for small script but mine is way big to do

    As you can probably guess with the 'watermark' and 'Security' in the name of the file, I can't post here, the script file, all I can say is that line 1 is:

    {

    projectName = "D:\\Product\\WatermarkTemplate.aep"; var

    I tried to replace the entire script 'alert('1')'; and it causes the same error when running it from the command line

    Also, if anyone knows where I can find the command line arguments AfterFX.exe description, I'd be very happy... everybody talks about aerender.exe, but I need these options to AfterFX.exe

    Thanks for your help

    Have you tried using "-r" instead of "-s"?

    ("-s" argument is a script; and to "-r" argument is a path to the script)

  • Run the PL/SQL Script

    I am trying to run the following script from pl/sql with sql developer:


    declare

    Start
    Dbms_output.put_line ("'Hello world!");
    end;


    but I'm so: "anonymous block filled" and not the message expected...

    What can I do?

    Thank you!

    You need to activate the "DBMS output.

    One way to do, is "View/DBMS Output" and add new Dbms output tab by clicking on "+" more singing.

    And the re - run the script.

  • Cannot run the smart calc script

    Hi gurus,
    I recently installed 11 1 2 2 version on my place of work.
    I was using smartview to access the planning Web forms and when we run a script of long calc we get the following error

    "Unable to connect to the provider. Make sure that it is running in the specified host and port. Error (12031)"

    I use a load balancer to my web applications.
    can you please help to solve the problem.

    Thank you
    Praveen.

    It could be that APS stopwatch, I guess you run OSH
    If yes stop OSH, go to \user_projects\\httpConfig\ohs\config\OHS\ohs_component
    change mod_wl_ohs.conf

    Here, you will see something like


    SetHandler weblogic-Manager
    WeblogicCluster : 13080

    Add

    WLIOTimeoutSecs 3600

    It looks like


    SetHandler weblogic-Manager
    WeblogicCluster : 13080
    WLIOTimeoutSecs 3600

    Save, start OSH and try again.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to escape the quotes when I run the .sql Unix script

    Hello

    I have a ddl script files...
    to keep specific information from the environment, I use a placeholder $variable (for example, the names of patterns etc.)

    and creating a document and say the dba this export variable = value.

    Use of variable for the following cases?

    CREATE DATABASE LINK "abc.ge.com".
    CONNECT TO $SRC_SCHEMA_NAME
    IDENTIFIED BY $SRC_SCHEMA_PWD
    With the HELP of 'abc.ge.com '.


    I want to create a varaiable with value abc.ge.com How can I do this from the command have single and double quotes...

    Thanks and greetings
    REDA

    You don't need quotation marks in your CREATE DATABASE LINK statement. Just leave and forget any of this escape.

    Are you sure you must export all these variables, i.e. will they be mentioned in sublayers without be passed as parameters?

  • Run the database sql script

    Is this possible in some form?

    < = 'name' datasource cfquery name = "dsn" >
    #query.sqlstatement # < / cfquery >

    Yes, if you mean creating a query string, and then using them in a cfquery. Usually, you will need to place the text of the query in a PreserveSingleQuotes() function if you have settings that are placed in single quotes, something like this


    #PreserveSingleQuotes (sqlstatement) #.

    Phil

  • How to run a Powershell script via a batch file

    I'm new on using Powershell and I have a fundamental question regarding running a powershell script. Basically, I wrote a file of commands as shown below.

    C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe - PSConsoleFile "C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\vim.psc1" - NoExit-command "C:\MyScripts\RunSpanshot.ps1".

    I run the batch file and nothing seems to happen. What is the problem with trying to run the RunSpanshot.ps1 script as shown above? -any help is appreciated.

    Thank you

    You could do

    C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\vim.psc1" -NoExit -Command "& 'C:\My Scripts\RunSpanshot.ps1'"
    
  • Install HRCS9.0 with Linux question: run the script hrcs90ora.dms error

    People,

    Hello. I install HCM and Campus Solution 9.0 with Internet Architecture PT8.53/WebLogic11g/Tuxedo11g/OracleDataBase11g.

    My macine server is Oracle Linux 5.10 and Windows XP-based Client computer.

    In the Oracle database Linux 5.10 Server machine, what instance HRCS90 configuration, select Demo or system, the next step "select PeopleSoft Applications" has only a single element:

    (1) PeopleSoft HRCS Demo Database - US English.

    I select this option to run the Wizard "setup.sh" that alters the scripts 'createdb10.sql, utlspace.sql, hrcddl.sql, dbowner.sql, psroles.sql, psadmin.sql and connect.sql. Then I executed 7 SQL scripts > one by one in Linux. Then need to load Windows XP data in the Oracle Linux 5.10 DB HRCS90 instance.


    After you have installed the Windows of HCM and Campus Solution 9.0 version in Windows XP with PT8.53 and log in Data Mover, I create the hrcs90ora.dms script, there's a step like below:

    Select the PeopleSoft Application
    (1) PeopleSoft HRCS Database - US English
    (2) PeopleTools System Database - US English

    I select "PeopleSoft HRCS Database - English American". When run the hrcs90ora.dms script, the error message as below:


    Release of Data Mover: 8,53
    Database: HRCS90 (ENG)
    Input file: C:\PT8.53\data\hcengs.db (ENG)
    Import AAP_ETHNIC_PMPT
    Import AAP_ETHNIC_PMPT 0
    Update statistics for AAP_ETHNIC_PMPT
    The remaining records: 21003
    Import AAP_TBL
    Create Table AAP_TBL
    Import AAP_TBL 0
    Indices of real estate required for AAP_TBL
    -SQL error. Position of the error: return 66: 959 - ORA-00959: tablespace "PSINDEX" does not exist

    UNIQUE INDEX CREATE PS_AAP_TBL WE PS_AAP_TBL (ESTABID) TABLESPACE PSINDEX STORAGE (40000 INITIAL FOLLOWING 100000 MAXEXTENTS UNLIMITED PCTINCREASE 0) PCTFREE 10 PARALLEL NOLOGGING
    Error: Unable to process create for AAP_TBL statement
    Spaces SQL: 0 tables: triggers 1: index 0: 0 views: 0

    Unsuccessful end


    But when again, run the hrcs90ora.dms script, the error is a party for the current record and goes to the next record. I ran the scripts 10 times and get the following result:


    Release of Data Mover: 8,53
    Database: HRCS90 (ENG)
    Input file: C:\PT8.53\data\hcengs.db (ENG)
    Import AAP_ETHNIC_PMPT
    Import AAP_ETHNIC_PMPT 0
    Update statistics for AAP_ETHNIC_PMPT
    The remaining records: 21003
    Import AAP_TBL
    Import AAP_TBL 0
    Update statistics for AAP_TBL
    The remaining records: 21002
    Import AAP_TBL_LNG
    Import AAP_TBL_LNG 0
    Update statistics for AAP_TBL_LNG
    The remaining records: 21001
    Import AAP_YEAR
    Import AAP_YEAR 0
    Update statistics for AAP_YEAR
    The remaining records: 21000
    Import AAP_YEAR_GOALS
    Import AAP_YEAR_GOALS 0
    Update statistics for AAP_YEAR_GOALS
    The remaining records: 20999
    Import AAP_YEAR_JG_GLS
    Import AAP_YEAR_JG_GLS 0
    Update statistics for AAP_YEAR_JG_GLS
    The remaining records: 20998
    Import AAP_YEAR_JOBGRP
    Import AAP_YEAR_JOBGRP 0
    Update statistics for AAP_YEAR_JOBGRP
    The remaining records: 20997
    Import AA_COMPARE_JPN
    Import AA_COMPARE_JPN 0
    Update statistics for AA_COMPARE_JPN
    The remaining records: 20996
    Import AA_CONV_JPN_AET
    Import AA_CONV_JPN_AET 0
    Update statistics for AA_CONV_JPN_AET
    The remaining records: 20995
    Import AA_COST_RT_JPN
    Import AA_COST_RT_JPN 0
    Update statistics for AA_COST_RT_JPN
    The remaining records: 20994
    Import AA_CR_EFFDT_JPN
    Create Table AA_CR_EFFDT_JPN
    Import AA_CR_EFFDT_JPN 0
    Indices of real estate required for AA_CR_EFFDT_JPN
    -SQL error. Position of the error: return 103: 959 - ORA-00959: tablespace "PSINDEX" does not exist

    UNIQUE INDEX CREATE PS_AA_CR_EFFDT_JPN WE PS_AA_CR_EFFDT_JPN (EMPLID, EMPL_RCD, EFFDT DESC) TABLESPACE PSINDEX STORAGE (40000 INITIAL FOLLOWING 100000 MAXEXTENTS UNLIMITED PCTINCREASE 0) PCTFREE 10 PARALLEL NOLOGGING
    Error: Unable to process create for AA_CR_EFFDT_JPN statement
    Spaces SQL: 0 tables: triggers 1: index 0: 0 views: 0

    Unsuccessful end

    My questions are:

    First of all, means "PeopleSoft HRCS Demo Database" in Linux and "PeopleSoft HRCS database" in Windows causes the error above? How to solve the error above?

    Secondly, when I created PeopleTools 8,53 Database Instance PT853, I'm not running the 'ptddl.sql' script, which creates many storage areas. It causes the error above? I need to run "ptddl.sql" for example PT853?


    Thank you.

    Probably, you set the init parameter db_files too low. As I remember, it is recommended and default to 1024 1021 on the Peoplesoft database. This is a static setting, change the value and it will restart the database.

    Nicolas.

    Post edited by: Nicolas.Gasparotto

  • Unable to run the script in catsem11i.sql

    Hello

    I wanted to use Oracle 11 GR 2 Semantic Technologies to store the RDF files in the database.
    I read on the forum to activate the Sematic Technologies, I need to run the catsem11i.sql script.
    For some reason I'm not able to run the script.

    Here's what I did:
    I have connected to SQL as System and typed: *@C:\app\User\product\11.2.0\dbhome_1\md\admin\catsem11i.sql*

    Here's what I got:
    SQL > @C:\app\User\product\11.2.0\dbhome_1\md\admin\catsem11i.sql
    installation 11 RDF
    PL/SQL procedure successfully completed.

    No errors.
    +: script_name1: = dbms_registry.nothing_script +;
    *+
    ERROR on line 14:
    ORA-06550: line 14, column 22:
    PLS-00201: identifier 'DBMS_REGISTRY' must be declared.
    ORA-06550: line 14, column 5:
    PL/SQL: Statement ignored
    ORA-06550: line 15, column 22:
    PLS-00201: identifier 'DBMS_REGISTRY' must be declared.
    ORA-06550: line 15, column 5:
    PL/SQL: Statement ignored

    No errors.
    Modified session.

    SP2-1506: START, @ or @ command has no arguments
    SP2-1506: START, @ or @ command has no arguments

    Modified session.
    SQL >

    What I am doing wrong?

    I am a student and have very basic knowledge about Oracle.
    I am running Windows 7 (64-bit) Home Premium.

    Published by: Bonzo on 22 April 2011 22:43

    Published by: Bonzo on 22 April 2011 22:45

    Published by: Bonzo on 22 April 2011 22:46

    Published by: Bonzo on April 22, 2011 22:50

    Please connect as SYS instead of the system.

  • How to create the staging area using the adautostg.pl script

    Hi gurus,

    I need help to install R12.1.1 EBS on linux, which is installed in the guest in the virtual machine operating system.

    I downloaded edelivery.oracle.com zip files. Then I unziped in/u01/stage12 directory. When I run the adautostg.pl script I get message saying please insert the DVD label RDBMS disc 1. No idea why?

    Should I copy all the unziped on DVD files and run above mentions the script to create the staging area?

    Thank you in advance for help you.

    Hemant.

    Hi Hemant;

    I need help to install R12.1.1 EBS on linux, which is installed in the guest in the virtual machine operating system.

    I think, you're on the wrong forum site. "Its better to write your topic in the Forum Home" E-Business Suite ' Discussion General EBS

    I downloaded edelivery.oracle.com zip files. Then I unziped in/u01/stage12 directory. When I run the adautostg.pl script I get message saying please insert the DVD label RDBMS disc 1. No idea why?
    Should I copy all the unziped on DVD files and run above mentions the script to create the staging area?

    To create steps of step-prereuest-installation etc. Please follow my blog:

    http://heliosguneserol.WordPress.com/category/step-by-step-Oracle-e-Business-Suite-installation/Oracle-e-business-suite-release-12/

    "" * PS: Please change this thread status to answered and if you have a problem on EBS, please report it on the Forum Home "E-Business Suite ' Discussion General EBS that you might get a faster response *.

    Respect of
    HELIOS

Maybe you are looking for