While using Windows Subsystem for Linux (WSL), you may need to restart your WSL Linux distribution to make changes to the WSL config, or due to another random issues. To do this, we can simply run the wsl –shutdown -d […]
PowerShell Script: Create Multiple Test CSV Files
In this post we share a PowerShell script that generates multiple CSV files in the current directory, each containing a random number of rows with sample data. Please note that this script uses basic random data for illustration purposes, and […]
WSL: Basic Commands
Windows Subsystem for Linux (WSL) is a feature released by Microsoft in 2016 that allows us to install and manage multiple Linux distributions on our local Windows computer with ease. The latest versions of Windows comes with a set of […]
SQL Server Error: Database Cannot Be Opened. It Is in the Middle of a Restore.
Database [DatabaseName] Cannot Be Opened. It Is in the Middle of a Restore is a common error in SQL Server that can happen when you are trying to query, alter or drop a database while it’s still in the middle […]
SQL Server Script: User Permissions Audit
As a Database Administrator (DBA), managing and auditing user permissions is a crucial aspect of ensuring the security and integrity of a SQL Server environment. Having a script to check a user’s permissions quickly is key to day-to-day support as […]
Disabling Windows Firewall with PowerShell
In this blog post, we’ll dive into a specific scenario: disabling the Windows Firewall using PowerShell. It’s crucial to emphasize that this is a specific use case, as maintaining a robust level of security is paramount. The Windows Firewall serves […]