Search This Blog

Wednesday, 16 April 2014

HOW TO MAKE A BOOTABLE USB DRIVE FOR WINDOWS IN DOS

Make Bootable Usb Drive:


see this post http://www.wikihow.com/Make-a-USB-Bootable

Bootable USB :

To make a Bootable USB drive do the following,

You will need to run Command Prompt as an Administrator. Right-click on it and select Run as Administrator. You may need to enter the Administrator password.
  • This method will create a USB drive that is bootable. You can then copy the contents of an operating installation disc onto the drive to create a portable installation drive.
  • This method only works in Windows Vista, 7, and 8.
Open the disk management utility. This can be opened by entering the command diskpart.
Display the connected disks. Type the command list disk to show a list of all the drives connected to your computer. Your USB drive should be listed here as well. Make note of the number next to your USB drive.
Select the USB drive. Enter the command select disk #, replace “#” with the number from the previous step.
Clean the flash drive. Enter the command clean to have the disk management utility verify the integrity of the USB drive, and erase all data.
Create a bootable partition. Once the USB drive is clean, type in create partition primary. You will see a message saying that the operation was successful.
Select the new partition. Enter the command select partition 1 and press Enter. Once you receive a confirmation message, type active and press Enter. This will activate the partition.
Format the USB drive. Input the command format fs=fat32. When you press Enter, the program will work for a few minutes (if it is a small USB, e.g. 32Gb could actually take hours to SLOW format), and the progress will be displayed as a percentage.
Assign the USB a drive letter. Enter the command assign to give the thumb drive a letter designation. Type exit to end the disk management program.
Copy the operating system. Once the USB drive has been made bootable, you can copy over the installation files for the operating system you want to install. You can do this by dragging and dropping using your preferred file manager/explorer. Copy over any drivers you might need during the operating system installation to make the process much smoother.

Steps:
1.diskpart
2.list disk
3.select disk #
4.clean
5.create partition primary
6.select partition 1
7.active
8.format fs=fat32
9.assign (drive letter)
10.exit
11. copy the operating system in USB


USEFUL DOS COMMAND REFERENCE

Useful Dos Commands,


TCP/IP commands:
telnet
netstat
nslookup
tracert
ping
ftp
NetBIOS commands (just some examples):
nbtstat
net use
net view
net localgroup
TCP/IP stands for transmission control protocol/Internet protocol. As you can guess by the name, TCP/IP is the protocol under which the Internet runs. along with user datagram protocol (UDP). So when you are connected to the Internet, you can try these commands against other Internet computers. Most local area networks also use TCP/IP.
NetBIOS (Net Basic Input/Output System) protocol is another way to communicate between computers. This is often used by Windows computers, and by Unix/Linux type computers running Samba. You can often use NetBIOS commands over the Internet (being carried inside of, so to speak, TCP/IP). In many cases, however, NetBIOS commands will be blocked by firewalls. Also, not many Internet computers run NetBIOS because it is so easy to break in using them.
* NETSTAT = VIEW THE STATS OF THE COMPUTERS ONE FEATURE IS

TO GET PEOPLE’S I.P. FOR MORE TYPE NETSTAT/?

* FSUTIL AND FSUTIL FSINFO = SHOWS YOU THINGS LIKE LIST OF

ALL DRIVES

* IPCONFIG OR IPCONFIG/ALL = SHOWS YOU I.P. AND ALL OTHERS

IN A NETWORK

* ERASE C:\PROGRAM FILES = ERASES ALL PROGRAM FILES OR LEAVE

JUST THE C DELETE EVERYTHING

* NBTSTAT = GETTING INFORMATION ON YOUR COMPUTER

AND OTHERS

* TREE = DISPLAYS ALL FILES ON PROGRAM FILES AND DESKTOP GOOD

FOR SEEING IF YOU HAVE ANY KEYLOGGERS

* TRACERT (IP) = TO SEE IF THE I.P. EXIST
* NET USE C: \\PCNAME\C$ /USER: PCNAME\ADMINISTRATOR

