Monday, January 30, 2017

CMD Commands to Manage (Wireless) Networks in Windows

As a Windows user, the Control Panel and the Settings app can feel quite limiting in what they can do. If you want full and absolute control over your network, meaning access to everything the operating system has to offer, then you’ll have to start using Command Prompt.
Never used Command Prompt before? Don’t worry. Using it is as simple as typing out the commands you’ll see below. It’s not hard at all and we’ll tell you everything you need to know to get started.
If you’re ready to continue, here are some of the most useful commands to know for managing and troubleshooting your home network.

1. PING

ping is one of the most basic yet useful commands you could know. It tells you whether your computer can reach some destination IP address or domain name, and if it can, how long it takes data to travel there and back again.
Sample usage and output:
The command works by sending out multiple data packets and seeing how many of them return. If some of them don’t return, it’ll tell you (“lost”). Packet loss leads to poor performance in games and streaming, and this is a nifty way to test.
By default it sends 4 packets, each one waiting 4 seconds before timing out. You can increase the number of packets like this:
ping www.google.com -n 10
And you can increase the timeout duration like this (value is in milliseconds):
ping www.google.com -w 6000

2. TRACERT

tracert stands for Trace Route. Like ping, it sends out a data packet as a way to troubleshoot any network issues you might have, but instead tracks the route of the packet as it hops from server to server.
Sample usage:
The command outputs a line-by-line summary of each hop, including the latency between you and that particular hop and the IP address of that hop (plus domain name if available).
Why do you see three latency readings per hop? Because tracert sends out three packets per hop, in case one of them gets lost or takes an inordinate amount of time that doesn’t represent your true latency. It’s best practice to average the three.

3. PATHPING

pathping is similar to tracert except more informative, which means it takes a lot longer to execute. After sending out packets from you to a given destination, it analyzes the route taken and computes packet loss on a per-hop basis.
Sample usage and output:

4. IPCONFIG

ipconfig may just be the most-used networking command on Windows. Not only is it useful for the information it provides, but you can combine it with a couple switches to execute certain tasks.
Sample usage and output:
The default output shows every network adapter on your system and how they resolve. The IPv4 Address and Default Gateway details under the Wireless LAN Adapter and Ethernet Adapter sections are the most important to know.
Use this switch to flush your DNS cache:
ipconfig /flushdns
Flushing the DNS cache can help when your internet is working, but a specific website or server is unreachable for some reason (e.g. a website times out and won’t load).

5. GETMAC

Every device that’s compliant with IEEE 802 standards has a unique MAC address (Media Access Control). MAC addresses are assigned by the manufacturer and are stored in the device’s hardware. Some people use MAC addresses to limit which devices can connect to the network.
Sample usage and output:
You may see more than one MAC address depending on how many network-related adapters are on your system. For example, Wi-Fi and Ethernet connections would have separate MAC addresses.

6. NSLOOKUP

nslookup stands for Name Server Lookup. It’s a nifty utility that’s packed with a lot of power, but most users don’t need all of that power. For regular folks like you and me, its main use is finding out the IP address behind a certain domain name.
Sample usage and output:
Note that certain domain names aren’t tied to a dedicated IP address, which means that you may get different IP addresses every time you run the command. This is normal for bigger websites because they spread their workload across many different machines.
If you want to convert an IP address into a domain name, just type it into your browser and see where it leads. Not all IP addresses lead to domain names though, and many IP addresses aren’t reachable over the web.

7. NETSTAT

netstat is a tool for network statistics, diagnostics, and analysis. It’s powerful and complex, but can be simple enough if you ignore the advanced aspects that you don’t need to know about (assuming you aren’t managing a massive business or campus network, for example).
Sample usage and output:
By default, the command shows all “active connections” on your system whether those connections are on LAN or across the internet. An active connection doesn’t mean data is being moved — it could just mean a port that’s open and ready to accept a connection.
Indeed, netstat is mostly useful to regular users for its ability to show port information, and that can come in handy when you need to forward ports.
But the command also has about a dozen switches that change what kind of information is displayed, such as the -r switch which shows a routing table instead.

8. NETSH

netsh stands for Network Shell. It’s a command that lets you view and configure pretty much every network adapter on your system, in more detail and granularity than any of the preceding commands.
Running the netsh command on its own will shift the Command Prompt into network shell mode. There are several different “contexts” within this shell, including one for routing-related commands, one for DHCP-related commands, and one for diagnostics, among others. But you can use it to run individual commands, too.
To see all network shell contexts:
And to see all commands within a context:
You can drill down one more layer to find all of the subcommands within those commands:
So for example, you can run this command to view all of the wireless network drivers on your system and their properties:
netsh wlan show drivers
It’s an advanced command that’s complex enough to deserve an entire article of its own. Just know that if you want to get real technical with your network configuration, you’ll probably need to use this command line utility.
Then again, everyone should have at least a little bit of Command Prompt experience. It can come in handy when you least expect it. 
How comfortable are you with Command Prompt? Got any other networking tips that could prove useful for Windows users? Share with us down in the comments!

Tips to Fix Your Windows 10 Start Menu

The Windows 10 Start Menu is much more dynamic and functional than its previous incarnations. However, the downside to these upgrades is that they offer more opportunities for things to go wrong.
It can be very frustrating to find that your Start Menu isn’t working as it should. It’s not always easy to diagnose the problem, and solutions can sometimes be quite long-winded. That said, there are ways to remedy many common issues.
If your Windows 10 Start Menu is on the blink, work your way through these solutions. With any luck, you’ll find a way to put things back to normal.

1. Restart Your Computer

This may sound simple, but it works. Before you try anything else, restart your computer and see whether the problem persists.
The chances are that you’ll have to do a bit more legwork to get things fixed — but on the off chance, you might save yourself some time and effort.

2. Restart the Process

When your Start Menu isn’t working, the fault might be linked to the system processes it relies upon to function. To restart these processes, we need to right-click the taskbar and select Task Manager.
In the Processes tab, search through the list until you find Windows Explorer. Then, right-click it and select Restart.
If this doesn’t work, it’s worth restarting two other processes — Cortana and Search.

3. Use Microsoft’s Troubleshooter

Start Menu issues are not uncommon, and Microsoft is well aware. To that end, the company has released an official Start Menu troubleshooter utility intended to help users out. You can download the program here.
The Start Menu troubleshooter really couldn’t be much easier to use. Once you’ve downloaded it, open it up and click the next button, and it will start a scan of your system. Once it’s done, restart your PC and hopefully your Start Menu woes will have come to an end.

4. Unpin and Re-Pin

In some cases, it might just be one pinned element on your Start Menu that isn’t working properly. If so, you might be able to fix the problem by removing it temporarily.
Open the Start Menu and right-click the element that’s affected. Click Unpin from Start to remove it from the menu.
Next, search for the app, right-click the desired result, and select Pin to Start.

5. Run the System File Checker

Before you give up and consider starting from scratch, do check whether corrupted files are the culprit by running the System File Checker utility. First, open the Command Prompt as an administrator: right-click the Start Menu button and select Command Prompt (Admin). Type “sfc /scannow” into the window and hit enter.
Allow the scan to run — it may take some time — and restart your computer after it’s complete. This will fix most issues.
Should SFC fail, you might have to apply more serious solutions to fix your potentially corrupted Windows installation, such as DISM or an in-place upgrade.

6. Reset Windows 10

Windows 10 comes with a feature called Reset this PC. It allows you to reset Windows to its factory settings, but with the option to keep all your personal files.
Press Windows key + I to launch the Settings app, then go to Update & security > Recovery and under Reset this PC click the Get started button.
If the issue with the Start Menu appeared right after an update, you can also try to Go back to the previous version of Windows 10.

7. Change Your User Profile

Sometimes, the problems affecting your Start Menu might be confined to a single user account. It’s a good idea to switch to another user account to see if the problem persists.
This solution won’t remedy the issue outright, but it’s better than nothing as a last resort. If your Start Menu is fine on another profile, you could migrate to a new account and simply start afresh.

A Fresh Start

If all else fails, a fresh Windows installation is still the best way to fix any issues with the operating system. Hopefully, one of the other, simpler fixes worked for you.

Do you know another fix for Start Menu troubles? Or are you looking for more help after exhausting these methods? Either way, you can join the conversation with your fellow readers in the comments section below!

HOW MACBOOK’s BATTRY LIFE CAN BE IMPROVED

MacBooks get more powerful and thinner every year, but battery life doesn’t improve anywhere near as much as raw performance does. This leaves us in a weird situation.
While the current MacBooks are quite powerful, at best they have the same battery life as their predecessors. And sometimes a four-hour battery cycle from a MacBook Pro just isn’t enough.
So what can you do? Quite a bit, it turns out.

1. Update to Latest OS


It’s being reported that a lot of battery fluctuations and issues have been fixed with the latest macOS Sierra update, when it comes to the 2016 MacBook Pros. So if you’re experiencing battery issues, the first thing to do is to update to the latest software.


2. Check Your Battery Condition


If you’re experiencing horrendous battery life, especially if your MacBook dies in under an hour, then your battery might need replacement. After using them for a long time, batteries die out. Most recently, it happened for my MacBook with just under two years of use (thank you AppleCare+).


If there’s something seriously wrong with your battery, macOS will tell you. Click the battery icon in the menu bar while holding the Option key. If it says Condition: Normal, everything is A-OK. But if there’s something wrong, it will say Replace soon. That’s your cue to get the Mac to the service station.


