Automatic NT-Backup (System State Backup) with retention period and e-mail notification after complete.


A simple script for automatic System State backup where you can easily set backup retention period and it also send you an e-mail notification after completion. With this script you can also archive backup log and if you wish u can also set backup log retention period. It can also set backup files with date stamp.
For e.g., SysBackup_ComputerName_24-03-2009.bkf

You need two small utility,
  • Blat.exe for sending mail, you can get details from here.
  • Forfiles.exe for checking old files, you can get details from here.
Just download following zip file and extract its content to %windir%\ or%windir%\system32 folder.
Download:

Mail Notification





Following are the basic Backup Settings

::Backup Settings START
::Set Backup Path
::~~~~~~~~~~~~~~~~~~~~
set savepath=D:\TestBackup
::Set Backup Name
::~~~~~~~~~~~~~~~~~~~~
set backupname=SysBackup
::Set Backup Retention Period(in days)
::~~~~~~~~~~~~~~~~~~~~
set retention=3
::Set Log Archive Path(Only Folder Name)
::~~~~~~~~~~~~~~~~~~~~
set logarchivepath=BackupLog
::If ‘yes’ then backup log retention will enabled
::~~~~~~~~~~~~~~~~~~~~
set logretention=yes
::If avove settings is “yes” then set log Retention Period(in days)
::~~~~~~~~~~~~~~~~~~~~
set logretentionperiod=3
::———-x———
::E-Mail Settings (SMTP without authentication will work)
::———-x———
::If ‘yes’ a mail will be fired after backup
::~~~~~~~~~~~~~~~~~~~~
set _mailnotification=yes
::If ‘yes’ backup log will attached with mail
::~~~~~~~~~~~~~~~~~~~~
set attachment=no
::Type your e-mail address(for multiple e-mail ID, use ‘,’)
::~~~~~~~~~~~~~~~~~~~~
set email=urname@domain.com
:: Type from mail ID
::~~~~~~~~~~~~~~~~~~~~
set from=%computername%@TC-Auto-NTBackUP
::Set SMTP Server IP Address
::~~~~~~~~~~~~~~~~~~~~
set mserver=10.0.0.1
::Backup Settings END
Batchfile NTBackup.bat
?Download NTBackup.bat
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
@echo offcolor 0cMODE CON: COLS=50 LINES=11echo ***************************************echo Auto SystemState Backup with Retentionecho Log Archive and Mail Notificationecho Code By : Saugata Dattaecho ~~~echo (c) http://technochat.inecho Date: %DATE%, Time: %TIME%echo ***************************************::Backup Settings START::Set Backup Path::~~~~~~~~~~~~~~~~~~~~set savepath=D:\TestBackup::Set Backup Name::~~~~~~~~~~~~~~~~~~~~set backupname=SysBackup::Set Backup Retention Period(in days)::~~~~~~~~~~~~~~~~~~~~set retention=3::Set Log Archive Path(Only Folder Name)::~~~~~~~~~~~~~~~~~~~~set logarchivepath=BackupLog::If 'yes' then backup log retention will enabled::~~~~~~~~~~~~~~~~~~~~set logretention=yes::If avove settings is "yes" then set log Retention Period(in days)::~~~~~~~~~~~~~~~~~~~~set logretentionperiod=3::----------x---------::E-Mail Settings (SMTP without authentication will work)::----------x---------::If 'yes' a mail will be fired after backup::~~~~~~~~~~~~~~~~~~~~set _mailnotification=yes::If 'yes' backup log will attached with mail::~~~~~~~~~~~~~~~~~~~~set attachment=no::Type your e-mail address(for multiple e-mail ID, use ',')::~~~~~~~~~~~~~~~~~~~~set email=vdco.kolkata@familycreditindia.com:: Type from mail ID::~~~~~~~~~~~~~~~~~~~~set from=%computername%@FC-Auto-NTBackUP::Set SMTP Server IP Address::~~~~~~~~~~~~~~~~~~~~set mserver=172.16.10.7::Backup Settings END::--------------------------------::Don't change following lines.::--------------------------------forfiles -p "%savepath%" /m *.bkf /s /d -%retention% /c "cmd /C del @FILE":: get the date and time and then into single variablefor /F "tokens=1-4 delims=/ " %%i in ('date /t') do (set MM=%%jset DD=%%kset YYYY=%%lset date=%%k-%%j-%%lset dirdate=%%j%%k%%l)for /f "Tokens=1-2 delims=/ " %%i in ('time /t') do (set tm=%%iset ampm=%%j)::Deleting Old Backup Log filesif not exist "%HOMEPATH%\Local Settings\Application Data\Microsoft\Windows NT\NTbackup\Data\*.log" goto _nodeldel "%HOMEPATH%\Local Settings\Application Data\Microsoft\Windows NT\NTbackup\Data\*.log" >nul:_nodelntbackup.exe backup systemstate /v:no /r:no /rs:no /hc:off /J %backupname% /l:s /f "%savepath%\%backupname%_%computername%_%date%.bkf"if not exist "%savepath%\%logarchivepath%" md "%savepath%\%logarchivepath%" >nulmove "%HOMEPATH%\Local Settings\Application Data\Microsoft\Windows NT\NTbackup\Data\*.log" %savepath%\%logarchivepath%\%backupname%_%computername%_%date%.txt >nulif not "%_mailnotification%" == "yes" goto _endif not "%attachment%" == "yes" goto _noattachblat "%savepath%\%logarchivepath%\%backupname%_%computername%_%date%.txt" -attach "%savepath%\%logarchivepath%\%backupname%_%computername%_%date%.txt" -to %email% -s "NT Backup Success/Failure Report of %computername%" -f "%from%" -server "%mserver%" > nulgoto _skip:_noattachblat "%savepath%\%logarchivepath%\%backupname%_%computername%_%date%.txt" -to %email% -s "NT Backup Success/Failure Report of %computername%" -f "%from%" -server "%mserver%" > nul:_skipif not "%logretention%" == "yes" goto _endforfiles -p "%savepath%\%logarchivepath%" /m *.txt /s /d -%logretentionperiod% /c "cmd /C del @FILE":_endexit
Now you have to create a schedule for daily backup.