= TO SIGN IN AS AN ADMINISTRATOR THAT’S NOT SIGNED IN

* NSLOOKUP SET EXP:HOTMAIL.COM = GETTING IPS

FROM WEB SITES

* /WHOIS (SCREENAME) = ONLY ON A CHAT ROOM, TO FIND

INFORMATION A THAT PERSON WHICH OWNS THE SCREENAME AN I.P.

FOR USE IN COMMAND PROMPT FOR PATH CHANCHING

* DISKPART = SHOWS YOU STUFF LIKE THE COMPUTER NAME AND

TAKES YOU TO DISK PART OPTION

* CD\PROGRA~1 ENTER THEN DIR = PROGRAMS INSTALLED (2)
* CD \WINDOWS \SYSTEM = TO LOOK FOR STUFF IN THIS FOLDERS
* TELNET : REMOTE CONTROLLING
* NET START MESSENGER = START NET SEND WHEN IT IS DISABLE
FOR USE IN COMMAND PROMPT ONLY ON A NETWORK OR HACKING

* BOOTCFG = YOU CAN MAKE CHANGES TO BOOT THE COMPUTER ,

BOOT IT MESS IT UP

* GPRESULT = SHOWS ALL THE INFORMATION OF A COMPUTER
* DRIVERQUERY = LIST OF DRIVES AND THEIR PROPERTIES
* GETMAC = THIS GETS THE MAC (MEDIA ACCESS CONTROL) ADDRESS
* NETSH = GOOD FOR HACKING A NETWORK CONFIGURATION TOOL

TYPE NETSH /? FOR MORE

* OPENFILES = ONLY FOR WINDOWS PROFESSIONAL ALLOWS AN

ADMINISTRATOR TO DISPLAY OR DISCONNECT OPEN FILES

* REG = THE CONSOLE REGISTRY TOOL
* SYSTEMINFO = INFO
* TASKLIST AND TASKKILL = LIKE PRESING CTRL+ALT+DELETE


