Showing posts with label Command Prompt Tricks. Show all posts
Showing posts with label Command Prompt Tricks. Show all posts

Monday, 4 March 2013

Solved:WdsClient: An error occurred while starting networking: a matching network card driver was not found in this image. Please have your Administrator add the network driver for this machine to the Windows PE image on the Windows Deployment Services server


Are you struggling with above error:

And you want to know how to solve this error;then 

you are at right place. After reading this article you 

will be able to solve this error.

To solve this error we need to inject NIC drivers to the 

Boot.wim File. 


















How to Inject NIC/LAN/ETHERNET drivers to Boot.wim 

Create a new folder in your C: dive called Tempwim

copy boot.wim file to your C:\tempwim\ 

image:-
in C:\tempwim folder create 2 more folders named Mount & drivers

copy your NIC/LAN/ETHERNET drivers to drivers folder

but make sure that files are extracted & must contain .inf file  

now run Command prompt as Administrator 

type the following command one by one :

dism /mount-wim /wimfile:C:\tempwim\boot.wim /index:2 /mountdir:C:\tempwim\mount 




the above command will mount Boot.wim file to 


C:\tempwim\mount folder

now type the following command


Monday, 21 January 2013

Solved:Windows7 showing Unidenfied Network

Recently I had faced Unidentified Network Problem on Windows 7 

even my IP-address & all things were correct; then after playing for 

certain time I found the solution for it.

How to Solve:

First go to start type Command prompt you will see the command

prompt icon there just right click & select Run as administrator.

In the command Prompt type the following

netsh int ip reset <press enter>


Now restart your computer 

That's it 

Work Smarter...

Sunday, 9 September 2012

How To Convert Raw File System to NTFS

One of my friend have 1TB external HDD & it's almost full with very

important data but suddenly his Hard-drive partition become RAW & 

Partitions become unaccessible, then he was asking me for solution & 

I had successfully solved the problem & got the data back,& after 

reading this article you will also able to solved the problem of Raw 

File system...

How to Convert RAW filesystem to NTFS ...?

Let's Start 

First connect your external drive to your windows PC (you can also

use this trick to solve same problems with IDE/SATA Internal 

Drives)

Now Goto Run & type CMD

In the CMD window type the following command

CHKDSK /r F:    <press enter>

(In this case I am converting file-system of F drive)

Now it will take some time depending the size of data on your 

Hard-drive.

Once the process completes you can access your data...)

That's it : Thanks for visit & Share it with your friends...)

Work Smarter...)

Sunday, 26 August 2012

How To Block Websites using command line batch script

Hi friends, I received many emails asking for how to block website 

using batch file. Because home users cannot afford Firewalls or 

Parental control software's they want security for free, so no need to 

worry, you are at right place I will provide you a fully free website 

blocker...)














OK friends let's Start Creating website blocker 

First open a Notepad

Copy the code below



echo off
title Websites blocker by askmetricks.blogspot.com
echo off
color a
set /p m=Type URL you want to block:
FIND /C /I "%M%" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^127.0.0.1                           %M%>>%WINDIR%\system32\drivers\etc\hosts
cls
color b
echo %M% Blocked successfully...
pause


Monday, 30 July 2012

Friday, 20 July 2012

Create Silent installer with batch file

I am working as system administrator therefore sometime to me & 

my team need to install lot's of software packages on many systems  

& that time if we install each package it takes so much time.


In the last week i faced that problem, that is i have to wait at every 


machine to click for next ,I agree, finish & takes so much time.


But don't worry because now I found a solution how to install 


software packages silently with a batch file...


OK let's start creating batch file

now copy the below code


Echo off

color a
title Installing software silently


start /wait dotnetfx.exe /q


setup.msi /q



Tuesday, 10 July 2012

Windows ICS Service fail to start

Many time the Technical persons face the problem with ICS


service not starting or ICS service failed to start. & if this service 


is not started then Printer sharing Network sharing & firewall 


doesn't work..., & if we go to services.msc & try to start service 


then it shows error massage , but don't worry in this article 


i am showing you how to Get Start ICS service again...


Ok Let's Start 


Go to Run (Windows+R)


Type CMD (press enter)


in to CMD type the following commands


netsh firewall reset (press enter)


netsh winsock reset (press enter)


net start sharedaccess (press enter)



Now restart your computer & check ICS service is running..!


Ok now you can acess all your shared resources such as 


folders, printers & drives.


Work Smarter...


Saturday, 30 June 2012

Change Ip address with batch file

