Search code examples
windows-10driverwdkkmdf

Unable to load the windows driver


I was trying to load the windows driver in windows 10 using OSR Loader, the service for HelloWorld.sys has been created, but when I click on start, it's saying "This driver has been blocked from loading"

The video I followed: https://www.youtube.com/watch?v=Nc-uh8O989I

Upon investigating,

  • Driver compatibility issue → I tried set Target OS to Windows10 (Universal and then to Desktop)
  • Driver signature enforcement issue → ran bcdedit.exe /set nointegritychecks on
  • WDK might not be supported → Followed this video, https://www.youtube.com/watch?v=MjZVkuKQzTk&t=141s
  • Signing issue → ran bcdedit /set testsigning on
  • Tried testing from sc.exe command → sc create HelloWorld binpath=/my/sys/file type=kernel && sc start HelloWorld

Solution

  • The problem was,

    Target PC: Windows 10 Home x64
    Kernel Mode Driver Target: Windows 10 Desktop x86

    NOTE: The kernel build architecture must match the target machine architecture.