SOME MORE COMMANDS.
ADDUSERS Helps Add or list users to/from a CSV file
ARP Address Resolution Protocol
ASSOC Change file extension associations
ASSOCIAT One step file association
AT Schedule a command to run at a later time
ATTRIB Change file attributes
BOOTCFG Edit Windows boot settings
BROWSTAT Get domain, browser and PDC info
CACLS Change file permissions
CALL Call one batch program from another
CD Change Directory – move to a specific Folder
CHANGE Change Terminal Server Session properties
CHKDSK Check Disk – check and repair disk problems
CHKNTFS Check the NTFS file system
CHOICE Accept keyboard input to a batch file
CIPHER Encrypt or Decrypt files/folders *
CleanMgr Automated cleanup of Temp files, recycle bin
CLEARMEM Clear memory leaks
CLIP Copy STDIN to the Windows clipboard.
CLS Clear the screen
CLUSTER Windows Clustering
CMD Start a new CMD shell
COLOR Change colors of the CMD window
COMP Compare the contents of two files or sets of files
COMPACT Compress files or folders on an NTFS partition
COMPRESS Compress individual files on an NTFS partition
CON2PRT Connect or disconnect a Printer
CONVERT Convert a FAT drive to NTFS.
COPY Copy one or more files to another location
CSVDE Import or Export Active Directory data
DATE Display or set the date
Dcomcnfg DCOM Configuration Utility
DEFRAG Defragment hard drive
DEL Delete one or more files
DELPROF Delete NT user profiles
DELTREE Delete a folder and all subfolders
DevCon Device Manager Command Line Utility
DIR Display a list of files and folders
DIRUSE Display disk usage
DISKCOMP Compare the contents of two floppy disks
DISKCOPY Copy the contents of one floppy disk to another
DNSSTAT DNS Statistics
DOSKEY Edit command line, recall commands, and create macros
DSADD Add user (computer, group..) to active directory
DSQUERY List items in active directory
DSMOD Modify user (computer, group..) in active directory
ECHO Display message on screen
ENDLOCAL End localisation of environment changes in a batch file
ERASE Delete one or more files
EXIT Quit the CMD shell
EXPAND Uncompress files
EXTRACT Uncompress CAB files
FC Compare two files
FDISK Disk Format and partition
FIND Search for a text string in a file
FINDSTR Search for strings in files
FOR Loop command: all options Files, Directory, List
FORFILES Batch process multiple files
FORMAT Format a disk
FREEDISK Check free disk space (in bytes)
FSUTIL File and Volume utilities
FTP File Transfer Protocol
FTYPE Display or modify file types used in file extension associations
GLOBAL Display membership of global groups
GOTO Direct a batch program to jump to a labelled line
HELP Online Help
HFNETCHK Network Security Hotfix Checker
IF Conditionally perform a command
IFMEMBER Is the current user in an NT Workgroup
IPCONFIG Configure IP
KILL Remove a program from memory
LABEL Edit a disk label
LOCAL Display membership of local groups
LOGEVENT Write text to the NT event viewer.
LOGOFF Log a user off
LOGTIME Log the date and time in a file
MEM Display memory usage
MD Create new folders
MODE Configure a system device
MORE Display output, one screen at a time
MOUNTVOL Manage a volume mount point
MOVE Move files from one folder to another
MOVEUSER Move a user from one domain to another
MSG Send a message
MSIEXEC Microsoft Windows Installer
MSINFO Windows NT diagnostics
MSTSC Terminal Server Connection (Remote Desktop Protocol)
MUNGE Find and Replace text within file(s)
MV Copy in-use files
NET Manage network resources
NETDOM Domain Manager
NETSH Configure network protocols
NETSVC Command-line Service Controller
NBTSTAT Display networking statistics (NetBIOS over TCP/IP)
NETSTAT Display networking statistics (TCP/IP)
NOW Display the current Date and Time
NSLOOKUP Name server lookup
NTBACKUP Backup folders to tape
NTRIGHTS Edit user account rights
PATH Display or set a search path for executable files
PATHPING Trace route plus network latency and packet loss
PAUSE Suspend processing of a batch file and display a message
PERMS Show permissions for a user
PERFMON Performance Monitor
PING Test a network connection
POPD Restore the previous value of the current directory saved by PUSHD
PORTQRY Display the status of ports and services
PRINT Print a text file
PRNCNFG Display, configure or rename a printer
PRNMNGR Add, delete, list printers set the default printer
PROMPT Change the command prompt
PsExec Execute process remotely
PsFile Show files opened remotely
PsGetSid Display the SID of a computer or a user
PsInfo List information about a system
PsKill Kill processes by name or process ID
PsList List detailed information about processes
PsLoggedOn Who’s logged on (locally or via resource sharing)
PsLogList Event log records
PsPasswd Change account password
PsService View and control services
PsShutdown Shutdown or reboot a computer
PsSuspend Suspend processes
PUSHD Save and then change the current directory
QGREP Search file(s) for lines that match a given pattern.
RASDIAL Manage RAS connections
RASPHONE Manage RAS connections
RECOVER Recover a damaged file from a defective disk.
REG Read, Set or Delete registry keys and values
REGEDIT Import or export registry settings
REGSVR32 Register or unregister a DLL
REGINI Change Registry Permissions
REM Record comments (remarks) in a batch file
REN Rename a file or files.
REPLACE Replace or update one file with another
RD Delete folder(s)
RDISK Create a Recovery Disk
RMTSHARE Share a folder or a printer
ROBOCOPY Robust File and Folder Copy
ROUTE Manipulate network routing tables
RUNAS Execute a program under a different user account
RUNDLL32 Run a DLL command (add/remove print connections)
SC Service Control
SCHTASKS Create or Edit Scheduled Tasks
SCLIST Display NT Services
ScriptIt Control GUI applications
SET Display, set, or remove environment variables
SETLOCAL Control the visibility of environment variables
SETX Set environment variables permanently
SHARE List or edit a file share or print share
SHIFT Shift the position of replaceable parameters in a batch file
SHORTCUT Create a windows shortcut (.LNK file)
SHOWGRPS List the NT Workgroups a user has joined
SHOWMBRS List the Users who are members of a Workgroup
SHUTDOWN Shutdown the computer
SLEEP Wait for x seconds
SOON Schedule a command to run in the near future
SORT Sort input
START Start a separate window to run a specified program or command
SU Switch User
SUBINACL Edit file and folder Permissions, Ownership and Domain
SUBST Associate a path with a drive letter
SYSTEMINFO List system configuration
TASKLIST List running applications and services
TIME Display or set the system time
TIMEOUT Delay processing of a batch file
TITLE Set the window title for a CMD.EXE session
TOUCH Change file timestamps
TRACERT Trace route to a remote host
TREE Graphical display of folder structure
TYPE Display the contents of a text file
USRSTAT List domain usernames and last login
VER Display version information
VERIFY Verify that files have been saved
VOL Display a disk label
WHERE Locate and display files in a directory tree
WHOAMI Output the current UserName and domain
WINDIFF Compare the contents of two files or sets of files
WINMSD Windows system diagnostics
WINMSDP Windows system diagnostics II
WMIC WMI Commands
XCACLS Change file permissions
XCOPY Copy files and folders
This list is not exhaustive . Most commands will work well, however please don’t fume up as some of these might not work on your machine due to version dependencies
IMP DOS COMMANDS
Accessibility Controls = access.cpl
Add Hardware Wizard = hdwwiz.cpl
Add/Remove Programs = appwiz.cpl
Administrative Tools = control admintools
Automatic Updates = wuaucpl.cpl
Bluetooth Transfer Wizard = fsquirt
Calculator = calc
Certificate Manager = certmgr.msc
Character Map = charmap
Check Disk Utility = chkdsk
Clipboard Viewer = clipbrd
Command Prompt = cmd
Component Services = dcomcnfg
Computer Management = compmgmt.msc
Date and Time Properties = timedate.cpl
DDE Shares = ddeshare
Device Manager = devmgmt.msc
Direct X Control Panel (If Installed)* = directx.cpl
Direct X Troubleshooter = dxdiag
Disk Cleanup Utility = cleanmgr
Disk Defragment = dfrg.msc
Disk Management = diskmgmt.msc
Disk Partition Manager = diskpart
Display Properties = control desktop/desk.cpl
Dr. Watson System Troubleshooting Utility = drwtsn32
Driver Verifier Utility = verifier
Event Viewer = eventvwr.msc
File Signature Verification Tool = sigverif
Findfast = findfast.cpl
Folders Properties = control folders
Fonts = control fonts
Fonts Folder = fonts
Free Cell Card Game = freecell
Game Controllers = joy.cpl
Group Policy Editor (XP Prof) = gpedit.msc
Hearts Card Game = mshearts
Iexpress Wizard = iexpress
Indexing Service = ciadv.msc
Internet Properties = inetcpl.cpl
IP Configuration = ipconfig
Java Control Panel (If Installed) = jpicpl32.cpl
Java Application Cache Viewer (If Installed) = javaws
Keyboard Properties = control keyboard
Local Security Settings = secpol.msc
Local Users and Groups = lusrmgr.msc
Logs You Out Of Windows = logoff
Microsoft Chat = winchat
Minesweeper Game = winmine
Mouse Properties = control mouse
Mouse Properties = main.cpl
Network Connections = control netconnections
Network Connections = ncpa.cpl
Network Setup Wizard = netsetup.cpl
Notepad = notepad
Nview Desktop Manager (If Installed) = nvtuicpl.cpl
Object Packager = packager
ODBC Data Source Administrator = odbccp32.cpl
On Screen Keyboard = osk
Opens AC3 Filter (If Installed) = ac3filter.cpl
Password Properties = password.cpl
Performance Monitor = perfmon.msc
Performance Monitor = perfmon
Phone and Modem Options = telephon.cpl
Power Configuration = powercfg.cpl
Printers and Faxes = control printers
Printers Folder = printers
Private Character Editor = eudcedit
Quicktime (If Installed) = QuickTime.cpl
Regional Settings = intl.cpl
Registry Editor = regedit
Registry Editor = regedit32
Remote Desktop = mstsc
Removable Storage = ntmsmgr.msc
Removable Storage Operator Requests = ntmsoprq.msc
Resultant Set of Policy (XP Prof) = rsop.msc
Scanners and Cameras = sticpl.cpl
Scheduled Tasks = control schedtasks
Security Center = wscui.cpl
Services = services.msc
Shared Folders = fsmgmt.msc
Shuts Down Windows = shutdown
Sounds and Audio = mmsys.cpl
Spider Solitare Card Game = spider
SQL Client Configuration = cliconfg
System Configuration Editor = sysedit
System Configuration Utility = msconfig
System File Checker Utility = sfc
System Properties = sysdm.cpl
Task Manager = taskmgr
Telnet Client = telnet
User Account Management = nusrmgr.cpl
Utility Manager = utilman
Windows Firewall = firewall.cpl
Windows Magnifier = magnify
Windows Management Infrastructure = wmimgmt.msc
Windows System Security Tool = syskey
Windows Update Launches = wupdmgr
Windows XP Tour Wizard = tourstart
Wordpad = write
print managment = printermanagement.msc
user accounts = control userpasswords2

