搬运 2022 增加蓝牙音频方法
网上看到的,有时间的网友可以试试(本人没有测试过),只是照搬过来的Enabling A2DP & AVRCP Bluetooth Profiles in Windows Server 2022
Instruction
-2. Backup (optional)I recommend using "vssadmin create shadow /for=" to create backup and boot into the secondary OS and use "vssadmin revert shadow" to restore.
-1. Pair the Bluetooth audio device you want to use
0. Reboot your Windows 2022 and select disable driver signature enforcement option in boot menu (F8)
1. Please note your current build of Windows 2022 by running "winver". The build I have for example is 20348. Let's reference this number as `Target_Build`.
2. Driver extraction (skip if you have access to Bluetooth_WS2022.zip)Find and download the release version of Windows 10 with build number between (including) 19041 and `Target_Build`(20348).You need to use the public version of Windows as Insider Preview builds do not have the valid signatures that are recognized by public Windows builds.
It looks like even the newest builds like 19044.1288 still have the same drivers as 19041 so practically you can use anything between 19041 and 19044.
From this image we will take following drivers (from \Windows\System32\DriverStore\FileRepository):
[*]btampm.inf_amd64\
[*]microsoft_bluetooth_a2dp.inf_amd64\
[*]microsoft_bluetooth_a2dp_snk.inf_amd64\
[*]microsoft_bluetooth_a2dp_src.inf_amd64\
[*]microsoft_bluetooth_avrcptransport.inf_amd64\
[*]microsoft_bluetooth_hfp.inf_amd64\
[*]microsoft_bluetooth_hfp_ag.inf_amd64\
[*]microsoft_bluetooth_hfp_hf.inf_amd64\
Please note that microsoft system drivers do not include catalog file, so we also need to get the right catalog file from \Windows\System32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE\.Usually the file name looks like Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.1904?.*.cat and is around 200Kb in size.The right catalog file can be found by using "signtool" from Visual Studio command line prompt:for %i in (*.cat) do @signtool verify /c %i “path_to_btampm_sys” && echo %i
You would need to merge all mentioned drivers and prepare a single .inf file and add CatalogFile entry with the reference to the catalog file.
3. Services extractionFind and download any version (including Insider Preview builds) of Windows 10 or Windows 11 with the closest build number that does not exceed `Target_Build`(20348).
For this step we cannot use the Windows build (19041) from step 2 as many interfaces have been changed and the extracted services won't work with the rest of the system and will crash.
The closest build that exists is 20279:https://blogs.windows.com/windows-insider/2020/12/14/announcing-windows-10-insider-preview-build-20279/
From this image (or from Bluetooth_WS2022.zip) we will take services, dlls (copy them into \Windows\System32) and mui files (copy them into \Windows\System32\en-US):
[*]BTAGService.dll
[*]BTAGService.dll.mui
[*]BthAvctpSvc.dll
[*]BthAvctpSvc.dll.mui
[*]BthAvrcp.dll
[*]BthAvrcpAppSvc.dll
Some resource files are better to take from \Windows\WinSxS and put into \Windows\System32 (copy only files not the directories):
[*]amd64_microsoft-onecoreua..uetooth-userservice_31bf3856ad364e35_*_none_5ec1e134a70eb45b\*
[*]amd64_microsoft-onecoreua..erservice.resources_31bf3856ad364e35_*_en-us_6141d43ce896ed2c\*
4. Import registry settingsThe required registry entries can be found in Bluetooth_WS2022.zip. The assumption is that Windows is installed into C:\Windows\, if not update the *.reg files accordingly.
You will have problems with importing HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime keys, so you need to grant write access to ./Administrators group and restore ownership at the end to "NT SERVICE\TrustedInstaller".
Make sure to import HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Bluetooth\Audio entries. Without those entries the drivers will fail to start. (they are referenced from BthHfEnum.sys and BthA2dp.sys https://www.hybrid-analysis.com/sample/8b0f65f411c463cbc68b8039d4795a3d3a356f6f18ff165f2c14439bd8fb569a?environmentId=120)
and finally update "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost\" and add following lines to multi-string (REG_MULTI_SZ) values:
[*]BthAppGroup = BluetoothUserService
[*]LocalService += bthavctpsvc
[*]LocalServiceNetworkRestricted += btagservice
+= operator means that the value already exists and you have to add an additional line.= means that you have to create the value first.
5. Install driversForce install drivers prepared at step 2 for 4 devices: Audio Sink Service, Handsfree Handsfree Service and 2 Bluetooth peripheral devices (make sure that you group devices by connection and show hidden devices to ensure that you don't miss anything). You need to click the red "install" button as the .inf file you've created is not signed (this is not a big deal as the .sys files themselves are signed).
6. Reboot. if everything was done correctly, you should have working bluetooth headphones and driver signature enforcement should be enabled.
Every time you want to connect a new AVRCP device, you will have to repeat steps 0, 5, 6 to install drivers without the signed .inf file.But after reboot the installed drivers will function normally.
Bluetooth_WS2022.zip 这个文件在哪里 Bluetooth_WS2022.zip 在哪里 找到原文了,感觉靠谱。 jhhuang2000 发表于 2022-5-1 20:51 https://bbs.pcbeta.com/static/image/common/back.gif
找到原文了,感觉靠谱。
Bluetooth_WS2022.zip 在哪里?原文在哪里?成功了么? 不能把server2019的蓝牙和商店移到2022吗 原帖这里:
https://techcommunity.microsoft.com/t5/windows-server-for-it-pro/bluetooth-and-wireless-display-not-working-on-windows-server/m-p/2223394 对应的文档,是谷歌文档,有些人可能打不开:
https://docs.google.com/document/d/1vUhDGPojbITF_RvI5a73XqRMNg4oltbu-2Sq0i9hB24 nbasia 发表于 2022-5-2 09:06 https://bbs.pcbeta.com/static/image/common/back.gif
Bluetooth_WS2022.zip 在哪里?原文在哪里?成功了么?
还没空测试,改天我来试试。 jhhuang2000 发表于 2022-5-2 11:06 https://bbs.pcbeta.com/static/image/common/back.gif
还没空测试,改天我来试试。
期待您的成果。 我已经找到这个文件,并发布新帖,希望大家有时间跟进测试,并完善 jhhuang2000 发表于 2022-5-5 02:36 https://bbs.pcbeta.com/static/image/common/back.gif
我已经找到这个文件,并发布新帖,希望大家有时间跟进测试,并完善
您那个帖子不见了。提示:正在审核或已被删除。 值得期待 测试成功,具体可以看我发的贴子,里面有
V3版本附件 jhhuang2000 发表于 2022-5-8 21:39 https://bbs.pcbeta.com/static/image/common/back.gif
测试成功,具体可以看我发的贴子,里面有
V3版本附件
v3版本 貌似不能大于作者指定的版本,我自己提取了win11测试版本的可以使用于高版本 wp128 发表于 2022-5-9 10:19 https://bbs.pcbeta.com/static/image/common/back.gif
v3版本 貌似不能大于作者指定的版本,我自己提取了win11测试版本的可以使用于高版本
那更好,如果可以,可以分享一下附件吗?感谢。 jhhuang2000 发表于 2022-5-9 11:05 https://bbs.pcbeta.com/static/image/common/back.gif
那更好,如果可以,可以分享一下附件吗?感谢。
这几天比较忙,我抽时间整理下, 到时发个帖子 wp128 发表于 2022-5-9 12:44 https://bbs.pcbeta.com/static/image/common/back.gif
这几天比较忙,我抽时间整理下, 到时发个帖子
谢谢了。。。。。。。。。。。。 谢谢LZ分享,几经波折终于安装成功。如能解决商店的应用就更完美了,现在是商店能下载应用,但一些应用闪退,不能运行。 有没有增加蓝牙键盘,还有xboxone手柄驱动的方法,我的K380的键盘还有xboxone二代接收器启动都装不上。
页:
[1]
2