Question [Résolu] Export-WindowsDriver sous Seven

Plus d'informations
il y a 7 ans 6 mois #27442 par viscuso
Réponse de viscuso sur le sujet Re:Export-WindowsDriver sous Seven
Sur cette page :

technet.microsoft.com/fr-fr/library/dn614084.aspx

docs.microsoft.com/en-us/powershell/modu...driver?view=win10-ps

On lit le chemin de la log :

[code:1]%WINDIR%\Logs\Dism\dism.log[/code:1]

J'ai trouvé ceci :

[code:1]
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4812 DismApi.dll: - DismInitializeInternal
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4812 DismApi.dll: <
Starting DismApi.dll session
> - DismInitializeInternal
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4812 DismApi.dll: - DismInitializeInternal
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4812 DismApi.dll: Version 6.3.9600.17029 - DismInitializeInternal
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4812 DismApi.dll: Parent process command line: \"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe\" - DismInitializeInternal
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4812 Enter DismInitializeInternal - DismInitializeInternal
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4812 Input parameters: LogLevel: 2, LogFilePath: C:\Windows\Logs\DISM\dism.log, ScratchDirectory: (null) - DismInitializeInternal
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4812 Initialized GlobalConfig - DismInitializeInternal
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4812 Initialized SessionTable - DismInitializeInternal
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4812 Lookup in table by path failed for: DummyPath-2BA51B78-C7F7-4910-B99D-BB7345357CDC - CTransactionalImageTable::LookupImagePath
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4812 Waiting for m_pInternalThread to start - CCommandThread::«»Start
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4596 Enter CCommandThread::CommandThreadProcedureStub - CCommandThread::CommandThreadProcedureStub
2018-09-01 05:38:05, Error DISM API: PID=4772 TID=4596 Failed to load dismcore.dll - CDismCore::Initialize(hr:0x8007007e)
2018-09-01 05:38:05, Info DISM API: PID=4772 TID=4596 Leave CCommandThread::CommandThreadProcedureStub - CCommandThread::CommandThreadProcedureStub
2018-09-01 05:38:05, Error DISM API: PID=4772 TID=4812 CommandThread exited while initializing - CCommandThread::WaitForStartup(hr:0x8007007e)
2018-09-01 05:38:05, Error DISM API: PID=4772 TID=4812 base\ntsetup\opktools\dism\api\lib\dismapiinternal.cpp:536 - CSessionTable::CreateSession(hr:0x8007007e)
2018-09-01 05:38:05, Error DISM API: PID=4772 TID=4812 Failed to create g_internalDismSession - DismInitializeInternal(hr:0x8007007e)
[/code:1]


Toutefois je ne comprends pas comment passer la log au niveau 4 :
    -LogLevel<LogLevel>

    Spécifie le niveau de sortie maximal affiché dans les journaux. Le niveau de journalisation par défaut est 3. Les valeurs acceptées sont les suivantes :1 = Erreurs uniquement2 = Erreurs et avertissements3 = Erreurs, avertissements et informations4 = Toutes les informations précitées et sorties de débogage
<br><br>Message édité par: kaleo, à: 25/08/18 22:39

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 7 ans 6 mois #27443 par viscuso
Réponse de viscuso sur le sujet Re:Export-WindowsDriver sous Seven
J'ai essayé avec une autre commande DISM (je ne sais pas si je l'ai correctement formulée).

docs.microsoft.com/en-us/powershell/modu...driver?view=win10-ps

J'obtiens un résultat similaire :

[code:1]
PS C:\Users\inlean\Desktop\powershell\Sources&gt; Get-WindowsDriver -Online -All -LogLevel WarningsInfo
Get-WindowsDriver : DismInitialize failed. Error code = 0x8007007e
At line:1 char:1
+ Get-WindowsDriver -Online -All -LogLevel WarningsInfo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:«») [Get-WindowsDriver], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.GetWindowsDriverCommand

PS C:\Users\inlean\Desktop\powershell\Sources&gt; .\Resolve-Error.ps1
PS C:\Users\inlean\Desktop\powershell\Sources&gt;
[/code:1]

La log me retourne ceci :

[code:1]
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=4320 DismApi.dll: - DismInitializeInternal
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=4320 DismApi.dll: &lt;
Starting DismApi.dll session
&gt; - DismInitializeInternal
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=4320 DismApi.dll: - DismInitializeInternal
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=4320 DismApi.dll: Version 6.3.9600.17029 - DismInitializeInternal
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=4320 DismApi.dll: Parent process command line: \&quot;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe\&quot; - DismInitializeInternal
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=4320 Enter DismInitializeInternal - DismInitializeInternal
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=4320 Input parameters: LogLevel: 2, LogFilePath: C:\Windows\Logs\DISM\dism.log, ScratchDirectory: (null) - DismInitializeInternal
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=4320 Initialized GlobalConfig - DismInitializeInternal
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=4320 Initialized SessionTable - DismInitializeInternal
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=4320 Lookup in table by path failed for: DummyPath-2BA51B78-C7F7-4910-B99D-BB7345357CDC - CTransactionalImageTable::LookupImagePath
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=4320 Waiting for m_pInternalThread to start - CCommandThread::«»Start
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=2500 Enter CCommandThread::CommandThreadProcedureStub - CCommandThread::CommandThreadProcedureStub
2018-09-01 11:05:17, Error DISM API: PID=2800 TID=2500 Failed to load dismcore.dll - CDismCore::Initialize(hr:0x8007007e)
2018-09-01 11:05:17, Info DISM API: PID=2800 TID=2500 Leave CCommandThread::CommandThreadProcedureStub - CCommandThread::CommandThreadProcedureStub
2018-09-01 11:05:17, Error DISM API: PID=2800 TID=4320 CommandThread exited while initializing - CCommandThread::WaitForStartup(hr:0x8007007e)
2018-09-01 11:05:17, Error DISM API: PID=2800 TID=4320 base\ntsetup\opktools\dism\api\lib\dismapiinternal.cpp:536 - CSessionTable::CreateSession(hr:0x8007007e)
2018-09-01 11:05:17, Error DISM API: PID=2800 TID=4320 Failed to create g_internalDismSession - DismInitializeInternal(hr:0x8007007e)
[/code:1]<br><br>Message édité par: kaleo, à: 25/08/18 22:38

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 7 ans 6 mois #27444 par Laurent Dardenne
Ton appel
[code:1]
.\Resolve-Error.ps1
[/code:1]
ne renvoie rien car le script doit contenir un définition de fonction.
Dans cas charge le script en dot source
[code:1]
. .\Resolve-Error.ps1
[/code:1]
Puis exécute la fonction :
[code:1]
Resolve-Error
[/code:1]

Tutoriels PowerShell

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 7 ans 6 mois #27445 par viscuso
Réponse de viscuso sur le sujet Re:Export-WindowsDriver sous Seven
J'ai ce retour :

