how to update a script that worked in 23H2.

Discussion in 'Scripting' started by raptorddd, May 24, 2024.

  1. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    672
    238
    30
    first of all i am not sure if microsft when it releases a new OS say 24H2 they change registries entries.?
    a script that the author has abandoned wich is slim10. thats the one am using. actually am using the online version by dark dinosaur. i have edited to my liking this script. has worked well in 23H2.
    but some of the settings dont get applied . so i wonder if they change it.

    so far i was told to run query to see if it exisst on OS.

    Reg query "HKLM\Software\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessLocation" /t REG_DWORD /d "2" /f >nul
    Reg query "HKLM\Software\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableLocation" /t REG_DWORD /d 1 /f >nul
    Reg query "HKLM\Software\Policies\Microsoft\Windows\LocationAndSensors" /v "DisableSensors" /t REG_DWORD /d 1 /f >nul

    i get this error
    C:\Windows\System32>Reg query "HKLM\Software\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessLocation" /t REG_DWORD /d "2" /f >nul
    ERROR: Invalid syntax.
    Type "REG QUERY /?" for usage.

    i wonder if it is because its different like this

    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OneSyncSvc]
    "Start"=dword:00000002

    Reg add "HKLM\SYSTEM\ControlSet001\Services\OneSyncSvc" /v "Start" /t REG_DWORD /d "2" /f

    i have registries enrties as this
    Reg add "HKLM\SYSTEM\ControlSet001\Services\OneSyncSvc" /v "Start" /t REG_DWORD /d "2" /f
    is that the error .??
     
  2. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    2,720
    1,899
    90
    Fyi 24h2 and latest update .. 26100.712 not work correctly with gpo .. and restriction

    EX restriction setting from windows 10 computer exported to windows 11 23h2 run as expected

    Same to 24h2 buggy
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    672
    238
    30
    so it is the OS as its buggy and recently out. so they need to fix it.? stay on 560 or should i go to 712 anyways it will be buggy still right.?
     
  4. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    2,720
    1,899
    90
    Atm with any update this bug exist
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...