Not able to take my windows server 2016 to windows server 2022.

Slasherr00

Member
Joined
Apr 21, 2025
Posts
79
Hello Maxstar, as mentioned:

Error:

2025-06-23 15:25:08, Warning DISM DISM Driver Manager: PID=2448 TID=1960 Failed to find the INF package in the driver store (hr = 0x80070490); falling back to INF file name - CDriverPackage::InitPublishedInfName
2025-06-23 15:25:08, Info DISM DISM Driver Manager: PID=2448 TID=1960 Signature status of driver C:\Windows\System32\DriverStore\FileRepository\ntprint.inf_x86_f561166f1c2d72b3\ntprint.inf is: SIGNED - CDriverPackage::InitSignatureStatus
2025-06-23 15:25:08, Info DISM API: PID=6852 TID=980 Found flag telling us to force unsigned driver. - CAddDriverCommandObject::CheckClientAddDriverScenarios
2025-06-23 15:25:08, Info DISM API: PID=6852 TID=980 Found Flag telling us not to reflect the driver payload. Install flags: 0x00000001 - CAddDriverCommandObject::AddDriverPackage
2025-06-23 15:25:08, Info DISM API: PID=6852 TID=980 Found Flag telling us hardlink the driver payload. Install flags: 0x00000003 - CAddDriverCommandObject::AddDriverPackage
2025-06-23 15:25:08, Error DISM DISM Driver Manager: PID=2448 TID=1960 Failed to import driver package 'C:\Windows\System32\DriverStore\FileRepository\ntprint.inf_x86_f561166f1c2d72b3\ntprint.inf'. - CDmiDriverStore::Import(hr:0x80070002)
2025-06-23 15:25:08, Error DISM DISM Driver Manager: PID=2448 TID=1960 Failed to install the driver package 'C:\Windows\System32\DriverStore\FileRepository\ntprint.inf_x86_f561166f1c2d72b3\ntprint.inf'. - CDriverPackage::InternalInstall(hr:0x80070002)
2025-06-23 15:25:08, Error DISM DISM Driver Manager: PID=2448 TID=1960 onecore\base\ntsetup\opktools\dism\providers\dmiprovider\dll\driverpackage.cpp:383 - CDriverPackage::InstallEx2(hr:0x80070002)
2025-06-23 15:25:08, Error DISM API: PID=6852 TID=980 Driver package C:\Windows\System32\DriverStore\FileRepository\ntprint.inf_x86_f561166f1c2d72b3\ntprint.inf failed to install. (hr:0x80070002) - CAddDriverCommandObject::AddDriverPackage(hr:0x80070002)
2025-06-23 15:25:08, Error DISM API: PID=6852 TID=980 onecore\base\ntsetup\opktools\dism\api\lib\dmicommandobjects.cpp:170 - CAddDriverCommandObject::InternalExecute(hr:0x80070002)
2025-06-23 15:25:08, Error DISM API: PID=6852 TID=980 InternalExecute failed - CBaseCommandObject::Execute(hr:0x80070002)
2025-06-23 15:25:08, Error DISM API: PID=6852 TID=4880 CAddDriverCommandObject failed - DismAddDriverInternal(hr:0x80070002)
2025-06-23 15:25:08, Error SP DRVMIG: Failed to inject driver package in the new OS: C:\Windows\System32\DriverStore\FileRepository\ntprint.inf_x86_f561166f1c2d72b3\ntprint.inf. Error: 0x80070002[gle=0x0000007a]
2025-06-23 15:25:08, Info SP Ignoring error due to operation configuration.
2025-06-23 15:25:08, Info SP Injecting driver package into the new OS: C:\Windows\System32\DriverStore\FileRepository\pvscsi.inf_amd64_3d17c56f6662c386\pvscsi.inf
2025-06-23 15:25:08, Info SP Hardlinking payload

I have collected the Setupdiag logs, I will be attaching the Setupapi.dev
 

Attachments

Hi @Slasherr00,

Welcome to Sysnative Forums!

If you haven't already, please review the posting instructions here, and attach the requested log files. Without log files, our helpers will not be able to assist, and this will slow down fixing your machine.

If logs have been already been provided, our team of volunteers will analyse the provided log files to build a fix for your system. Please be aware that this may take several days from your initial post, due to the high volume of threads that we receive.


- Sysnative Windows Update Team
 
Hi,

Thanks for starting a new thread because we don't provide help in PMs: Private Messaging and Support

And please do the following first.

Upload a copy of the CBS folder
  • Open Windows Explorer and browse to the C:\Windows\Logs folder.
  • Right-click on the CBS folder and choose Send to > Compressed (zipped) folder.
  • Now the message will appear, "Windows cannot create the Compressed (zipped) Folder here. Do you want it to be placed on the desktop instead?"
  • Click on the Yes button here.
653a64385d891-618e949e09fef-CBS-Folder.png

  • Attach the file CBS.zip to your next reply. If the file is too large to attach, upload the CBS.zip file to www.wetransfer.com and post the link in your next reply.

Upload the setupapi.dev.log file
  • Open Windows Explorer and browse to the C:\Windows\INF folder.
  • Right-click on the file setupapi.dev.log and choose Send to > Compressed (zipped) folder.
  • Now the message will appear, "Windows cannot create the Compressed (zipped) Folder here. Do you want it to be placed on the desktop instead?"
  • Click on the Yes button here.
657716925b62b-setup-api-dev-folder.png

  • Attach the file setupapi.dev.zip in your next reply.
 
Please run the following DISM command first and post the result. If it fails attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 
Hi,

Please check the size of the following directory;
Code:
Error                 MIG            Error 2147942512 while gathering object C:\ProgramData\Microsoft\Crypto\Keys

And are IIS en SQL installed on this server?
 
Hello,

I checked that directory before and cleared the unwanted files but it would still fail with the same error

And let me check if IIS AND SQL are installed
 
The list of features which are enabled on the machine:

======================================
20250624 09:18:07.092 : dism /english /online /Get-Features /Format:Table
======================================

Deployment Image Servicing and Management tool
Version: 10.0.14393.4169

Image Version: 10.0.14393.7426

Features listing for package : Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~10.0.14393.0


----------------------------------------------------------- | -----------------------------
Feature Name | State
----------------------------------------------------------- | -----------------------------
NetFx4ServerFeatures | Enabled
NetFx4 | Enabled
NetFx4Extended-ASPNET45 | Disabled
MicrosoftWindowsPowerShellRoot | Enabled
MicrosoftWindowsPowerShell | Enabled
iSCSITargetServer-PowerShell | Disabled
PKIClient-PSH-Cmdlets | Disabled
KeyDistributionService-PSH-Cmdlets | Enabled
TlsSessionTicketKey-PSH-Cmdlets | Enabled
Tpm-PSH-Cmdlets | Enabled
MicrosoftWindowsPowerShellV2 | Enabled
WindowsPowerShellWebAccess | Disabled
DataCenterBridging-LLDP-Tools | Disabled
Server-Psh-Cmdlets | Enabled
MicrosoftWindowsPowerShellISE | Enabled
RemoteAccessMgmtTools | Disabled
RemoteAccessPowerShell | Disabled
RasServerAdminTools | Disabled
DamgmtTools | Disabled
WSS-Product-Package | Disabled
ActiveDirectory-PowerShell | Disabled
DirectoryServices-DomainController | Disabled
DirectoryServices-ISM-Smtp | Disabled
HostGuardianService-Package | Disabled
DirectoryServices-AdministrativeCenter | Disabled
RemoteAccess | Disabled
RemoteAccessServer | Disabled
RasRoutingProtocols | Disabled
Web-Application-Proxy | Disabled
RightsManagementServices-Role | Disabled
RightsManagementServices | Disabled
RMS-Federation | Disabled
RightsManagementServices-AdminTools | Disabled
IIS-WebServerRole | Disabled
IIS-WebServer | Disabled
IIS-CommonHttpFeatures | Disabled
IIS-Security | Disabled
IIS-RequestFiltering | Disabled
IIS-StaticContent | Disabled
IIS-DefaultDocument | Disabled
IIS-DirectoryBrowsing | Disabled
IIS-HttpErrors | Disabled
IIS-HttpRedirect | Disabled
IIS-WebDAV | Disabled
IIS-ApplicationDevelopment | Disabled
IIS-WebSockets | Disabled
IIS-ApplicationInit | Disabled
IIS-NetFxExtensibility | Disabled
IIS-NetFxExtensibility45 | Disabled
IIS-ISAPIExtensions | Disabled
IIS-ISAPIFilter | Disabled
IIS-ASPNET | Disabled
IIS-ASPNET45 | Disabled
IIS-ASP | Disabled
IIS-CGI | Disabled
IIS-ServerSideIncludes | Disabled
IIS-HealthAndDiagnostics | Disabled
IIS-HttpLogging | Disabled
IIS-LoggingLibraries | Disabled
IIS-RequestMonitor | Disabled
IIS-HttpTracing | Disabled
IIS-CustomLogging | Disabled
IIS-ODBCLogging | Disabled
IIS-CertProvider | Disabled
IIS-BasicAuthentication | Disabled
IIS-WindowsAuthentication | Disabled
IIS-DigestAuthentication | Disabled
IIS-ClientCertificateMappingAuthentication | Disabled
IIS-IISCertificateMappingAuthentication | Disabled
IIS-URLAuthorization | Disabled
IIS-IPSecurity | Disabled
IIS-Performance | Disabled
IIS-HttpCompressionStatic | Disabled
IIS-HttpCompressionDynamic | Disabled
IIS-WebServerManagementTools | Disabled
IIS-ManagementConsole | Disabled
IIS-LegacySnapIn | Disabled
IIS-ManagementScriptingTools | Disabled
IIS-ManagementService | Disabled
IIS-IIS6ManagementCompatibility | Disabled
IIS-Metabase | Disabled
IIS-WMICompatibility | Disabled
IIS-LegacyScripts | Disabled
IIS-FTPServer | Disabled
IIS-FTPSvc | Disabled
IIS-FTPExtensibility | Disabled
WAS-WindowsActivationService | Disabled
WAS-ProcessModel | Disabled
WAS-NetFxEnvironment | Disabled
WAS-ConfigurationAPI | Disabled
IIS-HostableWebCore | Disabled
MSMQ | Disabled
MSMQ-Services | Disabled
MSMQ-Server | Disabled
MSMQ-Triggers | Disabled
MSMQ-ADIntegration | Disabled
MSMQ-HTTP | Disabled
MSMQ-Multicast | Disabled
MSMQ-DCOMProxy | Disabled
MSMQ-RoutingServer | Disabled
WCF-Services45 | Enabled
WCF-HTTP-Activation45 | Disabled
WCF-TCP-Activation45 | Disabled
WCF-Pipe-Activation45 | Disabled
WCF-MSMQ-Activation45 | Disabled
WCF-TCP-PortSharing45 | Enabled
IdentityServer-SecurityTokenService | Disabled
ManagementOdata | Disabled
DSC-Service | Disabled
ADCertificateServicesRole | Disabled
CertificateServices | Disabled
OnlineRevocationServices | Disabled
WebEnrollmentServices | Disabled
NetworkDeviceEnrollmentServices | Disabled
CertificateEnrollmentPolicyServer | Disabled
CertificateEnrollmentServer | Disabled
IPAMServerFeature | Disabled
DeviceHealthAttestationService | Disabled
BITSExtensions-AdminPack | Disabled
Gateway-UI | Disabled
BITSExtensions-Upload | Disabled
WCF-HTTP-Activation | Disabled
WCF-NonHTTP-Activation | Disabled
Smtpsvc-Admin-Update-Name | Disabled
Smtpsvc-Service-Update-Name | Disabled
WebAccess | Disabled
Microsoft-Windows-Web-Services-for-Management-IIS-Extension | Disabled
BusScan-ScanServer | Disabled
Printing-InternetPrinting-Server | Disabled
RPC-HTTP_Proxy | Disabled
Gateway | Disabled
UpdateServices | Disabled
UpdateServices-Services | Disabled
UpdateServices-Database | Disabled
UpdateServices-WidDatabase | Disabled
WorkFolders-Server | Disabled
FSRM-Infrastructure | Disabled
Microsoft-Windows-FCI-Client-Package | Disabled
UpdateServices-RSAT | Disabled
UpdateServices-API | Disabled
UpdateServices-UI | Disabled
FSRM-Infrastructure-Services | Disabled
DirectoryServices-ADAM | Disabled
IPAMClientFeature | Disabled
Microsoft-Windows-ServerEssentials-ServerSetup | Disabled
AuthManager | Disabled
ServerCore-WOW64 | Enabled
Printing-Server-Foundation-Features | Disabled
Printing-Server-Role | Disabled
Printing-LPDPrintService | Disabled
Printing-Client | Enabled
Printing-Client-Gui | Enabled
ServerCore-EA-IME-WOW64 | Enabled
NetFx3ServerFeatures | Enabled
NetFx3 | Enabled
Server-Shell | Enabled
Internet-Explorer-Optional-amd64 | Enabled
Server-Gui-Mgmt | Enabled
Server-Gui-Mgmt_onecore | Disabled
RSAT | Enabled
Storage-Replica-AdminPack | Disabled
Server-Manager-RSAT-File-Services | Disabled
Server-RSAT-SNMP | Disabled
DNS-Server-Tools | Disabled
WINS-Server-Tools | Disabled
DfsMgmt | Disabled
ADCertificateServicesManagementTools | Disabled
CertificateServicesManagementTools | Disabled
OnlineRevocationServicesManagementTools | Disabled
RSAT-AD-Tools-Feature | Disabled
RSAT-ADDS-Tools-Feature | Disabled
DirectoryServices-DomainController-Tools | Disabled
DirectoryServices-ADAM-Tools | Disabled
BitLocker-RemoteAdminTool | Disabled
BdeAducExtTool | Disabled
NPSMMC | Disabled
Licensing-UI | Disabled
Licensing-Diagnosis-UI | Disabled
Microsoft-Windows-Deployment-Services-Admin-Pack | Disabled
DHCPServer-Tools | Disabled
FailoverCluster-Mgmt | Disabled
NetworkLoadBalancingManagementClient | Disabled
NFS-Administration | Disabled
WindowsServerBackupSnapin | Enabled
FaxServiceConfigRole | Disabled
NPSManagementTools | Disabled
RightsManagementServicesManagementTools | Disabled
Security-SPP-Vmw | Disabled
FSRM-Management | Disabled
Windows-Defender-Gui | Disabled with Payload Removed
Microsoft-Hyper-V | Disabled
Microsoft-Hyper-V-Offline | Disabled
Microsoft-Hyper-V-Online | Disabled
RSAT-Hyper-V-Tools-Feature | Disabled
Microsoft-Hyper-V-Management-Clients | Disabled
Microsoft-Hyper-V-Management-PowerShell | Disabled
VmHostAgent | Disabled
AppServer | Disabled
Microsoft-Windows-Deployment-Services | Disabled
Microsoft-Windows-Deployment-Services-Deployment-Server | Disabled
Microsoft-Windows-Deployment-Services-Transport-Server | Disabled
BitLocker | Disabled
Bitlocker-Utilities | Disabled
ShieldedVMToolsAdminPack | Disabled
BitLocker-NetworkUnlock | Disabled
SearchEngine-Server-Package | Disabled
File-Services-Search-Service | Disabled
FaxServiceRole | Disabled
NPAS-Role | Disabled
OEM-Appliance-OOBE | Disabled
ServerMediaFoundation | Disabled
MediaPlayback | Enabled
WindowsMediaPlayer | Enabled
WebDAV-Redirector | Disabled
LegacyComponents | Disabled
DirectPlay | Disabled
Printing-LPRPortMonitor | Disabled
Printing-InternetPrinting-Client | Disabled
Printing-AdminTools-Collection | Disabled
Windows-Identity-Foundation | Disabled
Microsoft-Hyper-V-Common-Drivers-Package | Enabled
Microsoft-Hyper-V-Guest-Integration-Drivers-Package | Enabled
Microsoft-Windows-NetFx-VCRedist-Package | Enabled
Microsoft-Windows-Printing-PrintToPDFServices-Package | Enabled
Microsoft-Windows-Printing-XPSServices-Package | Enabled
Microsoft-Windows-Client-EmbeddedExp-Package | Enabled
Printing-PrintToPDFServices-Features | Enabled
Printing-XPSServices-Features | Enabled
MSRDC-Infrastructure | Disabled
TelnetClient | Disabled
TFTP | Disabled
TIFFIFilter | Disabled
SMB1Protocol | Disabled
MultiPoint-Connector | Disabled
MultiPoint-Connector-Services | Disabled
MultiPoint-Tools | Disabled
ServerManager-Core-RSAT | Disabled
ServerManager-Core-RSAT-Role-Tools | Disabled
ServerManager-Core-RSAT-Feature-Tools | Disabled
FailoverCluster-AdminPak | Disabled
FailoverCluster-PowerShell | Disabled
HardenedFabricEncryptionTask | Disabled
ServicesForNFS-ServerAndClient | Disabled
ServerForNFS-Infrastructure | Disabled
ClientForNFS-Infrastructure | Disabled
SimpleTCP | Disabled
SmbDirect | Enabled
Windows-Defender-Features | Disabled with Payload Removed
Windows-Defender | Disabled with Payload Removed
EnhancedStorage | Disabled
Microsoft-Windows-GroupPolicy-ServerAdminTools-Update | Disabled
RSAT-RDS-Tools-Feature | Disabled
BiometricFramework | Disabled
WindowsServerBackup | Disabled
DFSR-Infrastructure-ServerEdition | Disabled
DNS-Server-Full-Role | Disabled
Windows-Internal-Database | Disabled
iSCSITargetStorageProviders | Disabled
BITS | Disabled
LightweightServer | Disabled
MultipathIo | Disabled
NetworkLoadBalancingFullServer | Disabled
Containers | Disabled
PeerDist | Disabled
RemoteAssistance | Disabled
ServerCore-EA-IME | Enabled
DataCenterBridging | Disabled
DiskIo-QoS | Disabled
Server-Drivers-General | Enabled
Server-Drivers-Printers | Enabled
SNMP | Disabled
WMISnmpProvider | Disabled
WindowsStorageManagementService | Disabled
Remote-Desktop-Services | Disabled
SessionDirectory | Disabled
SBMgr-UI | Disabled
VolumeActivation-Full-Role | Disabled
WirelessNetworking | Disabled
Xps-Foundation-Xps-Viewer | Disabled
SMBBW | Disabled
SetupAndBootEventCollection | Disabled
RasCMAK | Disabled
DFSN-Server | Disabled
DHCPServer | Disabled
FailoverCluster-AutomationServer | Disabled
FailoverCluster-CmdInterface | Disabled
FRS-Infrastructure | Disabled
FileServerVSSAgent | Disabled
WINSRuntime | Disabled
iSCSITargetServer | Disabled
iSNS_Service | Disabled
P2P-PnrpOnly | Disabled
QWAVE | Disabled
ServerMigration | Disabled
SMBHashGeneration | Disabled
Licensing | Disabled
FailoverCluster-FullServer | Disabled
CCFFilter | Disabled
Dedup-Core | Disabled
MultiPoint-Role | Disabled
ResumeKeyFilter | Disabled
SmbWitness | Disabled
FabricShieldedTools | Disabled
RasRip | Disabled
SearchEngine-Client-Package | Enabled
Client-DeviceLockdown | Disabled
Client-EmbeddedShellLauncher | Disabled
Client-EmbeddedBootExp | Disabled
Client-EmbeddedLogon | Disabled
Client-KeyboardFilter | Disabled
Client-UnifiedWriteFilter | Disabled
FileAndStorage-Services | Enabled
Storage-Services | Enabled
File-Services | Enabled
CoreFileServer | Enabled
ServerCore-Drivers-General | Enabled
ServerCore-Drivers-General-WOW64 | Enabled

