To the wmic bios get serial number command call the Win32_BIOS wmi class and get the value of the Serial Number property, which retrieves the serial number of the BIOS Chip of your system.
Search This Blog
Monday, 31 July 2017
Sunday, 15 January 2017
To change IP address using Command Line interface Windows
To change IP address using Command Line interface in Windows 7 use the following example ,
netsh int ipv4 set address name="LAN" address=192.168.14.52 mask=255.255.255.224
netsh int ipv4 add address name="LAN" address=192.168.7.251 mask=255.255.255.0
netsh int ipv4 add address name="LAN" gateway=192.168.14.33 gwmetric=0
netsh int ipv4 set dns name="LAN" source=static addr=192.168.7.254 register=PRIMARY
netsh int ipv4 add dns name="LAN" addr=192.168.5.254 index=2
netsh int ipv4 add dns name="LAN" addr=8.8.8.8 index=3
netsh int ipv4 add dns name="LAN" addr=8.8.4.4 index=4
netsh exit
To run it as a batch file save this file in notepad program as file extension .bat.
Sunday, 21 August 2016
HOW REMOVE USB SHORTCUT VIRUS Windows
HOW REMOVE USB SHORTCUT VIRUS
To remove sub shortcut virus you first scan it with antivirus to clean any infected files then type cmd in windows run now type the following commands in DOS,
attrib -h -r -s /s /d X:\*.*, (Where, X is the USB drive letter) and press Enter.
(For example: If your drive letter is D, then the command is attrib -h -r -s /s /d D:\*.*)
After you run the command , hopefully it has resolved the shortcut problem you need to copy all files to your computer, then format the usb drive. Secondly we need to download and install a usbfix software to solve this problem for that click the following link
Thanks! Keep commenting.....
Friday, 19 August 2016
ADD NEW USER IN UBUNTU AND GIVE RIGHTS IN Ubuntu Linux
ADD NEW USER IN UBUNTU AND GIVE RIGHTS
Sign in as root user and then add new user by following steps,
Sign in as root user and then add new user by following steps,
- adduser newusername
Give password to newuser - To grant access rights use the following command,
sudo visudo
this will give the following script,
root ALL= (ALL:ALL) ALL
see the command pattern and add your new user ,
root ALL= (ALL:ALL) ALL
newuser ALL= (ALL:ALL) ALL
HOW TO UNLOCK SUPERUSER AND LOGIN AS ROOT IN Ubuntu
HOW TO UNLOCK SUPERUSER AND LOGIN AS ROOT
To unlock root us the following command,
To unlock root us the following command,
- sudo password root
you will be asked to enter password root password two times. - Then unlock root user by following command
sudo password -u root - To lock it again use the following command
sudo password -l root - To login as root use the following command
su root
you will be asked for given root password - To login interactively use the following command
sudo -i
username: root
password : ********
Wednesday, 17 August 2016
HOW SET IP OF WLAN INTERFACE UBUNTU 14.04
HOW SET IP OF WLAN INTERFACE UBUNTU 14.04
- First goto path /etc/network open file by typing
sudo nano /etc/network/interfaces
you will see the following,
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Change these settings and add the following line script,
remove the eth0 lines and add wlan0 config commands,
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "MYFI"
wpa-psk "Passwd" - Restart network anagement by typing following command script,
sudo service network-manager restart
sudo service networking restart
sudo service resolvconf restart
we can also try commands,
sudo ifacedown wlan0
sudo ifaceup wlan0 - If you want to add static wlan ip write the following lines,
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address x.x.x.x
netmask x.x.x.x
network x.x.x.x
boradcast x.x.x.x
gateway x.x.x.x
wpa-ssid "MYFI"
wpa-psk "Passwd"
save these configurations in interfaces file. - Now after writings command script restart the network management service
sudo service network-manager restart
sudo service networking restart
sudo service resolvconf restart
sudo ifacedown wlan0
sudo ifaceup wlan0
check ip address by ifconfig -a
Monday, 15 August 2016
HOW TO SET IP ADDRESS IN UBUNTU 14.04
HOW TO SET IP ADDRESS IN UBUNTU 14.04
To set ip address in ubuntu using terminal we have to do three things.
- Disable graphical management of network connection edit file use the command sudo gedit /etc/NetworkManager/NetworkManager.conf . Do changes like comment out the line dns=dnsmasq using hash (#) sign. secondly change line which says managed=false to managed=true.
- Gather information about the static ip (interface, ip to be used , subnet-mask, gateway, DNS). Use the ifconfig -a command to check about the details.
- Modify network interfaces to be used goto location /etc/network/ edit give details in file interfaces. Use the following command
- sudo gedit /etc/network/interfaces write the following
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address x.x.x.x
netmask x.x.x.x
gateway x.x.x.x
dns-nameservers x.x.x.x - Restart ubuntu networking services using the following commands,
sudo service network-manager restart
sudo service networking restart
sudo service resolvconf restart
This will restart ubuntu network services. you can confirm given ip address using ifconfig command. - You can also make network interface up and down using command,
sudo ifconfig eth0 down
sudo ifconfig eth0 up - To check gateway use the command ip route show
- To find netmask / subnet use the command ifconfig <iface> | grep mask
- DNS is like and index used to resolve hostname to an ip address. Use google public DNS ip addresses 8.8.8.8 8.8.4.4 we can use our your router ip if it does dns lookup and gateway router ip address.
Subscribe to:
Posts (Atom)
Linux Partitioning Disk & Formatting commands
Linux Partitioning Disk & Formatting commands fdisk man fdisk pi@rasberrypi ~$ sudo fdisk -l
-
How to enable Outlook 2010 Automatic Send/Receive Launch Outlook 2010 and navigate to Send/Receive tab. Its settings and options are...
-
Linux Partitioning and Formatting in filesystems for Disk Use the following Commands pi@rasberrypia ~$ fdisk pi@rasberrypia ~$ man fids...
-
Mounting Dirves in linux rasberry pi If you want to use flash drive and disk you need to mount the drive in linux manually to that use th...