useful Script for windows profile Backup and restore



A very simple script for automate user profile backup and restore. Easy to use, and highly customizable, so you can modify it as per your needs

Download:

http://www.mediafire.com/?nmqdz2imdyd

Automatically configure Outlook with Exchange on First Logon




Few simple steps to configure Outlook (2000/2003/2007) with MS Exchange on first logon:
It’s really not so difficult to configure outlook on first logon, you just need aPRF(Microsoft Outlook profile file) file. To create PRF file you need to download Office 2003 Editions Resource Kit Tools from following location.
Download
And you need Office Source Setup files.
After install open Microsoft Office 2003 Custom Installation Wizard, and select office source, on step 4 select step 17 like following window.

Now Select New Profile, and set a name for the default profile.

On user name field use %username%, and add your exchange server details (for e.g. MBX001.technochat.in), enable cache mode if you want to.

On next screen export PRF file.

Save PRF file on any network location from where other can access (Recommended on netlogon folder).

Sample PRF File
PRF File (6.6 KiB, 26 hits)
Now add following lines on your logon script, it will automatically detect your MS Outlook (2000/2003/2007) installation path, then run and configure your outlook on user first logon. If destination systems don’t have Outlook installed, it will automatically skip configuration part.
?Download outlook.bat
123456
@echo offreg query "HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook" >nulif not "%errorlevel%" == "0" ( FOR /F "TOKENS=3*" %%i in ('reg query "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE" /v Path ^| FINDSTR "REG_SZ" ') do set outpath="%%i %%j"cd %outpath%START "" "OUTLOOK.EXE" /importprf "\\SERVER\SHARE\outlook.prf")


Tiny USB Pendrive/HDD Blocker UBlock v0.3

Disable USB Pendrive/HDD in ur Computer for security, it’s more effective if you have cybercafe, u can easily able to block USB access, and prevent file copy, and protect your computer from virus.
Actually one of my friend have a cybercafe, he request me to make something which can disable USB Pen drive access from all of his client PC, so, i did make this.. Hope this might helpful to you all..

