Nov
10
2009
0

BAT/CMD Script Log Generator

BAT/CMD scripts are very much helpful to do a monotonous job automatically and sometimes the outputs of the batch script file are very much required. We can generate log file from batch file, but we can’t get the 100% log within batch file, so I was looking for a tool which generate log files from a batch script. After a few search, finally I found a tiny utility called wtee.exe on wintee.

To use it properly, I have created a batch file with which u can execute any batch script, and after executing the batch file it will automatically archive the entire output log, also there is an option to send mail notification with the output file as mail attachment (optional). For sending mail notification I used blat.exe from www.blat.net.

(more…)

If you Liked It, then Share It!!
  • Google Bookmarks
  • LinkedIn
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • Ping.fm
  • MySpace
  • Live
  • Yahoo! Bookmarks
  • MSN Reporter
  • Print
Written by Saugata (76 views) in: Scripts, Server, Windows | Tags: , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...
Aug
08
2009
4

AJAX Web Chat Server with Active Directory Authentication

Again, as per business requirement, we are looking for some free internal (LAN) chat solution. There are some free LAN chat tools available but most of them are failed to detect multiple VLAN, only working fine in single VLAN.

But we need something which can be implemented on more than 50 branches across India. So we are looking for a free chat server. There are some chat servers available, but none of them support Active Directory (LDAP) authentication.

Suddenly we found a solution, actually it’s not a single solution, it a combine solution of PHPBB3 and AJAX Chat.

(more…)

If you Liked It, then Share It!!
  • Google Bookmarks
  • LinkedIn
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • Ping.fm
  • MySpace
  • Live
  • Yahoo! Bookmarks
  • MSN Reporter
  • Print
Jul
23
2009
0

Shared TempDrive Cleanup Script – Automated

Sometimes it’s not possible to remember a specific weekly job to perform. So if we can make it as scheduled job to do the same, it will be better. There will be not such risk. Just take my example, I have to clean our office common shared temporary folder on every Sunday, but I am not in office on Sunday. So, I have two options to do the same, first, I have to call our DCO Support and instruct them to get the job done, and if I go with this option there will be lots of dependencies, or else I have to create a script which will do the job automatically.

So I decided to go for second option. With second option I have to make sure following things should be perform.

  • I just can’t delete all files & folder from temp drive, coz there might came some requirement to recover files from last week temp drive(Yes, everyone aware of the temp drive policy). So, I have to copy all the content of the Temp Drive to a different location.
  • I have to create a folder with date stamp, eg. Folder_date (tempbkp_23-09-2009). So, I have to create a specific date variable.
  • After copy all content of the temp drive to other location, I have to give Everyone – Read only permission to that folder and then have to share that folder as well.
  • Delete all files and folder from temp drive. Yea, as per my knowledge, there is no such command available on windows by which I can delete all files and folder from a specific folder or a specific map drive. (So…..time to think some alternatives)
  • Now the critical part, on next scheduled date, this script will automatically delete last backup folder, and create a new folder for latest backup.

And finally I made it with considering all above requirement without using any third part toolsJ. And as of now it’s working properly, check out the script bellow.
(more…)

If you Liked It, then Share It!!
  • Google Bookmarks
  • LinkedIn
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • Ping.fm
  • MySpace
  • Live
  • Yahoo! Bookmarks
  • MSN Reporter
  • Print
Written by Saugata (401 views) in: Admin Tools, Scripts, Server, Windows | Tags: , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading ... Loading ...
Mar
25
2009
5

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.

  System32.zip (75.5 KiB, 712 hits)


Mail Notification


(more…)

If you Liked It, then Share It!!
  • Google Bookmarks
  • LinkedIn
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • Ping.fm
  • MySpace
  • Live
  • Yahoo! Bookmarks
  • MSN Reporter
  • Print
Mar
20
2009
2

Simple 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.

backup
(more…)

If you Liked It, then Share It!!
  • Google Bookmarks
  • LinkedIn
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • Ping.fm
  • MySpace
  • Live
  • Yahoo! Bookmarks
  • MSN Reporter
  • Print
Written by Saugata (1,689 views) in: Scripts, Windows | Tags: , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading ... Loading ...
Feb
12
2009
2

Set File Association via Group Policy

Recently after installing FAX Server on our site, we are having some problem with opening received FAX file from user desktop. FAX files are .G3N/.G3F/.CTL of which .G3N and .G3F file can be opened in Windows Image Viewer and .CTL file can be opened in Notepad.

But the problem is, users have to make it their own, or we have to do it manually on all workstation across all branches. But it’s almost impossible to do so, so we have to think about some global solution.
(more…)

If you Liked It, then Share It!!
  • Google Bookmarks
  • LinkedIn
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • Ping.fm
  • MySpace
  • Live
  • Yahoo! Bookmarks
  • MSN Reporter
  • Print
Oct
08
2008
16

Disable Print Screen Function Via VBS Script (By using GPO Startup/Shutdown Script)

Another requirement, now customer need to disable default windows Print Screen function on all of their user desktop,

So, we started our searching again, and easily we able to find out how to disable print screen on windows by importing following registry.

1
2
3
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,37,e0,00,00,54,00,\
00,00,00,00

So, again we start working to create a custom adm file. As because this is a HKLM key, so we need Privilege to import it into registry, and only way to do so is to apply some policy via Computer Configuration, whit which we can force policy on each computer not on individual user.

But suddenly we discover that ADM files don’t support reg_binary values, so we have to find out any other alternatives.

(more…)

If you Liked It, then Share It!!
  • Google Bookmarks
  • LinkedIn
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • Ping.fm
  • MySpace
  • Live
  • Yahoo! Bookmarks
  • MSN Reporter
  • Print
Oct
06
2008
1

OS Dependent Logoff/Logon Script run via GPO

Use following VBS script Startup or Shutdown script.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Option Explicit
Dim objItem, colItems, objWMIService, strComputer, objShell
strComputer = "."
Set objShell = CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem",,48)
For Each objItem in colItems
                If InStr(objItem.Caption,"2000") Then
                                'Add your line here for 2000
                                objShell.Run "regedit", 1, True
                End If
    		If InStr(LCase(objItem.Caption),Lcase("XP")) Then
                                'Add your command line here for 2000
                                objShell.Run "calc", 1, True
                End If
		If InStr(LCase(objItem.Caption),Lcase("2003")) Then
                                'Add your command line here for 2000
                                objShell.Run "notepad", 1, True
                End If
Next


with above script, on Windows 2000 it will execute regedit.exe, on Windows XP it will execute calc.exe, and on Windows 2003 it will execute notepad.exe.

You can change the file as you wish..

If you Liked It, then Share It!!
  • Google Bookmarks
  • LinkedIn
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • Ping.fm
  • MySpace
  • Live
  • Yahoo! Bookmarks
  • MSN Reporter
  • Print
Written by Saugata (205 views) in: Scripts | Tags: , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (7 votes, average: 4.71 out of 5)
Loading ... Loading ...

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes