Skip to main content


Showing posts with the label DHCP

Windows Active Directory Self password resets - Need and general precautions.

Computer password authentication is a way to protect organizational resources including data from unauthorized access at almost the lowest level i.e. end user level. Every time Users login to their computers they need to enter a password to establish their identity so that unauthorized access to computer could be prevented. However, we are just looking at the positive side of the scenario, on the negative side, it can result in massive productivity loss for the reason that an employee may forgot his password and cannot log into the system resulting in employee downtime.

Taking into picture the scenario that most of the projects require team effort and employees work in collaborative environments, absence of an employee from project arena, for even a little time, could lead to failure in achieving project milestones.

Traditionally, such issues are handled by the organizations’ IT helpdesk team which consumes a significant chunk of their effort and time. The problem becomes even more crit…

Wireless or Wi-Fi not working

Wireless connection or Wi-Fi connection gives easy convenience for moving Laptop computers inside the house or even in the office without losing internet connection.

If there are two or more Laptop computers and one of them is not able to connect to the internet or wireless connection, then for this kind of scenario the wireless router is working properly. Since other Laptop computers is able to connect to the Internet or Wi-Fi connection.

But if all of the wireless devices or laptop computers are not able to connect to the internet then it can be roll out that the router itself is having issues.

Troubleshooting wireless router is beyond the scope of this topic.

How to check or troubleshoot wireless connection issues?

Windows has a built-in wizard that will help to troubleshoot or check wireless issues.

A basic step to troubleshoot Wi-Fi or wireless connection if not working is to check:

- check if the wireless driver is installed properly or check whether the wireless device is disa…

Find MAC Address of a remote computer on network

Finding MAC address of a remote computer on network via command line is quite straight forward.
Using the built-in tool from Windows, administrator can easily find the MAC Address of a remote computer on the network.
Nbtstat.exe is a file that can be executed via command prompt to get the MAC Address of a remote computer.
To get the MAC Address for a single remote computer type:
 nbtstat -A | find "MAC Address" Nbtstat can also get the remote machine name and MAC Address automatically using batch file script.
Batch file script below will get the remote machine's MAC Address and computer name using IP Address using the text file parameter.
Text file contents will just be IP Addresses, sequence order is not necessary.
But it would be easy to use Excel file to type two IP Address in sequence and just drag to autocomplete the last octet.
And just copy and paste from excel to notepad.
For the batch file script below:
ifile.txt - will have the list of IP Addresses. computer1.…

PowerShell Get NIC IP Address

PowerShell code snippet to get network interface card/s (NICs) IP Address configuration.

If  the server or workstation has multiple NIC's configured, code snippet below will get all the NIC's info.

The script can be modified to get the IP Address of remote computers or servers. An example code below shows on how to get IP Address of remote machines.


#Display all NIC's with Static IP Address settings

$xdata = Get-WmiObject -Class Win32_NetworkAdapterConfiguration 

Foreach ($xElement in $xdata) {

 if ($xElement.IPAddress -ne $null -and $xElement.DHCPEnabled -eq $False) {
 write-output $xElement



#Display all NIC's with IP Address configuration (DHCP and Static settings)

$xdata = Get-WmiObject -Class Win32_NetworkAdapterConfiguration 

Foreach ($xElement in $xdata) {

 if ($xElement.IPAddress -ne $null) {
 write-output $xElement



Sample output:

To tweak the script to get IP Address of remote computers or servers, use a…

How to use batch file to register DLLs or to move or copy files

Batch file scripts below will register DLLs, copy or moved files.
Be careful in moving files as it would overwrite if there is an existing file on the destination folder. This batch file script below would register DLL files in a specified folder.
REM Start Copy Here REM Register DLL files @echo off set cnt=0 for %%v in (C:\MyCustomApp\*.dll) do (    regsvr32 /s "%%v"    call set /a cnt=%%cnt%%+1    ) echo Total dlls found and registered = %cnt% REM End of Batch File

Using same batch file it can be tweak to copy any specified files to a particular folder.
If you have a folder with PDF, Excel Files or other documents.
And you just want to copy files or move files to another folder, batch scripts below would help.
This simple batch file below would copy files to a specified folder.
REM Start Copy Here REM Copy PDF Files to another folder @echo off set cnt=0 for %%v in (d:\MixFilesFolder\*.pdf) do (    copy "%%v" "d:\AllPDF"    call set /a cnt=%%cnt%%+1    ) echo Total PDFs …

Using command line to view wireless networks

All commands below should be type on a command prompt.
Netsh can be used to view wireless networks using command line.
To view wireless networks via command line type this command:
netsh wlan show networks
To view wireless profiles, or the history of the wireless networks in which your computer had made a connection.
Type this command below,  if you’ve been travelling you will might be surprise of the long list:
netsh wlan show profiles
To view your wireless drivers, type this command below:
netsh wlan show drivers
If you want a long list, type this command:          
netsh wlan show all
You can redirect the output to text file like:
Netsh wlan show all > MyWirelessLongListInfo.txt
And  to connect via command line to a wireless network use this command below:
It will need three input paramet ers:
-- Profile name or the wireless name profile (you can type any profile name) -- SSID (Security Set Identifier) or basically the name of the Wifi (SSID should be accurate) -- Interface (the w…

How DHCP works?

A quick notes on how DHCP process works. DHCP - an acronym for Dynamic Host Configuration Protocol

DHCP is one of the most important thing in a network infrastructure.
Why it is most important? Would you link to configure 30 or more computers with an static IP?

Or would you prefer,  just plugging  a network cable and that's it DHCP will do the rest.
If DHCP works as cool as that, why bother how it works on the background?
It's good to know how things works on the background, not just because you're preparing for some certification and you got to nail down that cert.

It still a very good thing to know how things are being done on the background.
Download Network Monitor Tools from Microsoft site on this link below:

On start page of Network Monitor, click the Network Interface on which the packet will be sniff.

If the PC has only 1 NIC, it will be check by default. If PC has multiple NICs check the desired NIC.