The operation completed successfully.
 
Enabled status:

  • NetFx4ServerFeatures
  • NetFx4
  • MicrosoftWindowsPowerShellRoot
  • MicrosoftWindowsPowerShell
  • KeyDistributionService-PSH-Cmdlets
  • TlsSessionTicketKey-PSH-Cmdlets
  • Tpm-PSH-Cmdlets
  • MicrosoftWindowsPowerShellV2
  • Server-Psh-Cmdlets
  • MicrosoftWindowsPowerShellISE
  • WCF-Services45
  • WCF-TCP-PortSharing45
  • ServerCore-WOW64
  • Printing-Client
  • Printing-Client-Gui
  • ServerCore-EA-IME-WOW64
  • NetFx3ServerFeatures
  • NetFx3
  • Server-Shell
  • Internet-Explorer-Optional-amd64
  • Server-Gui-Mgmt
  • RSAT
  • WindowsServerBackupSnapin
  • MediaPlayback
  • WindowsMediaPlayer
  • Microsoft-Hyper-V-Common-Drivers-Package
  • Microsoft-Hyper-V-Guest-Integration-Drivers-Package
  • Microsoft-Windows-NetFx-VCRedist-Package
  • Microsoft-Windows-Printing-PrintToPDFServices-Package
  • Microsoft-Windows-Printing-XPSServices-Package
  • Microsoft-Windows-Client-EmbeddedExp-Package
  • Printing-PrintToPDFServices-Features
  • Printing-XPSServices-Features
  • SmbDirect
  • SearchEngine-Client-Package
  • FileAndStorage-Services
  • Storage-Services
  • File-Services
  • CoreFileServer
  • ServerCore-Drivers-General
  • ServerCore-Drivers-General-WOW64
 
