Unfortunately, it does not appear to work in it's current implementation. Tested in WinPE 5 and 10. It appears that it is not an incompatibility with PowerShell 5, but rather a DLL that is trying to dynamically link to a library that is not included in WinPE.
If anyone happens to get this working, please let me know. I'm currently upgrading a bunch of our old imaging scripts from HTA+VBscript to PowerShell and would love to use this module in a PE environment to configure the BIOS and enable the TPM fo BitLocker pre-provisioning.
I followed the documentation to get the PowerShell provider working on WinPE. After loading the module and getting child items of DellSMBIOS:\SystemInformation I get the following stack trace.
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Dll_CLI.BIOSWrapper.GetCurrentValue(String category, String att, String& c urrentValue) at Dell.Smbios.PowerShell.Providers.DellBIOSProvider.ConstructAttributeObject (String categoryName, ConfigDataConfigDataEntryFormSetFormConfigItem cfgitem) at Dell.Smbios.PowerShell.Providers.DellBIOSProvider.GetChildItems(String pat h, Boolean recurse) at System.Management.Automation.SessionStateInternal.GetChildItems(CmdletProv ider providerInstance, String path, Boolean recurse, CmdletProviderContext conte xt) at System.Management.Automation.SessionStateInternal.GetChildItems(String pat h, Boolean recurse, CmdletProviderContext context) at Microsoft.PowerShell.Commands.GetChildItemCommand.ProcessRecord() at System.Management.Automation.Cmdlet.DoProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.PipelineProcessor.Inject(Object inpu t, Boolean enumerate) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecute Enumerate(Object input, Hashtable errorResults, Boolean enumerate) at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Bool ean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pip eElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcCo ntext) at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(Inter pretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.R un(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.R un(InterpretedFrame frame) at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess) at System.Management.Automation.DlrScriptCommandProcessor.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(Com mandProcessorBase commandRequestingUpstreamCommandsToStop) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecute Enumerate(Object input, Hashtable errorResults, Boolean enumerate) at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionCo ntext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C ontextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C ontextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
Thank you very much for looking into this for me. I've been able to poll other areas of the SMBios provider, such as the TPM information. So far, this is the only error I have run into, although I'm in the early stages of implementing the PowerShell Provider in our workflow. Here is the output of the two commands you asked me to run;
PS DellSmbios:\> Get-ChildItem DellSMBIOS:\SystemInformation\OwnershipTag -verbo se VERBOSE: Performing operation Get-Item on target DellBIOS:\SystemInformation\OwnershipTag
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Dll_CLI.BIOSWrapper.GetCurrentValue(String category, String att, String& c urrentValue) at Dell.Smbios.PowerShell.Providers.DellBIOSProvider.ConstructAttributeObject (String categoryName, ConfigDataConfigDataEntryFormSetFormConfigItem cfgitem) at Dell.Smbios.PowerShell.Providers.DellBIOSProvider.GetItem(String path) at System.Management.Automation.SessionStateInternal.GetItemPrivate(CmdletPro vider providerInstance, String path, CmdletProviderContext context) at System.Management.Automation.SessionStateInternal.GetChildItems(String pat h, Boolean recurse, CmdletProviderContext context) at Microsoft.PowerShell.Commands.GetChildItemCommand.ProcessRecord() at System.Management.Automation.Cmdlet.DoProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord() at System.Management.Automation.CommandProcessorBase.DoExecute() at System.Management.Automation.Internal.PipelineProcessor.Inject(Object inpu t, Boolean enumerate) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecute Enumerate(Object input, Hashtable errorResults, Boolean enumerate) at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Bool ean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pip eElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcCo ntext) at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(Inter pretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.R un(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.R un(InterpretedFrame frame) at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess) at System.Management.Automation.DlrScriptCommandProcessor.Complete() at System.Management.Automation.CommandProcessorBase.DoComplete() at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(Com mandProcessorBase commandRequestingUpstreamCommandsToStop) at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecute Enumerate(Object input, Hashtable errorResults, Boolean enumerate) at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() at System.Management.Automation.Runspaces.PipelineThread.WorkerProc() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionCo ntext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C ontextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C ontextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
DELL-Vibha G
1 Rookie
•
38 Posts
2648
0
Posted September 8th, 2015 00:00
This is work in progress. Cannot say at the moment if WinPE support will be part of the next release.
Thanks
Vibha