gal9 Posted March 29, 2023 Author Share Posted March 29, 2023 1 minute ago, ioa747 said: the folder GPO-Export did you make it? i cange for this C:\share\GPO-Export Link to comment Share on other sites More sharing options...
ioa747 Posted March 29, 2023 Share Posted March 29, 2023 C:\share\GPO-Export\ folder exist? I know that I know nothing Link to comment Share on other sites More sharing options...
gal9 Posted March 29, 2023 Author Share Posted March 29, 2023 Just now, ioa747 said: C:\share\GPO-Export\ folder exist? yes But it doesn't matter so much to me because I have a working script export i need to fix the script _GroupPolicy2.au3 Link to comment Share on other sites More sharing options...
gal9 Posted March 29, 2023 Author Share Posted March 29, 2023 29 minutes ago, gal9 said: for _GroupPolicy i run this code and the logs: $CmdLine[0]=4 $hGPO=0x00000000005F0A14 --- $sPolicyPath=Local Computer Policy\Computer Configuration\Administrative Templates\Windows Components\Connect --- $sPolicyItem=Require pin for pairing --- $iSetting=1 --- $sOption=WindowsForms10.COMBOBOX.app.0.297b065_r69_ad11;f $tmpPath=Local Computer Policy $tmpPath=Local Computer Policy|Computer Configuration $tmpPath=Local Computer Policy|Computer Configuration|Administrative Templates $tmpPath=Local Computer Policy|Computer Configuration|Administrative Templates|Windows Components $tmpPath=Local Computer Policy|Computer Configuration|Administrative Templates|Windows Components|Connect - $FindItem=-1 not found the entry:'Require pin for pairing' i run it after again and it is working: $CmdLine[0]=4 $hGPO=0x00000000009A0908 --- $sPolicyPath=Local Computer Policy\Computer Configuration\Administrative Templates\Windows Components\Connect --- $sPolicyItem=Require pin for pairing --- $iSetting=1 --- $sOption=WindowsForms10.COMBOBOX.app.0.297b065_r69_ad11;f $tmpPath=Local Computer Policy $tmpPath=Local Computer Policy|Computer Configuration $tmpPath=Local Computer Policy|Computer Configuration|Administrative Templates $tmpPath=Local Computer Policy|Computer Configuration|Administrative Templates|Windows Components $tmpPath=Local Computer Policy|Computer Configuration|Administrative Templates|Windows Components|Connect - $FindItem=1 - $SelectedItem=1 $ItemTxt[0]=Require pin for pairing $ItemTxt[1]=Not configured $ItemTxt[2]=No $ItemTxt[3]= - $hGPOedit=0x0000000000C60520 > $hGPOedit=normal < -> Enabled - $sOption=WindowsForms10.COMBOBOX.app.0.297b065_r69_ad11;f - $SelectedItem=1 $ItemTxt[0]=Require pin for pairing $ItemTxt[1]=Enabled $ItemTxt[2]=No $ItemTxt[3]= and once the logs $CmdLine[0]=4 $hGPO=0x0000000000270A80 --- $sPolicyPath=Local Computer Policy\Computer Configuration\Administrative Templates\Windows Components\Connect --- $sPolicyItem=Require pin for pairing --- $iSetting=1 --- $sOption=WindowsForms10.COMBOBOX.app.0.297b065_r69_ad11;f $tmpPath=Local Computer Policy $tmpPath=Local Computer Policy|Computer Configuration $tmpPath=Local Computer Policy|Computer Configuration|Administrative Templates $tmpPath=Local Computer Policy|Computer Configuration|Administrative Templates|Windows Components $tmpPath=Local Computer Policy|Computer Configuration|Administrative Templates|Windows Components|Connect - $FindItem=1 - $SelectedItem=1 $ItemTxt[0]=Require pin for pairing $ItemTxt[1]=Enabled $ItemTxt[2]=No $ItemTxt[3]= - $hGPOedit=0x0000000000C3038A > $hGPOedit=normal < -> Enabled - $sOption=WindowsForms10.COMBOBOX.app.0.297b065_r69_ad11;f - $SelectedItem=0 $ItemTxt[0]=Don't allow this PC to be projected to $ItemTxt[1]=Enabled $ItemTxt[2]=No $ItemTxt[3]= i want fix this Link to comment Share on other sites More sharing options...
ioa747 Posted March 29, 2023 Share Posted March 29, 2023 4 hours ago, gal9 said: i run it after again and it is working: give more time at the first $FindItem ;find the item Local $FindItem = ControlListView($hGPO, "", $hListView, "FindItem", $sPolicyItem) Sleep(1000) ; * <-- ConsoleWrite("- $FindItem=" & $FindItem & @CRLF) $Txt &= "- $FindItem=" & $FindItem & @CRLF I know that I know nothing Link to comment Share on other sites More sharing options...
gal9 Posted March 29, 2023 Author Share Posted March 29, 2023 (edited) 1 hour ago, ioa747 said: give more time at the first $FindItem ;find the item Local $FindItem = ControlListView($hGPO, "", $hListView, "FindItem", $sPolicyItem) Sleep(1000) ; * <-- ConsoleWrite("- $FindItem=" & $FindItem & @CRLF) $Txt &= "- $FindItem=" & $FindItem & @CRLF ok i add sleep and it works in several places in the code. thank you! Edited March 29, 2023 by gal9 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now