question

Jerry-2528 avatar image
0 Votes"
Jerry-2528 asked Jerry-2528 commented

DISM hangs on... didn't finish command

Hello,
I have Windows 2019 Server Standard Evaluation. I would like to convert system to Windows Server DataCenter.
When I use: Slmgr /dli see "...Timebased activation expiration: 87798 minute(s) (61 day(s))
but... DISM /online... with all parameters :( ... not finished-hung
This is not Domain Controler. Server have Hyper-V and working vm.
Server is configured with NIC-Team.

Command:
DISM / online / Get-CurrentEdition
DISM / online / Get-TargetEditions
hangs on
Current version is



Editions that can be upgraded to:



and... nothing next


Any idea?
Thank and best regards
Jerry

windows-server-2019
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MotoX80 avatar image
0 Votes"
MotoX80 answered Jerry-2528 commented

DISM / online / Get-CurrentVersion
DISM / online / Get-TargetVersions

I believe that the commands that you want are:

 DISM /online /Get-CurrentEdition
 DISM /online /Get-TargetEditions


https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-windows-edition-servicing-command-line-options?view=windows-11

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

but When I run:
DISM / online / Get-CurrentVersion
DISM / online / Get-TargetVersions
are not working...
commands hang, without result. I mean don't finished. Just like in the picture:

0 Votes 0 ·
Jerry-2528 avatar image
0 Votes"
Jerry-2528 answered Jerry-2528 commented

202356-dism-online.jpg



dism-online.jpg (31.8 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Do basic performance problem determination. In task manager, does the system have sufficient free cpu/memory/disk? Ie: do you have a runaway process this is impacting performance? In the details tab, what is the most active process? Is that normal activity? When was the last time that you rebooted this machine? Reboot it and see if the problem goes away. What about other machines? Do those commands work on the other machines?

Do other dism commands hang?

 Dism.exe /Online /Cleanup-Image /CheckHealth
 Dism.exe /Online /Cleanup-Image /ScanHealth



0 Votes 0 ·

Basic performance is ok.
In task manager - cpu/memory/disk, no problem, there are large capacity inventories.

"When was the last time that you rebooted this machine?"
Mayby this is good way... Up time 90:04:31:35

What about other machines?
On another virtual server (on local Hyper-V this physical server, DISM working correct. Virtual server has Evaluation edition too) DISM workig without problems.

Dism.exe /Online /Cleanup-Image /CheckHealth
Dism.exe /Online /Cleanup-Image /ScanHealth
others commands hang too :(

0 Votes 0 ·

I would think that a reboot would be the most obvious next step to take.

0 Votes 0 ·
Show more comments
Jerry-2528 avatar image
0 Votes"
Jerry-2528 answered

I'm sorry. Obvious mistake. When i write commands:
DISM / online / Get-CurrentEdition
DISM / online / Get-TargetEditions

Commands do not return a result. They hang.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Docs-4663 avatar image
0 Votes"
Docs-4663 answered

From what you've posted it appears that they would display error 87 due to spacing.

For the command there should be a space before / and no space after /


Try the spacing as in these commands:

Microsoft Windows [Version 10.0.19043.1706]
(c) Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32> DISM /online /Get-CurrentEdition

Deployment Image Servicing and Management tool
Version: 10.0.19041.844

Image Version: 10.0.19043.1706

Current edition is:

Current Edition : Professional

The operation completed successfully.

C:\WINDOWS\system32> DISM /online /Get-TargetEditions

Deployment Image Servicing and Management tool
Version: 10.0.19041.844

Image Version: 10.0.19043.1706

Editions that can be upgraded to:

Target Edition : ProfessionalEducation
Target Edition : ProfessionalWorkstation
Target Edition : Education
Target Edition : ProfessionalCountrySpecific
Target Edition : ProfessionalSingleLanguage
Target Edition : ServerRdsh
Target Edition : IoTEnterprise
Target Edition : Enterprise

The operation completed successfully.

C:\WINDOWS\system32>


.
.
.
.
.

Please remember to vote and to mark the replies as answers if they help.

On the bottom of each post there is:

Propose as answer = answered the question

On the left side of each post there is /\ with a number: click = a helpful post
.
.
.
.
.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jerry-2528 avatar image
0 Votes"
Jerry-2528 answered

I am typing the command correctly.
DISM /online /Get-CurrentEdition

and no result after (nothing! No number of error, information about log, only text as below):


Image Version: 10.0.17763.2628
Current edition is:



! photo above - part of blue window PowerShell

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Docs-4663 avatar image
0 Votes"
Docs-4663 answered Jerry-2528 commented

Please run administrative command prompt:


msdt.exe -id WindowsUpdateDiagnostic
sfc /scannow
dism /online /cleanup-image /scanhealth
dism /online /cleanup-image /restorehealth


For the WIndows troubleshooter click view detailed information > for any fix or fail to fix post images or share links into this thread


.
.
.
.
.

Please remember to vote and to mark the replies as answers if they help.

On the bottom of each post there is:

Propose as answer = answered the question

On the left side of each post there is /\ with a number: click = a helpful post
.
.
.
.
.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Dism with all parameters hung.

0 Votes 0 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered Jerry-2528 commented

Hi Jerry-2528,

You should be able to convert the evaluation version to the datacenter version. You hopefully don't need to run the command you mention.

Run this command:

DISM /online /Set-Edition: /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula

From Eval to Datacenter, use this command:

DISM /Online /Set-Edition:ServerDatacenter /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula

You’ll get a prompt to reboot the server during which the server will change its edition.

The server will run through the image-conversion process and then restart twice. After the server reboots, you’ll need to reactivate it and enter the key again.





--If the reply is helpful, please Upvote and Accept as answer--

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Now, when after reboot server, DISM working correctly, I can try :)
DISM /Online /Set-Edition:ServerDatacenter /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula

0 Votes 0 ·
Jerry-2528 avatar image
0 Votes"
Jerry-2528 answered

Very Thanks for all answers.
The solutions was... reboot server :O
Now, when I run:
DISM /online /Get-TargetEditions

My result:
Deployment Image Servicing and Management tool
Version: 10.0.17763.1697

Image Version: 10.0.17763.2628

Editions that can be upgraded to:

Target Edition : ServerStandard
Target Edition : ServerDatacenter

The operation completed successfully.

:)
Best regards

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.