- Local time
- 9:35 AM
- Posts
- 231
- OS
- Windows 11 27965
im trying to put together this string to query the account sid with wmic to apply it to a reg key. what part is wrong?
Code:
for /f %%i in ('wmic useraccount where name='%username%' get sid^) do (
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SystemProtectedUserData\%%i\AnyoneRead\Colors" /v /v "AccentColor" /t REG_DWORD /d "0xff446ea5" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SystemProtectedUserData\%%i\AnyoneRead\Colors" /v /v "StartColor" /t REG_DWORD /d "0xff446ea5" /f
)
PAUSE
Last edited:
My Computer
At a glance
Windows 11 27965Intel i7 7700 @4.0ghz64gb DDR4Radeon RX 5500 XT
- OS
- Windows 11 27965
- Computer type
- PC/Desktop
- CPU
- Intel i7 7700 @4.0ghz
- Memory
- 64gb DDR4
- Graphics Card(s)
- Radeon RX 5500 XT
- Sound Card
- Topping D50s
- Hard Drives
- NVMe
- PSU
- Corsair
- Keyboard
- Stelseries G6v2
- Mouse
- Zowie EC2
- Other Info
- https://www.youtube.com/shoober420






