Block Wi-Fi at Certain Hours
Solved/Closed
killerjo
Posted messages
196
Status
Membre
-
Fafa -
Fafa -
Hello,
I have 3 PCs at home, including 2 laptops. My son has a desktop PC, and I would like to cut off the WIFI after 9 PM in the evening, but without interfering with his machine, meaning that I can perform an action from my PC to cut off his access (and incidentally, to make him go to bed). I have a Freebox HD, and my 2 boxes are connected via WIFI, so I cannot unplug the box to cut off his access, as we would lose the TV. Do you have a solution for me?
Thank you for your help.
I have 3 PCs at home, including 2 laptops. My son has a desktop PC, and I would like to cut off the WIFI after 9 PM in the evening, but without interfering with his machine, meaning that I can perform an action from my PC to cut off his access (and incidentally, to make him go to bed). I have a Freebox HD, and my 2 boxes are connected via WIFI, so I cannot unplug the box to cut off his access, as we would lose the TV. Do you have a solution for me?
Thank you for your help.
Configuration: Windows Vista Firefox 3.0.1
23 réponses
- 1
- 2
Suivant
I finally found a solution (manual) that works for me.
I am on 9Box and all the PCs, smartphones, and the tablet in the house are on the wifi network.
When you connect to the box (http://192.168.1.1), you can see the Mac addresses of everyone connected in the tab: Wifi - General.
I spot the Mac addresses of my devices and I write them down.
In the tab: Wifi - Mac Filtering, I add the allowed MAC addresses (those of my PC and my HTC).
Once that's done, I enable Mac filtering and "validate".
This way, only authorized devices can connect.
Even if the password is correct, other devices can no longer connect.
It works great, as evidenced by the fact that I hear my son yelling.
When I want to allow access again, I disable Mac filtering and "validate".
I am on 9Box and all the PCs, smartphones, and the tablet in the house are on the wifi network.
When you connect to the box (http://192.168.1.1), you can see the Mac addresses of everyone connected in the tab: Wifi - General.
I spot the Mac addresses of my devices and I write them down.
In the tab: Wifi - Mac Filtering, I add the allowed MAC addresses (those of my PC and my HTC).
Once that's done, I enable Mac filtering and "validate".
This way, only authorized devices can connect.
Even if the password is correct, other devices can no longer connect.
It works great, as evidenced by the fact that I hear my son yelling.
When I want to allow access again, I disable Mac filtering and "validate".
Why not just forbid her??? Where's the education and parental respect? (yes, I also have children and I have no problem :-) and I find it simpler)
--
For the descriptions, please be PRECISE and COMPLETE in describing the problem, it helps us.
Reread the charter, it can help you understand "how it works."
Madmyke
--
For the descriptions, please be PRECISE and COMPLETE in describing the problem, it helps us.
Reread the charter, it can help you understand "how it works."
Madmyke
Hello
I congratulate you, but sometimes other parents may struggle, and a more constructive response would have been welcome.
For the blocking, I think we can consider two solutions.
Either the scheduling settings on your box, which might be the most appropriate.
Or disable the Wi-Fi at bedtime.
Cheers
I congratulate you, but sometimes other parents may struggle, and a more constructive response would have been welcome.
For the blocking, I think we can consider two solutions.
Either the scheduling settings on your box, which might be the most appropriate.
Or disable the Wi-Fi at bedtime.
Cheers
It's crazy!
I think like Killerjo, we're doing what we can! If communication had worked and been sufficient, do you really think he would have asked for help!?! At least he has the merit of trying to find a solution instead of giving up and doing NOTHING like far too many parents. To talk like you do means you must not be living the problem!! It's easy to criticize!
So to the self-appointed experts: we've heard enough from you! Please refrain if it's to give that kind of feedback!!! Don't waste your time responding to that kind of nonsense. We wouldn't waste our time reading it!
Killer's solution:
If he has an internal network card, then he will always be able to detect your WiFi. So you need to buy a WLAN key (not too expensive). On your Livebox, configure the detection of your network by enabling the option: "WPA security only": he will then be obliged to know this code. On your son's PC, make sure that the WAP key is not pre-registered (just connect and see if detection is automatic or not). If he knows it, then you'll need to change it (I don’t know, change your LB or ask your service provider, I don’t know if it’s possible). Make sure to delete the WAP key from under the LiveBox. Configure the WLAN key on his PC: as soon as he plugs it in, he will detect the network and by unplugging it, he will lose it.
It's far-fetched, sure, but it works for me...
Good luck.
I think like Killerjo, we're doing what we can! If communication had worked and been sufficient, do you really think he would have asked for help!?! At least he has the merit of trying to find a solution instead of giving up and doing NOTHING like far too many parents. To talk like you do means you must not be living the problem!! It's easy to criticize!
So to the self-appointed experts: we've heard enough from you! Please refrain if it's to give that kind of feedback!!! Don't waste your time responding to that kind of nonsense. We wouldn't waste our time reading it!
Killer's solution:
If he has an internal network card, then he will always be able to detect your WiFi. So you need to buy a WLAN key (not too expensive). On your Livebox, configure the detection of your network by enabling the option: "WPA security only": he will then be obliged to know this code. On your son's PC, make sure that the WAP key is not pre-registered (just connect and see if detection is automatic or not). If he knows it, then you'll need to change it (I don’t know, change your LB or ask your service provider, I don’t know if it’s possible). Make sure to delete the WAP key from under the LiveBox. Configure the WLAN key on his PC: as soon as he plugs it in, he will detect the network and by unplugging it, he will lose it.
It's far-fetched, sure, but it works for me...
Good luck.
Hello,
I was also looking for a solution to manage the Wi-Fi access for my daughter, after considering solutions with an additional router connected to my box (not easy to set up). I eventually found a simpler solution,
Keep your Wi-Fi network from your BOX and change the Wi-Fi password (don’t give it to your little one)
Buy a SIMPLE access point without advanced network settings (about €20), hide it and plug it into a timer like a "gear wheel" with activation at the times you want. Give the password for this new Wi-Fi network to your favorite TEEN, and it will turn on at the scheduled times.
Okay, I admit it seems a bit like a Sunday DIY project, but the advantage is that it's easy to set up.
I was also looking for a solution to manage the Wi-Fi access for my daughter, after considering solutions with an additional router connected to my box (not easy to set up). I eventually found a simpler solution,
Keep your Wi-Fi network from your BOX and change the Wi-Fi password (don’t give it to your little one)
Buy a SIMPLE access point without advanced network settings (about €20), hide it and plug it into a timer like a "gear wheel" with activation at the times you want. Give the password for this new Wi-Fi network to your favorite TEEN, and it will turn on at the scheduled times.
Okay, I admit it seems a bit like a Sunday DIY project, but the advantage is that it's easy to set up.
Without cutting the box, we can just unplug the Wi-Fi card ^^ but if he's using a desktop PC, I don't see the point.
The problem is that the Freebox does not allow for advanced configuration options, so there are no settings of that kind. It would be necessary to buy additional equipment just to manage this issue.
The problem is that the Freebox does not allow for advanced configuration options, so there are no settings of that kind. It would be necessary to buy additional equipment just to manage this issue.
Hello,
The Pstool software allows you to execute commands remotely on your child's PC.
You can thus do a "shutdown" of their PC remotely when it's time for them to go to bed. You can even set the PC to shut down in 5 minutes so that they can still save their files that are currently being edited.
Best regards,
The Pstool software allows you to execute commands remotely on your child's PC.
You can thus do a "shutdown" of their PC remotely when it's time for them to go to bed. You can even set the PC to shut down in 5 minutes so that they can still save their files that are currently being edited.
Best regards,
Tag: Forbid Internet Connections by hours.
Forbid Internet Connexion by hours.
Hello
Why not simply ban it!!!! You may have perfect children who never disobey like you did when you were young.
We need to stop deluding ourselves... My daughter has a computer in her room (yes, I can also take it away every night at 10 PM). However, she might need the computer for work, for reports, etc... But I'm not stupid. If I leave the Internet on, there are nights of lengthy discussions for one reason or another on Facebook or MSN until very late and the next morning she is tired.
So MadMyke, you're under a lot of illusions (your children must appreciate it) or else you forbid everything and that’s not the right solution either.
So indeed, I searched for one, I couldn’t find anything on Google or other settings on the box. Because I repeat, I do not want to ban the computer, I want to forbid Internet access after a certain hour and if possible at different hours depending on the days. So, finding nothing, I created (programmed) something simple that can help other parents.
The principle: On a box, the Internet is permitted because the PC obtains a network address from the box via DHCP. (for fixed connections, the script would need to be modified). On Vista and Windows 7, it is possible to disable the network card via API but not on XP. We can also use devcon.exe but in that case, the ID of the card must be identified beforehand, which is not simple for someone who is not tech-savvy. So, to achieve this on XP, Vista, Seven, simply assign a fixed IP address and a gateway in the 10 network if the time is exceeded for example, which won't be a box network, and restore DHCP if the time is okay. Without gateway or correct IP: no Internet connection.
How to do it: we will simply create a service that will check the time every 2 minutes or more and will either disable or re-enable DHCP.
1) Prerequisites: Your child must not be an administrator of the computer: Control Panel (or My Computer, Right-click manage on XP). Users. Click on the child's connection name. Change Group: put them in Users and remove them from Administrator. Set a password on your login and on your spouse's. Why: As a user, they can no longer change the time or stop services.
2) Download the Windows 2003 resource kit from
http://www.microsoft.com/downloads/en/details.aspx?DisplayLang=en&FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd
3)
Install rktools.exe. We assume the installation in C:\Program Files\Resource Kit
4) Open a DOS box (Start, Run or Search, cmd)
4) Type:
C:\Program Files\Resource Kit\Instsrv.exe Wifi_Control C:\Program Files\Resource Kit\Srvany.exe
5)
Type:
md c:\windows\system32\Wifi_Control (or open Windows Explorer and go to C:\windows\System32 and create the Wifi_Control directory)
6)
Type in the DOS box:
notepad (the notepad)
Copy and Paste the following lines into notepad
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Wifi_Control\Parameters]
"Application"="c:\\windows\\system32\\wscript.exe /B /NOLOGO c:\\windows\\system32\\wifi_control\\wifi_control.vbs"
Save as, select All Files (*.*) and name it: C:\windows\system32\Wifi_Control\WFC.reg
Close notepad
7) Navigate in the explorer to the directory C:\windows\system32\Wifi_Control
and Click on WFC.reg (answer Yes to the question)
I will continue in the next post
Forbid Internet Connexion by hours.
Hello
Why not simply ban it!!!! You may have perfect children who never disobey like you did when you were young.
We need to stop deluding ourselves... My daughter has a computer in her room (yes, I can also take it away every night at 10 PM). However, she might need the computer for work, for reports, etc... But I'm not stupid. If I leave the Internet on, there are nights of lengthy discussions for one reason or another on Facebook or MSN until very late and the next morning she is tired.
So MadMyke, you're under a lot of illusions (your children must appreciate it) or else you forbid everything and that’s not the right solution either.
So indeed, I searched for one, I couldn’t find anything on Google or other settings on the box. Because I repeat, I do not want to ban the computer, I want to forbid Internet access after a certain hour and if possible at different hours depending on the days. So, finding nothing, I created (programmed) something simple that can help other parents.
The principle: On a box, the Internet is permitted because the PC obtains a network address from the box via DHCP. (for fixed connections, the script would need to be modified). On Vista and Windows 7, it is possible to disable the network card via API but not on XP. We can also use devcon.exe but in that case, the ID of the card must be identified beforehand, which is not simple for someone who is not tech-savvy. So, to achieve this on XP, Vista, Seven, simply assign a fixed IP address and a gateway in the 10 network if the time is exceeded for example, which won't be a box network, and restore DHCP if the time is okay. Without gateway or correct IP: no Internet connection.
How to do it: we will simply create a service that will check the time every 2 minutes or more and will either disable or re-enable DHCP.
1) Prerequisites: Your child must not be an administrator of the computer: Control Panel (or My Computer, Right-click manage on XP). Users. Click on the child's connection name. Change Group: put them in Users and remove them from Administrator. Set a password on your login and on your spouse's. Why: As a user, they can no longer change the time or stop services.
2) Download the Windows 2003 resource kit from
http://www.microsoft.com/downloads/en/details.aspx?DisplayLang=en&FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd
3)
Install rktools.exe. We assume the installation in C:\Program Files\Resource Kit
4) Open a DOS box (Start, Run or Search, cmd)
4) Type:
C:\Program Files\Resource Kit\Instsrv.exe Wifi_Control C:\Program Files\Resource Kit\Srvany.exe
5)
Type:
md c:\windows\system32\Wifi_Control (or open Windows Explorer and go to C:\windows\System32 and create the Wifi_Control directory)
6)
Type in the DOS box:
notepad (the notepad)
Copy and Paste the following lines into notepad
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Wifi_Control\Parameters]
"Application"="c:\\windows\\system32\\wscript.exe /B /NOLOGO c:\\windows\\system32\\wifi_control\\wifi_control.vbs"
Save as, select All Files (*.*) and name it: C:\windows\system32\Wifi_Control\WFC.reg
Close notepad
7) Navigate in the explorer to the directory C:\windows\system32\Wifi_Control
and Click on WFC.reg (answer Yes to the question)
I will continue in the next post
Parents who idealize their children make me laugh. "My child is the best and he listens to everything I say..." But sure, and the marmot puts the chocolate in the aluminum foil...
To answer the question:
Once you have found a solution to prevent them from connecting at certain times, how will you stop them from connecting to your neighbors' hotspots during the forbidden hours???
Your children know more about computers than you do and use Google just like you, don't forget that!!!
To answer the question:
Once you have found a solution to prevent them from connecting at certain times, how will you stop them from connecting to your neighbors' hotspots during the forbidden hours???
Your children know more about computers than you do and use Google just like you, don't forget that!!!
8) Open Notepad again Copy and Paste the following lines
Modify the hours and minutes in Const HourList and Const MinuteList
' BEGIN Copy from here
'
'
' a line starting with ' is a comment
' plebras for commentcamarche.net
' version 1.1
'
' the service (Internet accepted) is restarted at 7 am cf + base
'
' End times for each day of the week starting on Monday (IN France, other countries, the week may start on a Sunday'
' for example: on Monday the Internet is cut off at 10:30 pm on Sunday at 10:00 pm and 11:00 pm on Friday and Saturday
'
'
' Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
Const HourList="22,22,22,22,23,23,22"
Const MinuteList="30,30,30,30,00,00,00"
'
' Put '%wire%' if you are in English
' Put "%local% ' if you are connected to the box by cable
'
Const Tag="%fil%" ' "%fil%" or "%wire%" or "%local%"
'
Const StrComputer="."
'
Public Isdebug,caption, objNetworkAdapter,OFS, WriteStuff
Dim NbErr
NbErr=0
' if true: display on the screen if we launch the script manually (not via the service)
Isdebug=false
'
Set oFs = CreateObject("Scripting.FileSystemObject")
Filename="C:\windows\system32\wifi_control\Wifi_Control.log"
If Ofs.fileExists(Filename) Then ofs.DeleteFile(Filename)
Set WriteStuff = ofs.OpenTextFile(filename, 8, True)
Ptn " Starting"
wscript.sleep (15000) 'wait 15 seconds at startup for the network service and the drivers of the card and the wifi to have time to be operational
Ptn "Wait Finish"
Dim FirstStep
FirstStep=True
Dim HourFin,MinuteFin, StopInternet
HourFin=split(Hourlist,",")
Minutefin=split(MinuteList,",")
StopInternet=True
'
' if we do not find any card in %fil% %wire% %local% depending on the parameter above we exit
'
If getConnexion=False Then
ptn "No Active network card Found"
ptn "Action Start"
If Action ("Start") =False Then
Call CloseFic
wscript.quit
End If
End If
ptn objNetworkAdapter.caption
' Main loop
While True
DateAct = Now
day = CInt(DatePart("d", DateAct))
DayAct = CInt(DatePart("w", DateAct, 0))
HourAct= CInt(DatePart("h", DateAct))
MinuteAct= CInt(DatePart("n", DateAct))
ptn "Day="&JourAct&" Time=" &HourAct&"h "&MinuteAct
ptn "Time Stop ="&HourFin(JourAct-1)&"h "&MinuteFin(JourAct-1)
If HourAct>=CInt(HourFin(JourAct-1)) And MinuteAct>=CInt(MinuteFin(JourAct-1)) Or HourAct < 7 Then
ptn "Action Stop"
If StopInternet=False Or FirstStep=True Then
If Action ("Stop") =False Then
' in fact even if there are errors we do not exit
NbErr=NbERR+1
Ptn "ERRORS = " & cstr(Nberr)
else
StopInternet=True
FirstStep=False
End if
End If
Else
If StopInternet=True Then
ptn "Action Start"
If Action ("Start") =False Then
NbErr=NbERR+1
Ptn "ERRORS = " & cstr(Nberr)
else
StopInternet=False
FirstStep=False
End if
End If
End If
wscript.sleep (120000)
Wend
Call CloseFic
wscript.quit
Sub ptn (Message)
If Isdebug=True Then
wscript.echo Message
End If
WriteStuff.WriteLine(Message)
End Sub
Sub CloseFic
writeStuff.close
Set WriteStuff=Nothing
Set Ofs=Nothing
End Sub
Function getConnexion()
caption=""
getConnexion=False
ptn "----------------------------"
ptn "Testing ConnectionID : "&Tag
ptn "----------------------------"
ptn "Open WMI"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
SQL="Select * From Win32_NetworkAdapter where NetConnectionID like '"&Tag&"'"
ptn "SQL= "&SQL
ptn "Executing query"
Set colItems1 = objWMIService.ExecQuery (SQL)
On Error Resume Next
For Each objItem1 in colItems1
If objItem1.MACAddress <> "" Then
strMACAddress = objItem1.MACAddress
If strMACaddress <> "" Then
ptn " Find MacAddress = "& strMACaddress
ptn " Getting NetworkAdapter Configuration"
Set colItems2 = objWMIService.ExecQuery _
("Select * From Win32_NetworkAdapterConfiguration")
For Each objItem2 in colItems2
If Trim(objItem2.MACAddress)= Trim(strMACAddress) Then
For Each sIPAddress in objItem2.IPAddress
strIpaddress=Trim(sIpAddress)
If strIpaddress <> "" And Left(strIpAddress,1) <> "0" Then
ptn "Found a valid Ip Address = "&strIpaddress&""
ptn "Id = "&objItem1.NetConnectionID&""
caption=objItem1.Caption
ptn "Caption = " & caption
Set objNetwOrkAdapter=objitem2
Exit For
End If
Next
End If
If caption<>"" Then Exit For
Next
End if
end If
If caption <> "" Then Exit For
Next
Set colItems1=Nothing
Set colItem2=Nothing
ptn "end"
If caption<>"" Then
getConnexion=True
End If
End Function
Function Action (mode)
Dim retour
retour=True
If IsObject(objNetworkAdapter) Then
ptn objNetworkAdapter.Caption
ptn objNetworkAdapter.DHCPenabled
ptn join(objNetworkAdapter.IpAddress)
If LCase(mode)="stop" Then
intReturn = objNetworkAdapter.ReleaseDHCPLease()
strIPAddress = Array("10.0.0.1")
strSubnetMask = Array("255.255.255.0")
strGateway = Array("10.0.0.100")
strGatewayMetric = Array(1)
intReturn = objNetworkAdapter.EnableStatic( strIPAddress, strSubnetMask)
Select Case intReturn
Case 0
ptn "Static mode enable"
Case 1
ptn "You must reboot before Static mode will be Enable"
Case Else
ptn "Error occurred"
retour=False
End Select
intReturn = objNetworkAdapter.SetGateways(strGateway, strGatewaymetric)
Select Case intReturn
Case 0
ptn "Gateways writed"
Case 1
ptn "You must reboot before Gateways will be Enable"
Case Else
ptn "Error occurred"
retour=False
End Select
Else
intReturn = objNetworkAdapter.EnableDHCP
Select Case intReturn
Case 0
ptn "DHCP Enable"
Case 1
ptn "You must reboot before DHCP will be Enable"
Case Else
ptn "Error occurred"
End Select
intReturn = objNetworkAdapter.RenewDHCPLease
Select Case intReturn
Case 0
ptn "DHCP Renew"
Case 1
ptn "You must reboot before DHCP will be Renew"
Case Else
ptn "Error occurred"
retour=False
End Select
End If
Else
ptn "not network Adapter Object"
retour=False
End If
Action=retour
End Function
'
'END OF COPY
9) Save As, Select All Files (*.*) and save the file as
C:\windows\System32\Wifi_Control\Wifi_Control.vbs
Warning File Wifi_Control.vbs in the C:\windows\System32\Wifi_control directory created previously.
10) Optional Test
Open a command prompt
Cd C:\windows\system32\Wifi_Control
Type cscript Wifi_control.vbs
Wait 2 minutes: Press ControlC to stop and view the logs in Wifi_control.log in the same directory
11) Setup Restart the PC or Administrative Tools, Services, Wifi_Control: Start the service
For non-Wifi connections see the beginning of the script
See you later
Modify the hours and minutes in Const HourList and Const MinuteList
' BEGIN Copy from here
'
'
' a line starting with ' is a comment
' plebras for commentcamarche.net
' version 1.1
'
' the service (Internet accepted) is restarted at 7 am cf + base
'
' End times for each day of the week starting on Monday (IN France, other countries, the week may start on a Sunday'
' for example: on Monday the Internet is cut off at 10:30 pm on Sunday at 10:00 pm and 11:00 pm on Friday and Saturday
'
'
' Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
Const HourList="22,22,22,22,23,23,22"
Const MinuteList="30,30,30,30,00,00,00"
'
' Put '%wire%' if you are in English
' Put "%local% ' if you are connected to the box by cable
'
Const Tag="%fil%" ' "%fil%" or "%wire%" or "%local%"
'
Const StrComputer="."
'
Public Isdebug,caption, objNetworkAdapter,OFS, WriteStuff
Dim NbErr
NbErr=0
' if true: display on the screen if we launch the script manually (not via the service)
Isdebug=false
'
Set oFs = CreateObject("Scripting.FileSystemObject")
Filename="C:\windows\system32\wifi_control\Wifi_Control.log"
If Ofs.fileExists(Filename) Then ofs.DeleteFile(Filename)
Set WriteStuff = ofs.OpenTextFile(filename, 8, True)
Ptn " Starting"
wscript.sleep (15000) 'wait 15 seconds at startup for the network service and the drivers of the card and the wifi to have time to be operational
Ptn "Wait Finish"
Dim FirstStep
FirstStep=True
Dim HourFin,MinuteFin, StopInternet
HourFin=split(Hourlist,",")
Minutefin=split(MinuteList,",")
StopInternet=True
'
' if we do not find any card in %fil% %wire% %local% depending on the parameter above we exit
'
If getConnexion=False Then
ptn "No Active network card Found"
ptn "Action Start"
If Action ("Start") =False Then
Call CloseFic
wscript.quit
End If
End If
ptn objNetworkAdapter.caption
' Main loop
While True
DateAct = Now
day = CInt(DatePart("d", DateAct))
DayAct = CInt(DatePart("w", DateAct, 0))
HourAct= CInt(DatePart("h", DateAct))
MinuteAct= CInt(DatePart("n", DateAct))
ptn "Day="&JourAct&" Time=" &HourAct&"h "&MinuteAct
ptn "Time Stop ="&HourFin(JourAct-1)&"h "&MinuteFin(JourAct-1)
If HourAct>=CInt(HourFin(JourAct-1)) And MinuteAct>=CInt(MinuteFin(JourAct-1)) Or HourAct < 7 Then
ptn "Action Stop"
If StopInternet=False Or FirstStep=True Then
If Action ("Stop") =False Then
' in fact even if there are errors we do not exit
NbErr=NbERR+1
Ptn "ERRORS = " & cstr(Nberr)
else
StopInternet=True
FirstStep=False
End if
End If
Else
If StopInternet=True Then
ptn "Action Start"
If Action ("Start") =False Then
NbErr=NbERR+1
Ptn "ERRORS = " & cstr(Nberr)
else
StopInternet=False
FirstStep=False
End if
End If
End If
wscript.sleep (120000)
Wend
Call CloseFic
wscript.quit
Sub ptn (Message)
If Isdebug=True Then
wscript.echo Message
End If
WriteStuff.WriteLine(Message)
End Sub
Sub CloseFic
writeStuff.close
Set WriteStuff=Nothing
Set Ofs=Nothing
End Sub
Function getConnexion()
caption=""
getConnexion=False
ptn "----------------------------"
ptn "Testing ConnectionID : "&Tag
ptn "----------------------------"
ptn "Open WMI"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
SQL="Select * From Win32_NetworkAdapter where NetConnectionID like '"&Tag&"'"
ptn "SQL= "&SQL
ptn "Executing query"
Set colItems1 = objWMIService.ExecQuery (SQL)
On Error Resume Next
For Each objItem1 in colItems1
If objItem1.MACAddress <> "" Then
strMACAddress = objItem1.MACAddress
If strMACaddress <> "" Then
ptn " Find MacAddress = "& strMACaddress
ptn " Getting NetworkAdapter Configuration"
Set colItems2 = objWMIService.ExecQuery _
("Select * From Win32_NetworkAdapterConfiguration")
For Each objItem2 in colItems2
If Trim(objItem2.MACAddress)= Trim(strMACAddress) Then
For Each sIPAddress in objItem2.IPAddress
strIpaddress=Trim(sIpAddress)
If strIpaddress <> "" And Left(strIpAddress,1) <> "0" Then
ptn "Found a valid Ip Address = "&strIpaddress&""
ptn "Id = "&objItem1.NetConnectionID&""
caption=objItem1.Caption
ptn "Caption = " & caption
Set objNetwOrkAdapter=objitem2
Exit For
End If
Next
End If
If caption<>"" Then Exit For
Next
End if
end If
If caption <> "" Then Exit For
Next
Set colItems1=Nothing
Set colItem2=Nothing
ptn "end"
If caption<>"" Then
getConnexion=True
End If
End Function
Function Action (mode)
Dim retour
retour=True
If IsObject(objNetworkAdapter) Then
ptn objNetworkAdapter.Caption
ptn objNetworkAdapter.DHCPenabled
ptn join(objNetworkAdapter.IpAddress)
If LCase(mode)="stop" Then
intReturn = objNetworkAdapter.ReleaseDHCPLease()
strIPAddress = Array("10.0.0.1")
strSubnetMask = Array("255.255.255.0")
strGateway = Array("10.0.0.100")
strGatewayMetric = Array(1)
intReturn = objNetworkAdapter.EnableStatic( strIPAddress, strSubnetMask)
Select Case intReturn
Case 0
ptn "Static mode enable"
Case 1
ptn "You must reboot before Static mode will be Enable"
Case Else
ptn "Error occurred"
retour=False
End Select
intReturn = objNetworkAdapter.SetGateways(strGateway, strGatewaymetric)
Select Case intReturn
Case 0
ptn "Gateways writed"
Case 1
ptn "You must reboot before Gateways will be Enable"
Case Else
ptn "Error occurred"
retour=False
End Select
Else
intReturn = objNetworkAdapter.EnableDHCP
Select Case intReturn
Case 0
ptn "DHCP Enable"
Case 1
ptn "You must reboot before DHCP will be Enable"
Case Else
ptn "Error occurred"
End Select
intReturn = objNetworkAdapter.RenewDHCPLease
Select Case intReturn
Case 0
ptn "DHCP Renew"
Case 1
ptn "You must reboot before DHCP will be Renew"
Case Else
ptn "Error occurred"
retour=False
End Select
End If
Else
ptn "not network Adapter Object"
retour=False
End If
Action=retour
End Function
'
'END OF COPY
9) Save As, Select All Files (*.*) and save the file as
C:\windows\System32\Wifi_Control\Wifi_Control.vbs
Warning File Wifi_Control.vbs in the C:\windows\System32\Wifi_control directory created previously.
10) Optional Test
Open a command prompt
Cd C:\windows\system32\Wifi_Control
Type cscript Wifi_control.vbs
Wait 2 minutes: Press ControlC to stop and view the logs in Wifi_control.log in the same directory
11) Setup Restart the PC or Administrative Tools, Services, Wifi_Control: Start the service
For non-Wifi connections see the beginning of the script
See you later
Hello,
Communication would be a good start...
Otherwise, there are parental control software with scheduling for PC usage...
Best regards,
Weet
--
| ...To be consumed without moderation... |
Communication would be a good start...
Otherwise, there are parental control software with scheduling for PC usage...
Best regards,
Weet
--
| ...To be consumed without moderation... |
Indeed, it’s the simplest software solution, an installation on the kid's PC and a password. That said, I agree that if we can’t communicate and command respect, there’s a problem elsewhere.
--
For the descriptions, be PRECISE and COMPLETE in describing the issue, it helps us.
Re-read the charter, it can help you understand "how it works."
Madmyke
--
For the descriptions, be PRECISE and COMPLETE in describing the issue, it helps us.
Re-read the charter, it can help you understand "how it works."
Madmyke
I also have a 15-year-old daughter with whom I get along very well and with whom I talk, but I know perfectly well that behind my back she connects with her friends. It's not a question of education; you make me laugh, my children are very well educated. But that's just how life is; they feel lost without connecting with their friends or their games. That's what society wants.
Thank you guys, you are very kind, but when you have a 16-year-old teenager who worked all summer to pay for his PC, which he can finally put in his room, well it's not so easy to keep an eye on him. My wife is alone with him and his two sisters aged 7 and 1.5 years all week (I'm away on business all week), she probably has other things to do than check if her son has indeed turned off the PC at 9 PM and if he has gone to bed!!! Anyway, you answered my question, there is nothing. Thank you.
Good evening Killerjo,
I have the same issue with my 16-year-old son! Those who want to give advice, just move along, we’ll talk about it later.
I can suggest another solution: unplug the wifi and replace it with powerline adapters. The powerline on the box can be turned off or unplugged whenever you want, and you avoid the waves... Instead of buying another router, which is also an effective solution, you simplify the settings!!! Just unplug the powerline adapter that supplies the internet to your son’s PC and he can complain and then go to bed after doing his homework (that’s humor... or for the idealists and other teletubbies on the list...).
Cheers.
I have the same issue with my 16-year-old son! Those who want to give advice, just move along, we’ll talk about it later.
I can suggest another solution: unplug the wifi and replace it with powerline adapters. The powerline on the box can be turned off or unplugged whenever you want, and you avoid the waves... Instead of buying another router, which is also an effective solution, you simplify the settings!!! Just unplug the powerline adapter that supplies the internet to your son’s PC and he can complain and then go to bed after doing his homework (that’s humor... or for the idealists and other teletubbies on the list...).
Cheers.
Idealists have children like you, personally two, one of whom is 17 and has had access to a computer since he was 12 (father's job obliges) and with a bit of normal education we manage without any problem.
So the two-bit solutions wonder why later we find these children doing anything and questioning how they developed these habits. The answer is always the same. It's not idealism that's at fault, it's mainly the laziness of those who don't want to know.
That said, there is a pretty good software that allows you to set computer usage times, in general, or to limit specific applications by app and by time, in short it’s really well made (paid but so what, and in French) and given the posts read from unhappy teens, and especially parents, it is not at all easy to circumvent.
The name?
Well since I just discovered it, I’ll leave it to the motivated ones to search for it, because I’m an idealist and I don’t help the lazy in education.
(and there you go, humor is back) :-)
--
For descriptions, be PRECISE and COMPLETE in describing the problem, it helps us.
Reread the charter it can help you understand "how it works". Madmyke
So the two-bit solutions wonder why later we find these children doing anything and questioning how they developed these habits. The answer is always the same. It's not idealism that's at fault, it's mainly the laziness of those who don't want to know.
That said, there is a pretty good software that allows you to set computer usage times, in general, or to limit specific applications by app and by time, in short it’s really well made (paid but so what, and in French) and given the posts read from unhappy teens, and especially parents, it is not at all easy to circumvent.
The name?
Well since I just discovered it, I’ll leave it to the motivated ones to search for it, because I’m an idealist and I don’t help the lazy in education.
(and there you go, humor is back) :-)
--
For descriptions, be PRECISE and COMPLETE in describing the problem, it helps us.
Reread the charter it can help you understand "how it works". Madmyke
LOL I'm really dying of laughter
To tell you the truth, I find it pointless to try to cut off your children's internet connection.
Just to let you know, I'm 18 and I've always managed to bypass security measures, whether it was changing the WPA key: I would always end up finding it again thanks to my mother's lack of imagination (WPA key too simple xD)
Or when she blocked the MAC address, I could always go into the options to change everything.
You can't be naive; if you install a program on your child's PC, they'll delete it as soon as they can
and if you change the session passwords that won't change anything because, except for my mom doing it,
I immediately hacked the session and then created a completely invisible session with admin rights, etc.
xD
If you really insist, they might lose it and actually destroy the box xD which would cause you problems too (I'm saying this because I almost did it but my mom reset the Wi-Fi in time)
After that, it's up to you; disconnecting my box is fine, but they can just plug it back in or even buy a new cable if you take it. I say, there's nothing left for me but to sleep with the box,
and even with the internet off, you can still play solo games or do some programming or other stuff, so if they want to, as soon as you go to bed, they'll turn on the PC and play games ^^
That's all I had to say.
To tell you the truth, I find it pointless to try to cut off your children's internet connection.
Just to let you know, I'm 18 and I've always managed to bypass security measures, whether it was changing the WPA key: I would always end up finding it again thanks to my mother's lack of imagination (WPA key too simple xD)
Or when she blocked the MAC address, I could always go into the options to change everything.
You can't be naive; if you install a program on your child's PC, they'll delete it as soon as they can
and if you change the session passwords that won't change anything because, except for my mom doing it,
I immediately hacked the session and then created a completely invisible session with admin rights, etc.
xD
If you really insist, they might lose it and actually destroy the box xD which would cause you problems too (I'm saying this because I almost did it but my mom reset the Wi-Fi in time)
After that, it's up to you; disconnecting my box is fine, but they can just plug it back in or even buy a new cable if you take it. I say, there's nothing left for me but to sleep with the box,
and even with the internet off, you can still play solo games or do some programming or other stuff, so if they want to, as soon as you go to bed, they'll turn on the PC and play games ^^
That's all I had to say.
Well, if you were my kid, you'd already get a good slap, it would calm you down and prevent you from losing your cool. The problem with you kids is that you never know how to stop on your own, always going to extremes, without limits, and there are moments when it becomes exhausting. I was a kid too, but when my father said stop, it was stop, and it’s the same with my sons, no problem. Oh, by the way, you might be good with computers, but there's a lot of work to do when it comes to spelling...
Hi... basically, you go into your Wi-Fi modem's settings and change the encryption in network authentication
for example, set it to wpa-psk... good luck.
for example, set it to wpa-psk... good luck.
That's really a good suggestion; if he does that, none of the Wi-Fi PCs will have access anymore, and that's not the goal. Unless he changes the key every time.
--
For the descriptions, please be PRECISE and COMPLETE in describing the problem; it helps us.
Re-read the charter; it can help you understand "how it works."
Madmyke
--
For the descriptions, please be PRECISE and COMPLETE in describing the problem; it helps us.
Re-read the charter; it can help you understand "how it works."
Madmyke
Hello,
Could you please tell me the name of the program?
It would be a great and urgent help to me ... I currently know too little about computers to claim that I can discover this program quickly.
Thank you.
.'. Pol
Could you please tell me the name of the program?
It would be a great and urgent help to me ... I currently know too little about computers to claim that I can discover this program quickly.
Thank you.
.'. Pol
I am in the same situation as Laurenius1970, a teenager who switches from his smartphone to his PC.
Madmyke replies that it exists with recent boxes, does the Freebox Revolution allow you to manage Wi-Fi access at certain times for your smartphone and your computer without blocking other devices? Thank you for your help.
Madmyke replies that it exists with recent boxes, does the Freebox Revolution allow you to manage Wi-Fi access at certain times for your smartphone and your computer without blocking other devices? Thank you for your help.
- 1
- 2
Suivant
I'd like to set a fixed time, like midnight, so that my son can't connect anymore without having to perform a manipulation on the computer at that moment.