Okay, but what is the size of the following directory, and how many free space is avalaible.

Rich (BB code):
Error MIG Error 2147942512 while gathering object C:\ProgramData\Microsoft\Crypto\Keys

Rich (BB code):
# as an HRESULT: Severity: FAILURE (1), FACILITY_WIN32 (0x7), Code 0x70
# for decimal 112 / hex 0x70
  ERROR_DISK_FULL                                                winerror.h
# There is not enough space on the disk.
# 2 matches found for "2147942512"
 
how many free space is available: 50+ GB's are available at the moment.

what is the size of the following directory: Let me check that actually.
 
DriveLetter FileSystemLabel FileSystem DriveType HealthStatus OperationalStatus SizeRemaining Size
----------- --------------- ---------- --------- ------------ ----------------- ------------- ----
E CyberShare NTFS Fixed Healthy OK 32.57 GB 39.87 GB

D SSS_X64FREV_EN-US_DV9 UDF CD-ROM Healthy OK 0 B 5.47 GB

System Reserved NTFS Fixed Healthy OK 160.68 MB 500 MB

C NTFS Fixed Healthy OK 58.78 GB 199.51 GB
 
I expected that this folder would be very big in size on disk, and that's why the system is running out of free space during the migration process.

So you have a few options.
- Increasing the VHD image for this VM with at least another 50GB.
- Run the following command: DISM /online /cleanup-image /AnalyzeComponentStore to see if you can cleanup the components store / reclaimable packages.
 
Yes, indeed - It has crossed 20GB+ at the moment.

So I believe, deleting the Keys folder will not be recommended.

I will go ahead and add more Space to the server right now.


Also, I will run this command in meanwhile, DISM /online /cleanup-image /AnalyzeComponentStore
 
So I believe, deleting the Keys folder will not be recommended.
No that will definitively break the system functionalities like RDP / Active Directory etc....

Yes, adding more space to the image would be the safest way to resolve this issue, and to be safe I would resize the image of this VM to 350 GB if possible.
 
No that will definitively break the system functionalities like RDP / Active Directory etc....

Yes, adding more space to the image would be the safest way to resolve this issue, and to be safe I would resize the image of this VM to 350 GB if possible.

Absolutely, I will go ahead and add more 100GBs to the C drive to be on more safe side.

That would make the free space around 167 GB's free on the C drive.

Post that I will run the upgrade to windows server 2022.
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top