MBlock v1.0 for 64 Bit Windows

MBlock_v1.0_x64.zip (574.6 KiB, 329 hits)


MBlock v1.0 for 32 Bit Windows

MBlock_v1.0_x32.zip



Reblog this post [with Zemanta]

General Windows 7 Shortcuts


With all the less pleasant verdicts about Vista, Windows 7 is perhaps PC users next best news. Codenamed Blackcomb, this new Microsoft operating system is surely a successor over it̢۪s predecessor Windows XP and definitely Vista. With Microsoft to end their support for Windows XP in 2014, we figured Windows 7 will be completely taking over things in the next year or so.

If you are a Windows users its probably time for a change, or at least tryout this new operating system. Here are some shortcut keys to help improve your productivity and user experience with Windows 7.


Shortcut     Description

Win + UP Arrow     Maximize the current window
Win + Down Arrow    Restore down or minimize current windows
Win + Left Arrow     Dock the current window to the left half of the screen
Win + Right Arrrow     Dock the current window to the right half of the screen
Win + [number]     Activate and run the program pinned on Windows 7 Taskbar, running program wont be affected
Win + Home     Minimize all but the current window
Win + Space     Makes all windows transparent so you can see through to the desktop
Win + Pause/Break     Open System Properties
Win + Tab     Flip Aero 3D [press Tab to cycle between Windows]
Win + B     Move focus to notification tray (the right-most portion of the taskbar)
Win + D     Show/Hide desktop
Win + E     Windows Explorer is launched
Win + F     Search
Win + G     Bring all gadgets on top and foreground
Win + L     Lock Computer
Win + M     Minimize all windows
Win + P     Open the projection menu (generally used for laptops connected to projectors)
Win + R     Run Command is launched.
Win + S     OneNote Screen Clipping Tool
Win + T     Show preview thumbnail of running applications in Windows Taskbar one by one without mouse over
Win + X     Mobility Center
Win + #     Quicklaunch
Win + =     Magnifier
Win + [+/-]     Enables the magnifier and zooms in/out
Win + Shift + Up Arrow     Maximize vertical size
Win + Shift + Down Arrow     Restore vertical size
Win + Shift + Left Arrow     Jump to left monitor
Win + Shift + Right Arrow     Jump to right monitor
Win + Shift + M     Undo all window minimization
Win + Shift + T     Cycles backwards
Win + Ctrl + F     Opens the Active Directory Find Computers dialog
Ctrl + Right Arrow     Move the cursor to the beginning of the next word
Ctrl + Left Arrow     Move the cursor to the beginning of the previous word
Ctrl + Up Arrow     Move the cursor to the beginning of the previous paragraph
Ctrl + Down Arrow     Move the cursor to the beginning of the next paragraph
Ctrl + Click     A pinned taskbar icon to cycle through the program’s open windows (e.g. IE)
Ctrl + Win + Tab     Persistent flip 3D
Ctrl + Shift with an arrow key     Select a block of text
Ctrl with any arrow key + Spacebar     Select multiple individual items in a window or on the desktop
Ctrl + Shift + Esc     Open Task Manager directly
Ctrl + Shift + N     Create new folder

Top IT Pros are using This tools

