Can Convert-WindowsImage convert a .WIM from Command Prompt's "recimg" on Windows 8.1?

Hi Folks,
I have been trying to do this several times, including with the UI. The UI afforded a bit more info; it was complaining about the .WIM metadata:
Windows PowerShell transcript start
Start time: 20140121155929
Username : TammyLacey\Crysta T Lacey
Machine : TAMMYLACEY (Microsoft Windows NT 6.3.9600.0)
INFO : Launching UI...
INFO : Selected Working Directory is D:\Hyper-V\Virtual Hard Disks...
INFO : Scanning WIM metadata...
INFO : Scanning WIM metadata...
ERROR : You cannot call a method on a null-valued expression.
INFO : Log folder is C:\Users\CRYSTA~1\AppData\Local\Temp\Convert-WindowsImage\28986a7f-dc96-4ee6-91e2-b69b90a31153
INFO : Closing Windows image...
INFO : Done.
Windows PowerShell transcript end
End time: 20140121161513
With PowerShell: 
PS C:\Windows\system32> Convert-WindowsImage -SourcePath "E:\@.RefreshImage\2014-01-18\CustomRefresh.wim" -VHDPath "D:\Hyper-V\Virtual Hard Disks\W 8.1 Pro 1.vhdx" -Edition Professional -VHDFormat VHDX -Verbose -db
Windows PowerShell transcript start
Start time: 20140121092326
Username : TammyLacey\Crysta T Lacey
Machine : TAMMYLACEY (Microsoft Windows NT 6.3.9600.0)
DEBUG:
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Xml.Linq;
using System.Xml.XPath;
using Microsoft.Win32.SafeHandles;
namespace WIM2VHD {
/// <summary>
/// P/Invoke methods and associated enums, flags, and structs.
/// </summary>
public class
NativeMethods {
#region Delegates and Callbacks
#region WIMGAPI
///<summary>
///User-defined function used with the RegisterMessageCallback or UnregisterMessageCallback function.
///</summary>
///<param name="MessageId">Specifies the message being sent.</param>
///<param name="wParam">Specifies additional message information. The contents of this parameter depend on the
value of the
///MessageId parameter.</param>
///<param name="lParam">Specifies additional message information. The contents of this parameter depend on the
value of the
///MessageId parameter.</param>
///<param name="UserData">Specifies the user-defined value passed to RegisterCallback.</param>
///<returns>
///To indicate success and to enable other subscribers to process the message return WIM_MSG_SUCCESS.
///To prevent other subscribers from receiving the message, return WIM_MSG_DONE.
///To cancel an image apply or capture, return WIM_MSG_ABORT_IMAGE when handling the WIM_MSG_PROCESS message.
///</returns>
public delegate uint
WimMessageCallback(
uint MessageId,
IntPtr wParam,
IntPtr lParam,
IntPtr UserData
public static void
RegisterMessageCallback(
WimFileHandle hWim,
WimMessageCallback callback) {
>>>>>>>>>>>>>>>>>> I have the rest of the DEBUG your interested but it is over 4000 lines<<<<<<<<<<<<<<<
#endregion Public Properties
#endregion VHD Interop
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"):
VERBOSE: isUserAdmin? True
VERBOSE: isWindows8? True
VERBOSE: Temporary VHDX path is : D:\Hyper-V\Virtual Hard Disks\e53a41bc-6a5e-4d85-9b77-33d0e48b40b8.vhdx
ERROR : You cannot call a method on a null-valued expression.
INFO : Log folder is C:\Users\CRYSTA~1\AppData\Local\Temp\Convert-WindowsImage\e53a41bc-6a5e-4d85-9b77-33d0e48b40b8
INFO : Closing Windows image...
INFO : Done.
Windows PowerShell transcript end
End time: 20140121093332
Thank You,
Best Regards,
Crysta
PhotM Phantom of the Mobile

I think there are a couple of Red Hariings are forming here. First, I am of the old IBM school where filetypes (extentions) were limited to 8 characters not 3 as in DOS in the 70's & 80's, therefore Executives were Exec but the same as .exe and were
text files. Second, this is not about recimg ability to run, it runs just fine but slow. Recimg is simply where the .WIM comes from. 
This is about Convert-WindowsImage.ps1 a PowerShell Script processing that .WIM and converting it to a .vhdx.
Crysta
PhotM Phantom of the Mobile
Herrings dear - 'herrings'.  Or are you thinking of "harangue-ings"... maybe "hangings'.
I am an extremely old IBM guy.  Windows extensions can have as many characters as you need.  There is no 3 character limit as any trained technician in IBM or Windows has known for many years.
If you have a real question post it to the location where you got the script.  The script is from the Gallery. 
We do not fix or write scripts on demand.  You are free to write a script and post questions here.  If you have issues with  gallery scripts then post to the author of the script.
¯\_(ツ)_/¯

Similar Messages

  • Cant See RTF Files in JAR but can when running program from command prompt

    posted August 16, 2005 08:26 AM
    Hi ALL:
    I have a Java Swing APP. It has Menus which displays information through File I/O in a JEditorPane.
    When I run my program from Command Prompt using "java myApp" it shows these RTF Files as it is.
    However when I run them after converting Directory into a Executable JAR FILE, it fails. I get a blank JEditorPane. My RTF files are in the CORRECT PATH, just dont get displayed. Rest of the APP works fine.
    Chetan
    any suggetsions

    posted August 16, 2005 08:26 AM
    Hi ALL:
    I have a Java Swing APP. It has Menus which displays information through File I/O in a JEditorPane.
    When I run my program from Command Prompt using "java myApp" it shows these RTF Files as it is.
    However when I run them after converting Directory into a Executable JAR FILE, it fails. I get a blank JEditorPane. My RTF files are in the CORRECT PATH, just dont get displayed. Rest of the APP works fine.
    Chetan
    any suggetsions

  • Can't create database from command prompt

    I am using Oracle 9i over Win XP. I can create new database using OEM wizard without any problem. However, when I try to create new database from command prompt, using following commands, I get an error.
    sqlplus /nolog
    connect / as internal (when I issue this I get message TNS no listener)
    CONNECT SYS/password AS SYSDBA (can't understand how to use this, I don't have password because I've not created the database)
    Can anyone help me how to create new database from command prompt?
    Thanx

    "TNS No Listener" => Start the listener
    To be connected as SYSDBA you dont need a password if your are logged in the DBA group, you just have to :
    PROD_:id
    uid=102(oracle) gid=103(oinstall)
    PROD_:sqlplus "/ as sysdba"
    SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jul 23 11:46:50 2003
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - Production
    SQL> show user
    USER is "SYS"
    SQL>
    Fred

  • Can I change user name after running essbase from command prompt??

    Hi,
    I run essbase from command prompt and during this activity I was asked to give user name and password, but by mistake I put wrong user name and now wolud like to chanege it.
    Is it possible??
    cheers,

    It worked,
    now I was able to connect to easbase from planning, I ve created sample aplication and initialize it but cannot connect to Eas to download data for sample application. After I run the validation there is now only one error displayed:
    Essbase / Essbase Administration Services
    FAILED Web App Availability of web application context (POL-MPIKULSKI 10080, eas)
    Error: com.hyperion.cis.utils.BadResponseCodeException: Bad response code: 404
    Recommended Action: Check application is started
    I tried to start the eas from start>programs>epm system>essbase>administration services>start administration services(java embeded) but it didnt help.
    can I start in in different way??
    cheers,

  • Unable to run discoverer report from command prompt

    Hi,
    I'm trying to run the discoverer report from command prompt and i need to schedule the same.
    How could i pass multiple values for the parameters?
    If i don't pass the optional parameters, the parameter screen is getting pop-up? How to skip optional parameters?
    Also, how to pass the data ranges (format for date parameters) ?
    I'm using the below command in command prompt:
    cd/d E:\oracle\BIToolsHome_1\bin
    dis51usr /connect username/password@database /opendb "TIMS-PCJ status Report" /sheet "TIMS observation status report (based on performed date)" /parameter "Test Number" 40351 /parameter "From Date" "01-JAN-2007" /parameter "To Date" "28-FEB-2007" /parameter "Observation Status" C /parameter "Observation Name" "Abdominal Girth" /export HTML "C:\DISCOVERER_REPORT_SCHEDULING\DIS_OUTPUT\PCJStatusOutput11"
    Any one please reply me. Its very urgent.
    Regards,
    Sreedhar

    Hi,
    How could i pass multiple values for the parameters? You should be able to use a comma separated list e.g.
    /parameter "Observation Name" "'Abdominal Girth','Abdominal Girth2'"
    How to skip optional parameters?I don't think you can. You have to supply all parameters and then decode out the parameters you don't need in the workbook.
    how to pass the data ranges You cannot pass a date range. You can pass a start and end parameters. The default format for the date parameters is DD-MON-YYYY but this can change depending on the NLS settings and format of the data item.
    Rod West

  • How can I pass a value to the command prompt?

    I was wondering how can I pass a value to the command prompt with Windows and Linux? I'm more interested in Linux's system than Windows though. Is there a way to return info from the command prompt?

    Here is a snippet from http://mindprod.com/jglossexec.html that explains how in detail.
    Runtime.getRuntime().exec("myprog.exe") will spawn an external process that runs in parallel with the Java execution. In Windows 95/98/ME/NT/2000/XP, you must use an explicit *.exe or *.com extension on the parameter. It is also best to fully qualify those names so that the system executable search path is irrelevant, and so you don't pick up some stray program off the path with the same name.
    To run a *.BAT, *.CMD, *.html *.BTM or URL you must invoke the command processor with these as a parameter. These extensions are not first class executables in Windows. They are input data for the command processor. You must also invoke the command processor when you want to use the < > | piping options, Here's how, presuming you are not interested in looking at the output:
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat" );
    Runtime.getRuntime( ).exec ("cmd.exe /E:1900 /C MyCmd.cmd" );
    Runtime.getRuntime( ).exec ("C:\\4DOS601\\4DOS.COM /E:1900 /C MyBtm.btm" );
    Runtime.getRuntime( ).exec ("D:\\4NT301\\4NT.EXE /E:1900 /C MyBtm.btm" );
    There are also overloaded forms of exec(),
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null);
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null, "C:\\SomeDirectory");
    The second argument can be a String [], and can be used to set environment variables. In the second case, "C:\\SomeDirectory" specifies a directory for the process to start in. If, for instance, your process saves files to disk, then this form allows you to specify which directory they will be saved in.
    Windows and NT will let you feed a URL string to the command processor and it will find a browser, launch the browser, and render the page, e.g.
    Runtime.getRuntime( ).exec ("command.com http://mindprod.com/projects.html" );
    Another lower level approach that does not require extension associations to be quite as well set up is:
    Runtime.getRuntime( ).exec ("rundll32 url.dll,FileProtocolHandler http://mindprod.com/projects.html" );
    Note that a URL is not the same thing as a file name. You can point your browser at a local file with something like this: file://localhost/E:/mindprod/jgloss.html or file:///E|/mindprod/jgloss.html.
    Composing just the right platform-specific command to launch browser and feed it a URL to display can be frustrating. You can use the BrowserLauncher package to do that for you.
    Note that
    rundll32.exe url.dll,FileProtocolHandler file:///E|/mindprod/jgloss.html
    won't work on the command line because | is reserved as the piping operator, though it will work as an exec parameter passed directly to the rundll32.exe executable.
    With explicit extensions and appropriately set up associations in Windows 95/98/ME/NT/2000/XP you can often bypass the command processor and invoke the file directly, even *.bat.
    Similarly, for Unix/Linux you must spawn the program that can process the script, e.g. bash. However, you can run scripts directly with exec if you do two things:
    Start the script with #!bash or whatever the interpreter's name is.
    Mark the script file itself with the executable attribute.
    Alternatively start the script interpreter, e.g.
    Runtime.getRuntime( ).exec (new String[]{"/bin/sh", "-c", "echo $SHELL"}";

  • How to Get Input from Command Prompt?

    How can i get input from command prompt like
    C:\
    or linux ?
    (Here's what I use now)
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String line;
    Whlie((line=in.readLine())!= null)
    { System.out.prinln( line) ; }
    IS THERE A BETTER WAY?

    The main method within a java class accepts command line input through a String array.
    In this example args is the String array. You can access the parameters as args[0] for the first parameter, args[1] for the second parameter, etc....
    The usage for the example below would be :
    c:\EDIFormat file1 file2
    Where args[0] would equal file1 and args[1] would equal file2.
    public class EDIFormat {
    public static void main(String[] args) {
              if (args.length < 0) {
                   System.out.println("No Parameters supplied. Exiting....");
                   // open input and output files
                   EDIFiles(args[0], args[1]);
    Hope that helps!

  • Call an ABAP program or a function module from command prompt/python script

    Dear All,
    I want to call a function module/ABAP program from command prompt or a python script.
    Let me explain with an example.
    There is a function module "z_add" that takes  two integers as input parameters and generates their sum.
    the sum is the output parameter.
    Now i want to call this function module from command prompt / python script and pass parameters to this function module.
    In return i must get the sum(i.e. the output of function module).
    I tried using STARTRFC ,was able to call the FM but could not get the return value(output) from FM.
    Can you please provide me the code of such a function module and the method to call it thereby passing parameters and getting the sum.
    Thanks and regards,
    Gaurav
    Edited by: gauravkec2005 on Mar 4, 2010 7:41 AM

    thank you both!  helpful answers! :o)
    anyway! 
    i have written the program which is called from the SAPScript:
        /:       PERFORM GET_VATNUMBER IN PROGRAM ZFI_F140_OPERATIONS
        /:       USING &BKPF-BUKRS&
        /:       CHANGING &VATNUMBER&
        CE       VAT Registration No : &VATNUMBER&
        REPORT zfi_f140_operations.
        FORM get_vatnumber TABLES in_par  STRUCTURE itcsy
                                  out_par STRUCTURE itcsy.
          DATA: lv_co_code TYPE bukrs,
                lv_vat_no  TYPE stceg.
          READ TABLE in_par WITH KEY name = 'BKPF-BUKRS'.
          MOVE in_par-value TO lv_co_code.
          SELECT SINGLE stceg FROM t001
            INTO lv_vat_no WHERE bukrs = lv_co_code.
          out_par-name = 'VATNUMBER'.
          WRITE lv_vat_no TO out_par-value.
          CONDENSE out_par-value.
          MODIFY out_par INDEX 1.
        ENDFORM.              
    it is not working and i cannot work out why... 
    i have not been ABAPing for very long but have had a go.... 
    any thoughts as to what i have done wrong?
    or point me where i should be looking?  thank you!

  • How to search specific text/string in pdf files from command prompt?

    Hi,
    How to search specific text/string in pdf files from command prompt?
    Will be great if you can refer to any adobe provided command base utility to achieve the above target.
    Best Regards,

    You can't. The commandline parameters for Acrobat and Adobe Reader do not allow any type of commands to be run.

  • Launching Index Tuning Wizard from command prompt

    I have been playing with index tuning wizard and I could not figure how to launch it from command line (Manual says it can be launched via management console or oracle expert).
    DB2 and SQL Server provide executables which can be launched from command line. For example, below command evaluates given workload on target database and recommends something if necessary.
    Command> itw -d <targetDB> -w <workloadFile> -o <indexRecommendations>
    Is it possible to launch Oracle Index Tuning Wizard from command prompt in a similar way?
    -fa

    "TNS No Listener" => Start the listener
    To be connected as SYSDBA you dont need a password if your are logged in the DBA group, you just have to :
    PROD_:id
    uid=102(oracle) gid=103(oinstall)
    PROD_:sqlplus "/ as sysdba"
    SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jul 23 11:46:50 2003
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - Production
    SQL> show user
    USER is "SYS"
    SQL>
    Fred

  • Selecting different homes from command prompt

    Hi Gurus,
    Oracle client-9201
    Oracle client-10201
    Win XP SP2
    We have two oracle homes. We want to switch it from one to another. We have restriction that this should be done from command prompt only. Although I can change homes launching latest OUI and going to "INSTALLED PRODUCTS" tab where we find ENVIRONMENT tab. There it is possible to change home and apply. But this thing I want to do from command prompt.
    Any help will be highly appreciated.
    Regards.
    Virendra

    No, you don't want it to be from a command prompt and from OUI. What you want is to be able to do this without the need to visit all 400 client boxes. The method is irrelevant, as long as it efficiently achieves your real goal.That is true.
    You keep saying "command prompt" and "OUI", but can't visit all the necessary machines. So what were you envisioning? Creating some batch file you could distribute to all affected users over the network, and ask them to execute said batch file? That may (or may not) be valid, but to find the best solution we have to clearly define the real requirements and separate that from any pre-concieved solution.You can say it is my pre-concieved assumption that I will go with Command Prompt/OUI. But the real problem is I don't want to visit all machines. It can be a batch file distributed to all machines or our network people may execute it sitting on domain controller machine from which he can run programs in background of any machine in network.
    From the other things discussed on this thread, I suspect you are going to have to blow in some registry hack, by one of several possible means. But first we have to know what your real constraints are and all of the options open to you.Real constraint is, We don't want (rather can't) visit all 400 terminals.
    Do you have the ability to push registry settings at client logon?Yes, We can.
    Can you guarantee the consistency of configuration of all 400 clients?Home name and Location may be different on different machines.
    Do you have the ability to force the automatic execution of a command file from a file server and client log-on time?Yes, it is possible.
    Are you working with your network people to explore what help they might be able to provide on the above points?They may help us depending upon the requirement.
    Regards
    Virendra

  • Connecting to oracle10g from command prompt

    Hello All,
    Please reply to following doubts/queries. Any help is highly appreciated.
    1.Without having any other tool, is it possible to connect to a remote oracle10g server from windows command prompt.
    I have used following command in MySQL database for this purpose:
    "mysql -u database_user_name -ppassword".
    2. My second question is about Oracle SQL developer(version 1.5.4). I am having this tool installed on my machine.
    So, how can i now connect to remote Oracle 10g server from command prompt.
    My purpose is to run batch file thereby calling a stored procedure.
    Thanks.

    Hi,
    1.Without having any other tool, is it possible to connect to a remote oracle10g server from windows command prompt.
    I have used following command in MySQL database for this purpose:
    "mysql -u database_user_name -ppassword".AFAIk, we can't correct in such ways. I might be wrong too, since I have not tested with mysql anytime.
    2. My second question is about Oracle SQL developer(version 1.5.4). I am having this tool installed on my machine.
    So, how can i now connect to remote Oracle 10g server from command prompt.
    My purpose is to run batch file thereby calling a stored procedure.You need to configure the appropriate connections identified - user/ password - wher DB host is residing IP address and port number and sid of oracle instance. Carry out those things then you can connect to DB.
    Execute the batch files from DB Server - its better approach.
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

  • How to run form from command prompt

    Hi,
    How to run a form from command prompt
    can anybody suggest me the way
    prasanth a.s.

    Well, if you are running windows, client server forms 6i, and your form is called 'myform', you could put this into a batch file :-
    start ifrun60 module=myform

  • Compiling form from  command prompt...

    hi all,,
    Can any one tell me, :how to compile a form
    from command prompt..
    It would be appreciable if i can get an answer for this...
    Thanks and regards.

    You could use ORACLE_HOME\bin\ifcmp90.exe ........ (for 9i/10g) or ORACLE_HOME\bin\frmcmp.exe....... (for 10gR2).
    with the option batch=yes

  • MDX Qyery from Command Prompt

    Hi All,
    Can i execute MDX query from Command Prompt.
    If yes how can i execute please give me example
    i want to execute the below query.
    SELECT
    [Year].[Qtr1].Level.Members
    ON COLUMNS,
    [Product].Levels(0).Members
    ON ROWS
    FROM Sample.Basic.
    Thanks a ton in advance.
    Regards,
    Mink
    Edited by: Mink2 on Dec 11, 2009 9:08 AM

    Hi,
    Just start a Maxl (essmsh) session from a command line, log into the essbase server and then paste the MDX;
    e.g.
    Loging admin password on localhost;
    SELECT Year.Qtr1.Level.Members ON COLUMNS, Product.Levels(0).Members ON ROWS FROM Sample.Basic;
    Ok?
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • How to query a custom picklist from Opportunity's revenue?

    Hello, I would like to query a custom picklist from Opportunity's revenue. I am using Picklist.wsdl: myPort.getPicklistValues(myPicklist, Revenue, ""); With this operation I have the following message: denied acces. (SBL-ODS-50085). I have tested wit

  • Need to remove password when starting computer and ECT

    I have posted a few times, but I think I only got one response, I have a few problems with this laptop Model # Satellite A135-S4527.So I'm going to list them and maybe some can help,other wise I may take a hammer to this laptop. 1: I put a password o

  • My thunderbolt to hdmi cable worked once but then stopped

    so i bought a thunderbolt to HDMI adapter and it work great but when i took out the hdmi and put it in my console id didnt work when i checked if it would work with the adapter is didnt so this adaper stoped working a broke my HDMI cord

  • BAPI_MATERIAL_SAVEREPLICA -language Issue

    Hi friends i am using this BAPI to extend storage location for each material. its working fine but retutn table is giving  messages in  Germanlaguage. please any one can give solution how can i get return message in English. Thanks Ramesh

  • Automatic New Tables

    I tried searching for an answer to this but I don't really know what terminology to use. So I apologize if this has been covered recently or is really easy to find in the user's guide. I'd like to be able to automatically fill tables using data from