My boss having Laptop & he having different IP address at office & 

home, & every day when he comes to office he need to change his 

laptop IP adress everyday. So i written a batch script to change IP 

address with single click, & i know this problem is with many people 

so i am sharing this batch script with you...

OK let's starting creating batch file

Copy the code below :


@echo off 
echo Choose: 
echo [A] Set Static IP.  
echo [B] Set Obtain adress automatically.
echo. 
:choice 
SET /P C=[A,B]? 
for %%? in (A) do if /I "%C%"=="%%?" goto A 
for %%? in (B) do if /I "%C%"=="%%?" goto B 
goto choice 

:A 
echo "Setting Static Ip" 
netsh interface ip set address "Local Area Connection" static 172.16.0.6 255.255.0.0 %D_Gate% 172.16.0.100
netsh int ip set dns "Local Area Connection" static 123.123.123.123
netsh int ip add dns "Local Area Connection" 124.124.124.124 
netsh int ip show config 
pause 
goto end

:B 
@ECHO OFF 
ECHO Resetting IP Address and Subnet Mask For DHCP 
netsh int ip set address name = "Local Area Connection" source = dhcp
netsh int ip set dns name = "Local Area Connection" source = dhcp
ipconfig /renew

ECHO Here are the new settings for %computername%: 
netsh int ip show config

pause 
goto end 
:end
echo Visit Askmetricks.blogspot.com
pause

Monday, 18 June 2012

How to ping Multiple pc's using batch file & generate log file


I am working as System admin ,every morning i comes to office i 


need to ping all servers to check they are alive or not & the list of 


server is huge so if i will ping to every server by typing I adress for


every server it will take more time & energy but finally i write a 


batch script which ping all the servers or host on the network & 


saves a log file & all this happens with a single click...


Ok let's start creating batch file.


Copy the code below




@ECHO 
:LOOPSTART
time /T >> Pinglog.txt
ping  192.168.0.1 -n 4 >> Pinglog.txt
ping  192.168.0.2 -n 4 >> Pinglog.txt
ping  192.168.0.3  -n 4 >> Pinglog.txt
ping  192.168.0.4  -n 4 >> Pinglog.txt
ping  192.168.0.5  -n 4 >> Pinglog.txt
ping  192.168.0.6  -n 4 >> Pinglog.txt
pause


Now paste it into notepad & save it as autoping.bat


now the fact is in your case the ip address  will change so you just 


replace the ip  address  with your IP address in the batch file, & 


you can add more ip adresses for ping there is no limit...


To Auto ping just double click the file & it will automatically 


generate pinglog.txt in your batch file's directory by opening 


pinglog.txt you can see the whole report....


That's It ,


Work Smarter...




Wednesday, 6 June 2012

Map Network drive using Command prompt

Many dos or fox pro software needs a map drive for 
loading database files & if there are lots of computer then question arises how to do it shortly. This post will definitely help you to create batch file for do more work in shortest period 

For creating Map drive we must need Shared folder or drive on network.

Following are the steps to Map network drive.

Go to Run

Type CMD

In command prompt type the following command

net use K: \\192.168.0.1\folder













In this case K: is the drive letter for network drive

192.168.0.1 is the ip address & Folder is the name of shared folder

If there is password then it will ask for password just punt the 
password & hit Enter 


If you want to create batch file just copy the code below


echo off


Title Mounting Map drive


net use K: \\192.168.0.1\folder


exit


Now open your notepad & paste the code & save as mapdrive.bat


You will need to replace Ip adress & Folder path 

That's It 

Now check into My computer you will see the Network drive


Thursday, 26 April 2012

Make Funny Massages

My friends are ask me for how to create batch file which will create funny massages on college computers.


In this article I am going to show you how to create Funny 

Massages.

Ok lets start making it...

first copy the code below 

echo off
:A
msg * Hello I want to be your friend...
Msg * If you want to make me your friend...
msg * press ok.....
msg * ok now we are friends...
Msg * lets have fun together.... 

Monday, 9 January 2012

Thursday, 8 December 2011

How to Unhide Permanently Hidden Files & Folders

Daily New Viruses are comes & they comes to the system through 


USB or Internet Some viruses hides the files & folders & when we 


go to Change the attribute there is Hidden option check box is 


disabled. Even if you scan with antivirus the files does not shows.


That time the user get confused & scared the data has been loss..


But don't worry because after reading this article you are able to 


unhide that files get your data back successfully..























To Enable this option

Go to RUN

Type CMD