Sunday, 25 November 2012

HOW TO DELETE LOCAL DOMAIN USER PROFILE WINDOWS 7

How can I delete the local user profile on a Windows 7 machine that is part of a domain as well?

You can do it with the User Profiles dialog in System Properties:
  • Properites for Computer
  • Advanced system settings (on the left side)
  • Settings for User Profiles (in the middle)
  • Select the profile you want to delete and click the delete button
enter image description here

To clear user local profile via registry:
  1. Press on Start > Run >Regedit
  2. Navigate to the following registry key :“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  3. Under ProfileList navigate to binary key’s like this: S-1-5-21-3656904587-1668747452-4095529-500On the right side under ProfileImagePath you'll see the profile path.
  4. Chose the one with the desired user and delete the long registry key like: “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList”

Thursday, 22 November 2012

CONFIGURING GMAIL ACCOUNT IN OUTLOOK


Configuing Gmail account in outlook client



You can configure Outlook to handle your Gmail account as a POP3 or as an IMAP account. Depending on your choice, you have to enable the related account option in your Gmail account (Gmail Settings -> Forwarding and POP/IMAP).
Below, we will detail how to setup Microsoft Office Outlook 2000 to 2010 to send, receive and store email messages for a Gmail address. Before getting started, please make sure you know your Gmail email address and your Gmail password.

