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
Face-Off: Windows PowerShell vs PowerShell Core — The Real-World Transition

Face-Off: Windows PowerShell vs PowerShell Core — The Real-World Transition

PowerShell has come a long way since its inception, becoming an essential tool not only for Windows administrators but also for IT professionals working across platforms. The transition from the original Windows PowerShell to PowerShell Core represents more than just a version change—it’s a fundamental evolution in how command-line automation and configuration management are approached in the modern IT landscape. For those who have relied on the familiar blue prompt…

Saugata Datta4 min read1.2K
PowerShell in DevOps Workflows — GitHub Actions & CI/CD

PowerShell in DevOps Workflows — GitHub Actions & CI/CD

PowerShell’s evolution from a Windows-centric scripting language to a cross-platform automation powerhouse has firmly planted it in the heart of modern DevOps. Nowhere is this transformation more apparent than in the continuous integration and continuous deployment (CI/CD) pipelines that drive reliable software delivery. GitHub Actions, with its ease of workflow automation and native integration with the world’s largest code hosting platform, empowers DevOps teams to use PowerShell in ways that…

Saugata Datta4 min read1.2K
S3 Bucket Audit Report using AWS PowerShell Script – Secure your S3 Buckets

S3 Bucket Audit Report using AWS PowerShell Script – Secure your S3 Buckets

  If you are working on AWS environment and if you follow the news related to AWS, you will probably know there are many major data breach happened because of the human negligence, where vast amount of data kept without any protection like encryption, public access blocking. It is all because of human error. We create S3 bucket, and start using them, without realizing on how to keep them protected.…

Saugata Datta2 min read8.2K
Powerful AWS Bot for automation using Telegram Bot API written in PowerShell

Powerful AWS Bot for automation using Telegram Bot API written in PowerShell

Sometimes back I was working on a free notification system using Telegram Bot (https://telegram.org/blog/bot-revolution), and I wrote a simple function in PowerShell, which could be use in various ways for sending instant notification to any smartphone for free (http://bit.ly/2ys1gF5). I thought what else we could do with it, and I have got an idea to use it as AWS Automation Bot to perform simple tasks. I have created a set…

Saugata Datta3 min read14.6K
How to use Telegram Bot as Event Notifier to send instant notification on your Smartphone using PowerShell

How to use Telegram Bot as Event Notifier to send instant notification on your Smartphone using PowerShell

Since we are working in IT industry & proving support to our clients, we are always dependent on various form of notification such as emails, sms, voice etc, and none of them are free, especially when the you are sending those traditional notifications across the globe. Currently almost everyone using smartphone, and mostly those are connected to the internet for 24x7, so I guess, it's time to send those notifications…

Saugata Datta3 min read17.4K
Task Scheduler Error “A specified logon session does not exist” – Fix via Command Line and PowerShell for Scripting

Task Scheduler Error “A specified logon session does not exist” – Fix via Command Line and PowerShell for Scripting

This is very know issue, if you search internet, you will get multiple blog post with same solution for this issue, and if you follow the steps, it actually resolve this issue. In simple word, solution of this problem is Logon to the faulty system. Open SECPOL.MSC from Run Go to Security Settings | Local Policies | Security Options Open Network access: Do not allow storage of passwords and credentials…

Saugata Datta3 min read7.9K
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.3K
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.7K
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.5K
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.7K
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.6K
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 read23.1K
🧰

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