[code:1]
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Windows\system32&gt; cd C:\Users\inlean\Desktop\powershell\Sources
PS C:\Users\inlean\Desktop\powershell\Sources&gt;
PS C:\Users\inlean\Desktop\powershell\Sources&gt; . .\Resolve-Error.ps1
PS C:\Users\inlean\Desktop\powershell\Sources&gt; Import-Module \&quot;C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.psd1\&quot;
PS C:\Users\inlean\Desktop\powershell\Sources&gt; Export-WindowsDriver -Destination \&quot;C:«»Drivers$((Get-WmiObject -Class win32_computersystem).Model)\&quot; -Online
Export-WindowsDriver : DismInitialize failed. Error code = 0x8007007e
At line:1 char:1
+ Export-WindowsDriver -Destination \&quot;C:«»Drivers$((Get-WmiObject -Class w ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:«») [Export-WindowsDriver], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.ExportWindowsDriverCommand
[/code:1]

[code:1]
PS C:\Users\inlean\Desktop\powershell\Sources&gt; Resolve-Error


PSMessageDetails :
Exception : System.Runtime.InteropServices.COMException (0x8007007E): DismInitialize failed. Error code = 0x8007007e
à System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
TargetObject :
CategoryInfo : NotSpecified: (:«») [Export-WindowsDriver], COMException
FullyQualifiedErrorId : Microsoft.Dism.Commands.ExportWindowsDriverCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at &lt;ScriptBlock&gt;, &lt;No file&gt;: line 1
PipelineIterationInfo : {}





MyCommand : Export-WindowsDriver
BoundParameters : {}
UnboundArguments : {}
ScriptLineNumber : 1
OffsetInLine : 1
HistoryId : 4
ScriptName :
Line : Export-WindowsDriver -Destination \&quot;C:«»Drivers$((Get-WmiObject -Class win32_computersystem).Model)\&quot; -Online
PositionMessage : At line:1 char:1
+ Export-WindowsDriver -Destination \&quot;C:«»Drivers$((Get-WmiObject -Class w ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PSScriptRoot :
PSCommandPath :
InvocationName : Export-WindowsDriver
PipelineLength : 0
PipelinePosition : 0
ExpectingInput : False
CommandOrigin : Internal
DisplayScriptPosition :



00000000000000000000000000000000000000000000000000000000000000000000000000000000


ErrorCode : -2147024770
Message : DismInitialize failed. Error code = 0x8007007e
Data : {}
InnerException :
TargetSite : Void ThrowTerminatingError(System.Management.Automation.ErrorRecord)
StackTrace : à System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
HelpLink :
Source : System.Management.Automation
HResult : -2147024770



PS C:\Users\inlean\Desktop\powershell\Sources&gt;
[/code:1]<br><br>Message édité par: kaleo, à: 26/08/18 16:47

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 7 ans 6 mois #27446 par viscuso
Réponse de viscuso sur le sujet Re:Export-WindowsDriver sous Seven
J'ai également tenté ces commandes :

[code:1]
PS C:\Users\inlean\Desktop\powershell\Sources&gt; Export-WindowsDriver -Destination \&quot;C:«»Drivers$((Get-WmiObject -Class win32_computersystem).Model)\&quot; -Online -Verbose
VERBOSE: Dism PowerShell Cmdlets Version 6.3.0.0
Export-WindowsDriver : DismInitialize failed. Error code = 0x8007007e
At line:1 char:1
+ Export-WindowsDriver -Destination \&quot;C:«»Drivers$((Get-WmiObject -Class w ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:«») [Export-WindowsDriver], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.ExportWindowsDriverCommand
[/code:1]

[code:1]
PS C:\Users\inlean\Desktop\powershell\Sources&gt; Export-WindowsDriver -Destination \&quot;C:«»Drivers$((Get-WmiObject -Class win32_computersystem).Model)\&quot; -Online -Debug
VERBOSE: Dism PowerShell Cmdlets Version 6.3.0.0

Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command Suspend [?] Help (default is \&quot;Y\&quot;«»): Y
Export-WindowsDriver : DismInitialize failed. Error code = 0x8007007e
At line:1 char:1
+ Export-WindowsDriver -Destination \&quot;C:«»Drivers$((Get-WmiObject -Class w ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:«») [Export-WindowsDriver], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.ExportWindowsDriverCommand
[/code:1]

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 7 ans 6 mois #27452 par Laurent Dardenne
Désolé je n'ai pas le temps d'approfondir en ce moment.
Le détail des erreurs ne donne pas plus d'information.
On trouve qq liens en recherchant sur le net \&quot;DismInitialize failed 0x8007007e\&quot;.
Il est parfois fait mention de prérequis absent, pour l'instant je ne peux pas plus.<br><br>Message édité par: Laurent Dardenne, à: 30/08/18 16:43

Tutoriels PowerShell

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.049 secondes
Propulsé par Kunena