#1 13 Mar 2020 09:20

arenas
Member
Registered: 01 May 2009
Posts: 14

Get-ItemProperty "Airplane mode"

Hello smile

Pls

How i have to do see the value from the SystemRadioState

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\RadioManagement\SystemRadioState

this is not match:

Get-ItemProperty -Path "HKLM:\CurrentControlSet\Control\RadioManagement\" |% {$_.SystemRadioState}

and how switch  from 1 to 0 (on/off) by loop

Thanks

@r

Offline

#2 13 Mar 2020 14:33

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,069
Website

Re: Get-ItemProperty "Airplane mode"

Try this

(Get-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\RadioManagement\SystemRadioState").'(default)'

Offline

#3 13 Mar 2020 15:02

arenas
Member
Registered: 01 May 2009
Posts: 14

Re: Get-ItemProperty "Airplane mode"

Hello,
Many thank for your Reply

Yes Sir, this snipp works perfect!

Sorrt Sir: and now, switch to 1 ?

Thanks
@r

Offline

#4 13 Mar 2020 18:05

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,069
Website

Re: Get-ItemProperty "Airplane mode"

Just use Set-ItemProperty

see the first example on this page
https://ss64.com/ps/set-itemproperty.html

Offline

#5 13 Mar 2020 18:53

arenas
Member
Registered: 01 May 2009
Posts: 14

Re: Get-ItemProperty "Airplane mode"

Hello Sir smile

Many Thanks for your Reply
The Probleme is solved

@r

Offline

Board footer

Powered by FluxBB