Start Outlook: from the main Outlook window, go to Tools -> Email Accounts.



On the Outlook popup window, select to "Add a new e-mail account" and click on Next.



On the server type step, select POP3 or IMAP (depending on your needs) for the Outlook email account type, then click on Next. There is no need to select the IMAP type, because the Gmail web based account will anyway keep a copy of all emails, just like an IMAP account would do.



On the next screen, you will have to specify your Outlook Gmail settings, such as your Gmail username and password, Gmail server addresses, Gmail server ports and Outlook Gmail display name.
On the User Information section, enter your Name (it can be anything, but remember this is going to be the name/text that people will see when you will send them an email via your Outlook Gmail account) and your Gmail email address.


On the Server Information section, enter the Google Gmail servers:

POP Gmail servers for Outlook:
- Incoming mail server: pop.gmail.com
- Outgoing mail server: smtp.gmail.com.

IMAP Gmail server for Outlook:
- Incoming mail server: imap.gmail.com
- Outgoing mail server: smtp.gmail.com.

As an alternative, you may setup any other outgoing mail server that you have access to, such as your ISP's SMTP server or your own hosted outgoing server. However, if you setup a 3rd party outgoing mail server, you will not have access to sent emails via your web based Gmail account panel.


On the Logon Information section, enter your Gmail User Name (which is the same as your Gmail email address) and your Gmail password. Tick the box "Remember password" in order to make Outlook to store the Gmail password, so it will not ask you about it every time when Outlook will send/receive emails for the Gmail account.


