Search found 2 matches

by Arnold
2022-Feb-26, 1:12 pm
Forum: Windows PowerShell
Topic: Get-ItemProperty: toggle 0 to 1 or 1 to 0
Replies: 3
Views: 1214

Re: Get-ItemProperty: toggle 0 to 1 or 1 to 0

Sir, many thank for your reply i have modify to: cls $value = (Get-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\RadioManagement\SystemRadioState") #'(default)' # "0" ???? / or -name -value? If ($value -eq 0){(Set-ItemProperty -Path "HKLM:\System\CurrentControlS...
by Arnold
2022-Feb-26, 10:06 am
Forum: Windows PowerShell
Topic: Get-ItemProperty: toggle 0 to 1 or 1 to 0
Replies: 3
Views: 1214

Get-ItemProperty: toggle 0 to 1 or 1 to 0

Hello Pls, i need your Help: This stuff is not work: :( $value = (Get-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\RadioManagement\SystemRadioState").'(default)' # "0" ???? / or -name -value? If ($value -eq 0){set-ItemProperty “1”} Else {set-ItemProperty ”0”} Get-It...