Posted October 22, 200915 yr Hi All,I have tried to integrade my Windows 7 Product Key in my Installation with the cmd command:@echo offrem The /Set-ProductKey option can be used to enter the product key for the current edition in an offline Windows image.DISM.exe /image:F:\7WORK\MOUNT /Set-ProductKey:MyProductKeypauseWhen i did this i get an error.DISM Log:CDISMProviderStore::Internal_DisconnectProvider2009-10-22 08:44:04, Info DISM PID=4616 Scratch directory set to 'C:\Users\GEBRUI~1\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir2009-10-22 08:44:04, Info DISM PID=4616 Successfully loaded the ImageSession at "C:\Windows\System32\Dism" - CDISMManager::LoadImageSession2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Getting Provider DISMLogger - CDISMProviderStore::GetProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Getting Provider DISMLogger - CDISMProviderStore::GetProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider2009-10-22 08:44:04, Info DISM DISM Manager: PID=4616 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Getting Provider DISMLogger - CDISMProviderStore::GetProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider2009-10-22 08:44:04, Info DISM DISM.EXE: 2009-10-22 08:44:04, Info DISM DISM.EXE: <----- Starting Dism.exe session ----->2009-10-22 08:44:04, Info DISM DISM.EXE: 2009-10-22 08:44:04, Info DISM DISM.EXE: Host machine information: OS Version=6.1.7600, Running architecture=amd64, Number of processors=42009-10-22 08:44:04, Info DISM DISM.EXE: Executing command line: DISM.exe /image:F:\7WORK\MOUNT /Set-ProductKey:2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Loading Provider from location C:\Windows\System32\Dism\WimProvider.dll - CDISMProviderStore::Internal_GetProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Connecting to the provider located at C:\Windows\System32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Loading Provider from location C:\Windows\System32\Dism\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Connecting to the provider located at C:\Windows\System32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Loading Provider from location C:\Windows\System32\Dism\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Connecting to the provider located at C:\Windows\System32\Dism\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider2009-10-22 08:44:04, Info DISM DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.2009-10-22 08:44:04, Info DISM DISM.EXE: Attempting to add the commands from provider: WimManager2009-10-22 08:44:04, Info DISM DISM.EXE: Succesfully registered commands for the provider: WimManager.2009-10-22 08:44:04, Info DISM DISM.EXE: Attempting to add the commands from provider: FolderManager2009-10-22 08:44:04, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider2009-10-22 08:44:04, Info DISM DISM.EXE: Attempting to add the commands from provider: Compatibility Manager2009-10-22 08:44:04, Info DISM DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.2009-10-22 08:44:04, Info DISM DISM Provider Store: PID=4616 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection2009-10-22 08:44:05, Info DISM DISM Provider Store: PID=4616 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection2009-10-22 08:44:05, Error DISM DISM Manager: PID=4616 Could not create the image session. The specified image is not in a valid state. - CDISMManager::CreateImageSession(hr:0xc1510114)2009-10-22 08:44:05, Error DISM DISM.EXE: Could not load the image session. HRESULT=C15101142009-10-22 08:44:05, Info DISM DISM.EXE: Image session has been closed. Reboot required=no.2009-10-22 08:44:05, Info DISM DISM.EXE: 2009-10-22 08:44:05, Info DISM DISM.EXE: <----- Ending Dism.exe session ----->2009-10-22 08:44:05, Info DISM DISM.EXE: 2009-10-22 08:44:05, Info DISM DISM Image Session: PID=4616 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect2009-10-22 08:44:05, Info DISM DISM Provider Store: PID=4616 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider2009-10-22 08:44:05, Info DISM DISM Provider Store: PID=4616 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider2009-10-22 08:44:05, Info DISM DISM Provider Store: PID=4616 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect2009-10-22 08:44:05, Info DISM DISM Provider Store: PID=4616 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider2009-10-22 08:44:05, Info DISM DISM Provider Store: PID=4616 Releasing the local reference to DISMLogger. Stop logging. - CDISMProviderStore::Internal_DisconnectProviderCan someone help me with this error?Greetz Jelmer.(Sorry for bad english, i'm dutch )
October 23, 200915 yr Hi All,I have tried to integrade my Windows 7 Product Key in my Installation with the cmd command:@echo offrem The /Set-ProductKey option can be used to enter the product key for the current edition in an offline Windows image.DISM.exe /image:F:\7WORK\MOUNT /Set-ProductKey:MyProductKeypauseWhen i did this i get an error.DISM Log:Can someone help me with this error?Greetz Jelmer.(Sorry for bad english, i'm dutch )Just try this out. This is GUI version for DISM tool.DISMTOOL.7z
October 23, 200915 yr I think your problem is the path to the mount dir (it needs a backslash "\" on the end of the path)dism /image:F:\7WORK\MOUNT\ /Set-ProductKey:XXXXX-XXXXX-XXXXX-etc
October 24, 200915 yr Author I think your problem is the path to the mount dir (it needs a backslash "\" on the end of the path)dism /image:F:\7WORK\MOUNT\ /Set-ProductKey:XXXXX-XXXXX-XXXXX-etcHmm, it doesn't work..
October 24, 200915 yr Done did not spot thatBTW that was a illegal key so I will no longer help in this topic
October 29, 200915 yr Try this:Create a new folder give it a name like 7Work.Inside this folder create a folder called "Mount".Also create folder called "DVD", extract win7 image in here.And then a script like this should do the job:@echo Offrem ##################################################rem # Configure Paths Here #rem ##################################################set DRIVE=D:set WORKDIR=7Workrem ################################################## rem # DONT TOUCH THE NEXT !!!! #rem ################################################## set WIM=%DRIVE%\%WORKDIR%\Mountset WD=%DRIVE%\%WORKDIR%\DVDEcho Give in the version you want to edit , Make the good choice !!! :Echo 1 - Starter x86 HOMEBASIC x64 or Entreprise ISOEcho 2 - HOMEBASIC x86 or HOMEPREMIUM x64Echo 3 - HOMEPREMIUM x86 or Professional x64Echo 4 - Professional x86 or Ultimate x64Echo 5 - Ultimate x86Set /p EDITION=Number: Echo.cd\%WORKDIR%echo OK ...pauseecho =====================================echo Mount "install.wim"echo =====================================echo.echo Mount "install.wim" to "%WIM%"...DISM.EXE /Mount-Wim /WimFile:%WD%\sources\install.wim /index:%EDITION% /MountDir:%WIM%Pauserem ################################################## rem # PUT YOUR PRODUCTKEY AT XXXXX-etc !!!! #rem ################################################## echo Set ProductkeyDISM.EXE /Image:"%WIM%" /Set-ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxxecho Save changes and Unmount "install.wim" ...DISM.EXE /Unmount-Wim /MountDir:%WIM% /commitecho Done ...Pause(DISM.EXE /Image:"%WIM%" /Set-ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx, xxxxx must be changed to your productkey).Then just save it to SetProductkey.BAT and put it in %WORKDIR% (DRIVE\7Work).And then ofc run the .BAT Edited October 29, 200915 yr by Raoul
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now