Click on the "More Settings" button and go to the "Advanced" window tab.

If you use Gmail as a POP Outlook account:
- On the "Incoming server (POP3)" field, enter 995 and mark the box "This server requires an encrypted connection (SSL)";
- On the "Outgoing server (SMTP)" field, enter 465 and mark the box "This server requires an encrypted connection (SSL)".

If you use Gmail as an IMAP Outlook account:
- On the "Incoming server (IMAP)" field, enter 993 and mark the box "This server requires an encrypted connection (SSL)";
- On the "Outgoing server (SMTP)" field, enter 587 and mark the box "This server requires an encrypted connection (TLS)".

For both POP and IMAP, you also have to enable the option "My outgoing mail server requires authentication" from the Outgoing Server tab.

You can also change the server timeouts period: this defines the time interval for which Outlook will wait to establish a Gmail connection, before triggering a connection error. The slower your Internet connection is, the greater period you should put.
The "Delivery" options are not important for an Outlook Gmail account: no matter what you would change here, Gmail will always keep a copy of each email on the Gmail server.


When you are done setting up your Outlook Gmail advanced settings, click on OK to return to the Outlook Gmail account window.





To verify your Outlook Gmail setup, click on the "Test Account Settings" button: this will make Outlook to attempt to login to your Gmail account and to send & receive an Outlook test email. If the test will succeed, you will notice the test email in your Outlook Inbox folder. If the test fails, Outlook will prompt you with the error messages - most likely, you didn't setup the correct server settings or the Gmail password is wrong.

POP3 AND IMAP EMAIL PROTOCOL DIFFERENCE

Difference between POP and IMAP email protocols

If you're trying to decide between using POP and IMAP, we encourage you to use IMAP.

Unlike POP, IMAP offers two-way communication between your web Gmail and your email client. This means when you log in to Gmail using a web browser, actions you perform on email clients and mobile devices (ex: putting mail in a 'work' folder) will instantly and automatically appear in Gmail (ex: it will already have a 'work' label on that email the next time you sign in).

IMAP also provides a better method to access your mail from multiple devices. If you check your email at work, on your mobile phone, and again at home, IMAP ensures that new mail is accessible from any device at any given time.

Finally, IMAP offers a more stable experience overall. Whereas POP is prone to losing messages or downloading the same messages multiple times, IMAP avoids this through two-way syncing capabilities between your mail clients and your web Gmail.
How remove outlook temp files



When opening an attachment directly from within Outlook you could get an error message saying that it can’t create the file and to that you need check the permissions on the folder you want to save it in. In most cases the permissions on the folder isn’t the issue but the fact that the folder is “full”. When you open an attachment directly from within Outlook it will first save a copy to a subfolder of the Temporary Internet Files folder. Cleaning out the folder will solve the issue.








Unfortunately this is easier said than done. The subfolder name Outlook creates (on installation of Outlook) in the Temporary Internet Files folder is quite random. In Outlook 2003 and previous, the name starts with OLK and is followed by up to 4 random numbers or letters. In Outlook 2007 and Outlook 2010, this folder is called Content.Outlook and then has a subfolder which is named with with 8 random numbers and letters. In addition, by default, you cannot simply browse to the folder to clean it out. Getting to the Temporary Outlook Folder can still be accomplished in 2 easy steps though.


Step 1: Locate the folder

The folder location is stored in the registry in the following key;



Outlook 97

HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Outlook\Security


Outlook 98

HKEY_CURRENT_USER\Software\Microsoft\Office\8.5\Outlook\Security


Outlook 2000

HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Security


Outlook 2002/XP

HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Security


Outlook 2003

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security


Outlook 2007

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security


Outlook 2010

HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security



source: http://www.howto-outlook.com/faq/securetemp.htm

Linux Partitioning Disk & Formatting commands

Linux Partitioning Disk & Formatting commands fdisk man fdisk pi@rasberrypi ~$ sudo fdisk -l