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 3
Playing with String in PowerShell

Playing with String in PowerShell

As being a Windows Administrator I use PowerShell every day and the best part of it is, I learn something new every day. In simple word PowerShell can make your life easier, and I think you all agreed with it. I often requested to pull various reports from various sources and it was not always possible to get the exact report by executing one or more cmdlet. Sometimes had to manipulate…

Saugata Datta3 min read7.1K
Setup your own Monitoring – Disk Space Utilization Monitoring tool for free

Setup your own Monitoring – Disk Space Utilization Monitoring tool for free

It is always recommended to keep tracking of the disk space utilization for you servers. This will help us to get the idea of our future requirement. There are multiple tools available for track this but you have to pay for most of them. Recently I also had similar kind of requirement and I was asked to provide the free solution for this. There are some free tools available but…

Saugata Datta3 min read8.5K
Port Scanner using PowerShell with Email Notification

Port Scanner using PowerShell with Email Notification

Few days back I was asked to create a script, which will check RDP port status of multiple servers and send the result as an email notification. I have searched for few, but unfortunately there was no ready script for that. I decided to build one using PowerShell, and came out with following script. Hope this script might help you as well. #Which port to scan $port = 3389 #Path…

Saugata Datta1 min read11.2K
Extract VM details from VCenter

Extract VM details from VCenter

Sometimes it's a painful job to extract all the information from vCenter server. From GUI you could export information, but not all the information will be available. I was requested to extrach following information. VM Name Host Name VM IP Address Installed Guest OS Power State of VM Allotted number of CPU Allotted total memory Connected Data store Host Server Host Cluster There is no way we could extract all…

Saugata Datta2 min read15.5K
Set File System Auditing via PowerShell

Set File System Auditing via PowerShell

For last few days, I was trying to figure out how to set file system auditing via command line. I was looking for this as I had to apply some specific audit policy on multiple file servers. From GUI, we could do this, but it will take hours of manual activity. As requirement, I had to set Success Audit policy on Delete subfolders and files, delete and change permission. There…

Saugata Datta2 min read41.2K
AWS EBS Snapshots Automation (Disaster Recovery) from Windows PowerShell

AWS EBS Snapshots Automation (Disaster Recovery) from Windows PowerShell

It is always a good idea to reduce hardware dependencies by moving your data to the cloud. Cloud is much more flexible than traditional hardware infrastructure including VMWare. But you still have to consider the ability of recovering data as and when required. This always helps you to keep your business running with minimal interruption. In AWS, there are several possibilities for implementing an effective backup strategy. EBS snapshots are…

Saugata Datta3 min read22.8K
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.2K
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.2K
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.7K
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.1K
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 read16.9K
🧰

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