3. Switch to Safari, If You Can


Seriously, this is the only thing that’s going to give you an instant and significant battery bump. The simple the act of switching to Safari from Chrome can increase your battery life by an hour or two, depending on your usage.

While taking the screenshot above, I had two Safari windows and one Chrome window running, yet only Chrome was using significant energy. It was one of the big reasons why I made the switch.
Try switching to Safari, it’s a really good browser. You can keep Chrome around for things that don’t work so well on Safari (not a lot).


4. Customize Energy Saver Mode


macOS comes with a built-in Energy Saver mode that can help you maximize your Mac’s battery life. In System Preferences, select Energy Saver.
From the slider, reduce the time for how long the screen stays on when you’re not using the Mac.


Below, make sure the Slightly dim displays when on battery power and Put hard disks to sleep when possible options are checked.
It’s also advisable to turn off the Power Nap option that periodically checks for updates for apps and data when your MacBook is closed.


5. Dim Your Screen


While this advice doesn’t really hold up for the latest MacBook Pros, the displays on older devices are much less energy efficient. Turning the brightness down on your Retina MacBook Pro can certainly help when it comes to a longer battery life. You can do this using the F1 and F2 keys on the keyboard.
You might also want to disable automatic brightness. You can do this by going to System Preferences > Display.


6. Manage Rogue Apps


Generally, it’s rogue and resource-intensive apps that eat up battery. What you need to watch out for is if they’re still running when you’re not using them.
Practice quitting resource intensive apps you’re not using. Apps like Photoshop, Steam and any games you have installed.


To see if any app has gone rogue, open Activity Monitor (from Applications > Utilities) and click on the CPU tab. Here you’ll see apps that are the biggest resource hogs. If an app is taking up an unusually large stake of CPU processes (more than 70 percent), double click on it and select Quit.


7. Clean Your Mac


Using an unoptimized Mac is like driving a car that’s way past its service date. While macOS is generally pretty good at managing its own resources, junk can still develop. The severity of the problem depends on what you do on your Mac.

If you’re a programmer and you install a lot of packages on your Mac, only to forget about them down the line, you might have a problem. In any case, when your Mac starts misbehaving and starts draining a lot of battery, it’s a good opportunity to take stock and clean up your Mac.
You can do this using a couple of different tools. If you’re running macOS Sierra, use the built-in storage management tool to clear out huge and unimportant files.


You can use a third-party app like CleanMyMac 3 as well. They have a Maintenance section that’s dedicated to improving Mac’s performance and battery health.


If you’re looking for free options, look at OnyX. It might look daunting at first but select the things you want to do and let OnyX do its thing (it’s advisable to backup your important files before this). OnyX will run optimization scripts on an OS level and it might just take care of things that have gone wrong on a level that’s not user accessible.


8. Disable the Keyboard Backlight


If you routinely work in the dark or you just happen to have the keyboard backlight enabled, you should consider turning them off. You can do that using the F5 key. While the backlit keyboard is a great feature in MacBooks, using it for a long period can mean decreased battery life.


9. Monitor Your Mac’s Battery Life


The first step towards change is knowledge. Battery Health is a free menu bar app that monitors your Mac’s battery life and provides you with specific technical information that macOS won’t.
The app gives you an overall score of the health of the battery along with its current highest charging capacity.



A side effect of installing the app is that it will even provide you with the estimated remaining time for the battery (in various circumstances). Apple recently removed this feature from the Mac because it was quoting unrealistic numbers. Even with Battery Health, I would suggest you use the estimate as just that: an estimate.


10. Turn Off Turbo Boost


Turbo Boost is a feature of Intel CPUs which enables a kind of overdrive, all the way up to 11. If you’re using a modern Retina MacBook, your Mac supports the feature (to make sure, look up your model’s specification page on Apple’s web site).


If you’re using a 15-inch MacBook Pro, disabling turbo boost has a clear positive effect on the battery life. CPU intensive tasks take a hit. But for general usage, disabling Turbo Boost, even temporarily when you’re in dire circumstances can be of big help.
Marco Arment tested this theory by turning off Turbo Boost on his 2015 15-inch MacBook Pro and found that the battery life went up by 25 percent. You can do this using the Turbo Boost Switcher app.


Ultimately, It Depends on Your Use


If you’re watching full HD movies with the brightness turned all the way up or you’re transcoding videos, your Mac is still going to die on you in 3–4 hours. But in general use, the above tips should help you get more juice out of your current machine.
You can also try calibrating your MacBook’s battery. It’s like resetting your battery’s default behavior. Fully charge up your MacBook, then drain it down entirely and then charge it up all the way again. Also, we wouldn’t recommend keeping your MacBook plugged in at all times.

Are you having battery issues with your Mac? What steps are you taking to make it better? Share with us in the comments below.