Category

Scripts and Coding

VBScript, Python, Shell Scripting, Bash, Bash script, shell script, API Scripting, YAML, JSON, XML, Regex, cron, scripting basics, script templates, script security, REST API, webhook, coding tutorial, Go, Golang, Rust, Ruby, Perl, batch script, batch file, .sh, automation script

Page 4
How to stop extracting/viewing users details from AD

How to stop extracting/viewing users details from AD

There are several tools/script available for extracting all user information from AD. Any domain users can access this information by default. For an example, using following attached .vbs script, we can dump entire AD users base to a excel file with following fields. SamAccountName CN FirstName LastName Initials Descrip Office Telephone Email WebPage Addr1 City State ZipCode Title Department Company Manager Profile LoginScript HomeDirectory HomeDrive Adspath LastLogin Primary SMTP I…

Saugata Datta1 min read7.4K
BAT/CMD Script Log Generator

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…

Saugata Datta3 min read13.5K
AJAX Web Chat Server with Active Directory Authentication

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…

Saugata Datta3 min read26.9K
Shared TempDrive Cleanup Script – Automated

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,…

Saugata Datta3 min read7.4K
Automatic NT-Backup (System State Backup) with retention period and e-mail notification after complete.

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…

Saugata Datta3 min read17.1K
Set File Association via Group Policy

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

Saugata Datta2 min read32.6K
Automatically configure Outlook with Exchange on First Logon

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 a PRF(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…

Saugata Datta1 min read11.3K
Disable UNC Path security warning from Group Policy

Disable UNC Path security warning from Group Policy

Whenever you try to run any script, batch file or an executable from UNC path, it's opening a Security Warning. Actually this will prevent you from running any application from network path. If you are planning to deploy anything via script from network path, this security warning will prevent you from executing that. But you can easily manage it from Domain Controller via Group Policy on Computer or User Configuration…

Saugata Datta1 min read42K
Disable Print Screen Function Via VBS Script (By using GPO Startup/Shutdown Script)

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. [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlKeyboard 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…

Saugata Datta2 min read63.4K
Custom Group Policy(GPO) for Changing Desktop Background Colour

Custom Group Policy(GPO) for Changing Desktop Background Colour

As per requirement, we need to change all client windows (XP, and 2003) desktop BG color, but it's impossible to change BG colour manually over 1000 desktop. So, we have to do it with an automatic process. First we have to find out what happened on registry, while we changing Desktop BG color, and to do so, we need a tools which take a Windows Registry Snap after and before…

Saugata Datta2 min read33.9K
OS Dependent Logoff/Logon Script run via GPO

OS Dependent Logoff/Logon Script run via GPO

Use following VBS script Startup or Shutdown script. Option Explicit Dim objItem, colItems, objWMIService, strComputer, objShell strComputer = "." Set objShell = CreateObject("WScript.Shell") Set objWMIService = GetObject("winmgmts:\" & strComputer & "rootcimv2") 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",…

Saugata Datta1 min read7.4K
🧰

Free Tools: IP, DNS, SSL

40+ free network and other tools in one place. No signup. Click explore or visit https://technochat.in/tools

Explore