如何使密码与dellbiosprovider一起使用?
我在powershell上有问题,而dellbiosprovider密码不起作用? 但是,当我输入数字密码时,它会毫无问题地通过。
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
[string]$pass2= 'K4P9R1'
$id = $pass2.ToUpper()
Set-Item –Path DellSmbios:\SystemConfiguration\IntegratedAudio "Disbled" -Verose -Password $id
Set-Item –Path DellSmbios:\SystemConfiguration\Microphone "Disabled" -Verbose -Password $id
Set-Item –Path DellSmbios:\SystemConfiguration\InternalSpeaker "Disabled" -Verbose -Password $id
exit 0
结果:
Set-Item : Incorrect password provided!
Au caractère Ligne:6 : 1
+ Set-Item –Path DellSmbios:\SystemConfiguration\InternalSpeaker "Disab ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (DellSmbios:\Sys...InternalSpeaker:String) [Set-Item], InvalidOperationException
+ FullyQualifiedErrorId : SMBIOSWriteFailed,Microsoft.PowerShell.Commands.SetItemCommand
但是有了大写字母,它行不通。 你能告诉我更多吗?
通过简化代码始终相同的错误。
PS C:\Users\Administrateur\Documents> $PSDefaultParameterValues['*:Encoding'] = 'utf8'
[string]$pass2= 'K4P9R1'
Set-Item –Path DellSmbios:\SystemConfiguration\IntegratedAudio "Disabled" -Verbose -Password $pass2
Set-Item –Path DellSmbios:\SystemConfiguration\Microphone "Disabled" -Verbose -Password $pass2
Set-Item –Path DellSmbios:\SystemConfiguration\InternalSpeaker "Disabled" -Verbose -Password $pass2
COMMENTAIRES : Performing the operation Set-Item on target "Name: DellSmbios:\SystemConfiguration\IntegratedAudio Value: Disabled".
COMMENTAIRES : Value being set using PLDM Interface
COMMENTAIRES : Password type 'Admin' (Setup) is set.
Set-Item : Incorrect password provided!
Au caractère Ligne:3 : 1
+ Set-Item –Path DellSmbios:\SystemConfiguration\IntegratedAudio "Disab ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (DellSmbios:\Sys...IntegratedAudio:String) [Set-Item], InvalidOperationException
+ FullyQualifiedErrorId : SMBIOSWriteFailed,Microsoft.PowerShell.Commands.SetItemCommand
谢谢
I have a problem on powershell with the DELLBiosProvider The password does not work?
But when I put a numeric password, it passes without problem.
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
[string]$pass2= 'K4P9R1'
$id = $pass2.ToUpper()
Set-Item –Path DellSmbios:\SystemConfiguration\IntegratedAudio "Disbled" -Verose -Password $id
Set-Item –Path DellSmbios:\SystemConfiguration\Microphone "Disabled" -Verbose -Password $id
Set-Item –Path DellSmbios:\SystemConfiguration\InternalSpeaker "Disabled" -Verbose -Password $id
exit 0
RESULT:
Set-Item : Incorrect password provided!
Au caractère Ligne:6 : 1
+ Set-Item –Path DellSmbios:\SystemConfiguration\InternalSpeaker "Disab ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (DellSmbios:\Sys...InternalSpeaker:String) [Set-Item], InvalidOperationException
+ FullyQualifiedErrorId : SMBIOSWriteFailed,Microsoft.PowerShell.Commands.SetItemCommand
But with capital letters, it does not work.
Can you tell me more.
By simplifying the code always the same error.
PS C:\Users\Administrateur\Documents> $PSDefaultParameterValues['*:Encoding'] = 'utf8'
[string]$pass2= 'K4P9R1'
Set-Item –Path DellSmbios:\SystemConfiguration\IntegratedAudio "Disabled" -Verbose -Password $pass2
Set-Item –Path DellSmbios:\SystemConfiguration\Microphone "Disabled" -Verbose -Password $pass2
Set-Item –Path DellSmbios:\SystemConfiguration\InternalSpeaker "Disabled" -Verbose -Password $pass2
COMMENTAIRES : Performing the operation Set-Item on target "Name: DellSmbios:\SystemConfiguration\IntegratedAudio Value: Disabled".
COMMENTAIRES : Value being set using PLDM Interface
COMMENTAIRES : Password type 'Admin' (Setup) is set.
Set-Item : Incorrect password provided!
Au caractère Ligne:3 : 1
+ Set-Item –Path DellSmbios:\SystemConfiguration\IntegratedAudio "Disab ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (DellSmbios:\Sys...IntegratedAudio:String) [Set-Item], InvalidOperationException
+ FullyQualifiedErrorId : SMBIOSWriteFailed,Microsoft.PowerShell.Commands.SetItemCommand
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了密码问题的答案。正是BIOS简直就是Qwerty。
谢谢
I found the answer to my password problem. It was that the BIOS is in QWERTY all simply.
Thanks