IT professionals are unique, like snowflakes. Degrees, training, intelligence, creativity, and experience all matter, but they combine to craft distinctly specific skill sets. Perhaps that's one reason there are so many utilities and tools driving the support industry. In fact, there are so many that shopping for just the right tool can be overwhelming. So I asked several IT pros to list the tools they depend on -- and I received some surprising results. Their lists are (almost) as unique as they are. Try matching the following IT pros to your job role and skills. Perhaps their lists will help you narrow your search for useful tools and utilities. The good news for all of us is that most of these tools are freeware. 
Note: Comments in quotes belong to the IT professional.   
John Bartow, consultant
                        John Bartow's areas of expertise are network and PC security, which he provides via his consulting firm, WinHaven Computer Consulting Services . Because he's onsite so much, he carries the following tools with him at all times: 
                         RoboForm Pro and Portable : Password manager, form filler, and password management. 
                         CCleaner : File system and registry cleaner.
                         Autoruns:  Startup process manager; shows programs configured to run during system bootup or login.
                         Process Explorer : Lets you see which handles and DLL processes are open.
                         Vipre : Antivirus, malware, and rootkit software. 
                         Spybot S&D : Suite of PC security products. 
                         SIW : Software Information for Windows; gathers and displays detailed information about system properties and settings. 
                         DotNet cleanup tool  (dotnetfx_cleanup_tool): Aaron Stebner's tool Automated cleanup tool for removing the .NET Framework.
                         Auslogics Disk Defrag : Hard drive defragmenting software. 
 Auslogics Registry Defrag : Registry defragmenting software.
 Sterling Camden, consultant
                        Camden Software Consulting, in Bainbridge Island, WA, specializes in migrating existing applications to new technologies. (Its owner, Sterling Camden, also hosts TechRepublic's  IT Consultant  blog.) Vim and Ruby products are his favorite tools, but Camden relies on several others, which he keeps on a laptop that goes everywhere he goes:
                        Vim : "Powerful" text editor. 
                        Google Chrome : Windows browser that's getting a lot of good reviews. 
                        Ruby : "One of the most popular scripting languages."
                        Synergy/DE : Suite of advanced cross-platform software tools for Windows, UNIX, and OpenVMS. (Camden consults for Synergex, the vendor.)  PVCS Configuration Builder: Automates and a
                        PVCS Version Manager : Source control.
                         PuTTY : Telnet and SSH for Windows and
                         FileZilla : Open source FTP client and server. 
                         VMware : Virtualization technology products.
                         Visual Studio 2008 : Suite of development tool
John W. Colby, consultant
                        John W. Colby specializes in business analysis, database design, and programming. He is a past president and a current board member of Database Advisors, Inc ., an online technical support group. Currently living in North Carolina, Colby uses various remote access tools to provide consulting services to clients around the country: 
                         C2DbFW3G: Custom framework for Access.
                         MZ-Tools : Enhanced programming tools for VB and VBA programmers. 
                         LogMeIn Hamachi : VPN service. 
                         VNC : Integrated security. 
                         VMware Infrastructure : Virtualization for individual machines and servers. 
                         Comodo Internet Security : Firewall and Antivirus suite. 
                      ThreatFire : Antivirus software.
 Donna Cook, applications analyst 
                        An analyst in the medical industry, Donna Cook  uses the following tools to work through the myriad projects she manages:
                         CSVed : Manipulate Excel files (.xls). "…great tool for anyone who hates Excel."
                         Copernic Desktop Search : Windows Desktop Search tool. 
                         Irfanview : Fast graphic viewer/conversion tool for Windows.
                        eCleaner : Strips HTML symbols, formatting codes, and so on. 
                        CoreFTP : Free, user-friendly, secure FTP application for Windows.
                        SiSoft Sandra : Gathers information about a machine.
                        Lan MonitorSendToAny : Displays information about every network adapter on your computer. : Extends the Windows Send To menu to include anything on your Program
 Deborah Elam, consultant Specializing in SQL and VB.NET applicatio
                         
                         DNS source script : Creates DSNs from code. "…moving computers and new users requires mu
maintenance." 
 Steve Erbach, software development  
Steve Erbach supplies custom software for the printing ind
                        tools: 
                         HardCopy : Screen capture utility. "…relaxed shar
                         Paint.NET : Image and photo editing software.
                         ColorPic : "Superb" pop-up color picker control
                         Irfanview : Fast graphic viewer for Windows.
                         Windows Grep : Graphical text search and rep
                         CPU-Z : Quickly review information about system's devic
                         FireBug : Web debugging tool. "… absolutely outstanding…no
normal;">                       

 SpinRiteAutoHotKey : Data recovery.  : Automate key
                        and keystrokes."
                         Process Explorer : Lets you see which handles and DLL processes are open. "Excellent and detailed information…"
                         FileMonProcess MonitorRootkitReveale  and : Monitor Windows.
                         Belarc Advisor : Profile system -- iInstalled softwar
                        benchmarks, and more. 
                         WinPatrolWin2PDF : Improve system performance.  : Install PDF fun
                         XML Notepad 2007 : Browse and edit XML
                         MZ-Tools : Enhanced more than a million driver u
                         Disktective : Disk-space reporting. 
                         KeePass : Password manager.  
                         ToDoList : NET-based to-do list. 
                         TreePad : Personal Information 
                       Athur Fuller, business an
uruller specializes in MS-SQL development and dobutor to TechRepublic). He's the author of four books on d
Fuller spent most of last year working (yeah… righ
                        keep his clients happy:   NoteTabxPlorer2 : Award-winning text and HTML editor. "Try this and you will never again load NotePad."   : Trouble
                         
rt cLachlan, president of Lexacorp Ltd., in Papua New Guinea, manages the development of information . Since he's living in par
                         IrfanviewPolestar Virtual Printer : Fast graphic viewer/conversion tool for Windows.  : Virtual PDF and image printer.
                         Foxit Reader : "Fast" PDF reader with "neat" capabilities. 
                         AutoIt : "BASIC-like" scripting language for automating W
                         PowerBASIC : A Windows compiler. "…small, fast, no depe
                        ZTree  : "The best file/directory manager out there."
                        VirtualBox : Virtualization products for x86 systems. "Great for developintesting in others."
                         FireFTP : FTP client plug for Firefox. 
                         NetSetManPro : Network settings manager. "I can go to any of my clients' sites and hook my laptop into their network
                
         Kren Rosenstiel, Web dev
en osenstiel designs and develops Web sites for small businesses and nonprofit organizations, with an e in accessibility features.  Her list is short, but specif
 UltraEdit: "…an excellent all-around program
                         UltraCompare : Compare and merge files, directors, documents, zip archives, and so on.  
Francisco Tapia, database administrator 
                        ncio Tapia maintains and monitors 26 SQL Server systems in a manufactu
gine, performance is a huge issue for Tapia, who likes to develop his own monitoring applis surity policies for system applications and products (SAP) systems. Tapia also markets a c
product that monitors SQL Server systems. Tapia is a magician wRed-Gate products: 
                         SQL BackupCompresses and encrypts SQL Server backups; "… fairly inexpensive and it just works." SQL PromptSQL Respons :   : Intelligent code completion and layout for SQL Server. "Accelerates all my programming.
                         SQL Compare : Moves SQL Server data from development to production. 
                         SQL Diagnostic Manager : Monitors SQL Server. 
                         on Tydda, IT technician 
                         more than a decade of experience in first-, second-, and third-line IT support, aceutical research and development in the United Kingdom. He al
un of time fixing his friends' broken computers. Tydda
 Ad-Aware: The original anti-spywa
                         Spybot-S&D: Detects and removes spyware.  ZoneAlarm: A suite of security products. 
                         AVG Anti-Virus : Antivirus and Internet security. 
                         Startup Control Panel : A simple user interfacestart your computer. 
                         Process Explorer : Lets you see which han
                         Trojan Hunter : Protects system from Trojans.
                         MalwareBytes Anti-Malware : Detects and removes malware "where others fail."
                        : an Waters, business systems business process management systems (BPM
                        ' company, ProMation Systems, Inc., develops paies that want to be more competitive and effect


 MZ-Tools: Enhanced programming tools
                         Find & ReplaceAccess Analyzer : Add-in for Microsoft Access that lets you quickly rename design objects.   : Provides extensive documentation and analysis of Microsoft Access databases. 
                        errors. 
                         rew Wutka, network administrator 
                        w Wutka is a network systems administrator with database and programming skills. Currently, he provide
efense, space, photonics, telecommunications, and medical industries. When he can't find just the right , Wtka sometimes writes his own (such as MoveWindows, in his list below). Here are some of his favorites:
 Remote Administrator (radmin): "Great tool for ad
                         MoveWindows : Custom application that captures all of the open windows on your machine. "Handy for multiple monitor issues when an application gets lost."