在摆弄的过程中,bluetooth
我似乎已经从设备管理器本身中删除了蓝牙。如何启动扫描来检测内部硬件,然后下载正确的驱动程序?
我有尝试过:
`**********************
Windows PowerShell transcript start
Start time: 20210430235117
Username: DESKTOP-9AKB65V\Nicholas
RunAs User: DESKTOP-9AKB65V\Nicholas
Configuration Name:
Machine: DESKTOP-9AKB65V (Microsoft Windows NT 10.0.18363.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Process ID: 7256
PSVersion: 5.1.18362.1171
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.18362.1171
BuildVersion: 10.0.18362.1171
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is devmgr.txt
PS C:\Users\Nicholas> ms-settings:bluetooth
ms-settings:bluetooth : The term 'ms-settings:bluetooth' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ ms-settings:bluetooth
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (ms-settings:bluetooth:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
ms-settings:bluetooth : The term 'ms-settings:bluetooth' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ ms-settings:bluetooth
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (ms-settings:bluetooth:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Nicholas> start ms-settings:bluetooth
PS C:\Users\Nicholas> devmgr
devmgr : The term 'devmgr' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ devmgr
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (devmgr:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
devmgr : The term 'devmgr' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ devmgr
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (devmgr:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Nicholas> start devmgr
>> TerminatingError(Start-Process): "This command cannot be run due to the error: The system cannot find the file specified."
start : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
+ start devmgr
+ ~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
start : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
+ start devmgr
+ ~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
PS C:\Users\Nicholas> start ms-devmgr
>> TerminatingError(Start-Process): "This command cannot be run due to the error: The system cannot find the file specified."
start : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
+ start ms-devmgr
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
start : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
+ start ms-devmgr
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
PS C:\Users\Nicholas> devmgmt
PS C:\Users\Nicholas> diskpart
PS C:\Users\Nicholas> Get-PSDrive
Name Used (GB) Free (GB) Provider Root CurrentLocation
---- --------- --------- -------- ---- ---------------
Alias Alias
C 102.04 13.61 FileSystem C:\ Users\Nicholas
Cert Certificate \
Env Environment
Function Function
HKCU Registry HKEY_CURRENT_USER
HKLM Registry HKEY_LOCAL_MACHINE
Variable Variable
WSMan WSMan
PS C:\Users\Nicholas> Get-PSDrive -PSProvider FileSystem
Name Used (GB) Free (GB) Provider Root CurrentLocation
---- --------- --------- -------- ---- ---------------
C 102.05 13.60 FileSystem C:\ Users\Nicholas
PS C:\Users\Nicholas> Get-Volume
DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining Size
----------- ------------ -------------- --------- ------------ ----------------- ------------- ----
C Windows NTFS Fixed Healthy OK 13.6 GB 115.65 GB
NTFS Fixed Healthy OK 84.25 MB 517 MB
PS C:\Users\Nicholas> net use
New connections will be remembered.
There are no entries in the list.
PS C:\Users\Nicholas> exit
**********************
Windows PowerShell transcript end
End time: 20210430235838
**********************
`
但看不到:
1.) 如何从 powershell 使用设备管理器 2.) 如何重新检测硬件然后加载已删除的驱动程序
答案1
在 powershell 提示符下,键入
devmgmt
以打开设备管理器。打开后,扫描您的电脑以查找硬件更改。或者您可以以管理员身份运行 powershell,输入
pnputil.exe /scan-devices
扫描系统以查找硬件变化。
pnputil 是适用于 2004 及更高版本。