lock pc when win key is disabled batch?


dacrone

Well-known member
Guru
VIP
Local time
5:02 PM
Posts
4,656
OS
Windows 11 Pro
my keyboard has a win key lock button - a button at the top that us used to disable the windows key on the keyboard itself. i would like to configure a batch to lock the pc when the windows key is disabled. essentially, since i cannot remap the designated lock key to do this function, i want to implement a workaround to circumvent the keyboard limitation and use the lock key for what i want to use it for. i have yet to get this figured out.. so i thought i would see if anyone else has done something similar. it is a corsair keyboard, if that makes a difference. any help is greatly appreciated. thank you.
 

My Computer My Computer

At a glance

Windows 11 Pro
OS
Windows 11 Pro
I can't say about your lock key but if no one has a solution for it, you can Ctrl+Alt+Del and choose Lock from the list of options.
To unlock press any key to wake displacy, press Ctrl+Alt+Del at the same time. You will be asked to authenticate with username and password.

OR

create a desktop shortcut which you can pin to the taskbar if you want.
 

My Computers My Computers

  • At a glance

    Windows 11 Pro 25H2 26200.8655i9-10900 10 core 20 threads32 gbnone-Intel UHD Graphics 630
    OS
    Windows 11 Pro 25H2 26200.8655
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    2x1tb Solidigm m.2 nvme /External drives 512gb Samsung m.2 sata+2tb Kingston m2.nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • At a glance

    Windows 11 Pro 24H2 26200.8457AMD Ryzen 7 6800U32 gbintegrated
    Operating System
    Windows 11 Pro 24H2 26200.8457
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink Mini PC SER5
    CPU
    AMD Ryzen 7 6800U
    Memory
    32 gb
    Graphics card(s)
    integrated
    Sound Card
    integrated
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Crucial nvme
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    still too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender
    Other Info
    System 3 is non compliant Dell 9020 i7-4770/24gb ram Win11 PRO 26200.8457
nah i have all of that done. and aside from that i have another key mapped to run the lock.bat already. i just want to repurpose that key....
 

My Computer My Computer

At a glance

Windows 11 Pro
OS
Windows 11 Pro
nah i have all of that done. and aside from that i have another key mapped to run the lock.bat already. i just want to repurpose that key....
Just re-map the key? I can remap anything to any key on my razor setup through its software, I'd have assumed corsair would be similar
 

My Computer My Computer

At a glance

11[email protected]Viper Steelseries 32gb@ 3600mhzGigabyte 2070 Super 8GB, +200 core + 600 memory
OS
11
Computer type
PC/Desktop
Manufacturer/Model
Custom
CPU
[email protected]
Motherboard
Gigabyte Gaming X Z490
Memory
Viper Steelseries 32gb@ 3600mhz
Graphics Card(s)
Gigabyte 2070 Super 8GB, +200 core + 600 memory
Monitor(s) Displays
ASUS 4k HDR, Two 1080p Benq and Samsung
Screen Resolution
3840x2160/2560x1440/1920x1080
Hard Drives
Adata XPG SX8200 PRO 1tb
Samsung EVO 870 500GB
PSU
Corsair RX 650
Case
NZXT h510
Cooling
CM HYPER 212 RGB
Keyboard
Razer Ornata Chroma
Mouse
Steelseries Rival 710
nope. thats why i was asking for a script or some other software that can do this... i have tried many of the avenues of approach that can be thought of already. just need help with the original question. thanks.
 

My Computer My Computer

At a glance

Windows 11 Pro
OS
Windows 11 Pro
Back
Top Bottom