database-tools

Using Profile Scripts

Profile scripts work like autostart scripts in PowerShell. They do not need to exist, but if they do, PowerShell executes its content silently...

Identifying User Profile

Be careful when using $env:userprofile or $home to create paths to user files. When a Windows box is set up for OneDrive, the documents folder may...

Get Rid of Get-EventLog

The Get-EventLog cmdlet provides easy access to event log entries in the primary Windows event logs, however it neither can access the many...

Setting and Clearing Trusted Hosts

PowerShell remoting maintains a list of trusted IP addresses and/or machine names on the client side (the machine that issues the command and...

All Skewed Up

Data can be skewed by its nature. How can you tell if you have skewed data in your database? And if you do, how do you handle it when writing...

Using $Is* Variables

In PowerShell 7, there is a new set of variables all starting with “Is”. They help you understand the environment in which your script...

Relational Division

Dr. Codd’s original relational algebra had eight basic operations. Since relational database management systems are based on set theory, the...

Identifying Antivirus Engine State

In the previous tip you learned how you can query WMI to find out the antivirus product present on your Windows machine: $info = Get-CimInstance...

Deleting Microsoft Teams Cache Data

If you use Microsoft Teams for video conferencing, you may occasionally want to clean cache files and remove traces which reside in a number of...

Deleting Multiple Subfolders

Occasionally, it may become necessary to delete a set of subfolders within a given folder. Here is a simple chunk of code that deletes the folders...

Managing Autostarts

To manage auto starting programs on Windows, don’t bother writing extensive scripts. PowerShell can directly open the autostart manager...

1 24 25 26 27 28 159