Category Archives: Microsoft

Unlocking Powershell

Are you looking to unlock the power of PowerShell? This blog post will walk you through the basics of scripting with PowerShell, as well as the best practices to get the most out of your scripts. From understanding the benefits of using PowerShell to troubleshooting your scripts, this guide is sure to give you the tools and resources… Read More »

Ten Most Useful PowerShell Commands

These are some of the most useful PowerShell commands that can help you automate and manage tasks on your Windows system. With the right knowledge and practice, you can master these commands and take advantage of their full potential.

What is Group Policy?

Group Policy is a feature in Microsoft Windows that allows administrators to set policies for groups of users and computers in an Active Directory environment. It is an essential tool for managing and securing a Windows network.

Tracking User Logons in Active Directory

To track user logins across a Windows Active Directory Domain, you can use the built-in Event Viewer tool. This tool allows you to view and filter event logs on a domain controller. To access the Event Viewer: To enable auditing: Note: This will only track logins on domain-joined computers, not on non-domain joined devices. If there are multiple domain controllers… Read More »

Docker Container versus Virtual Machine

A Docker container is a lightweight, standalone, and executable package that includes everything needed to run a piece of software, including the code, a runtime, system tools, libraries, and settings. Containers are isolated from each other and from the host system, but they share the host system’s kernel.

What is DSC?

Desired State Configuration (DSC) is a configuration management platform in Windows PowerShell that enables you to manage your infrastructure and enforce your desired configuration. It allows you to declaratively specify the configuration of your servers, and then automatically ensures that your servers are in the desired state.

How Many Connected Screens?

To determine the number of monitors connected to a computer with C#, you can use the System.Windows.Forms.Screen class, which provides a static AllScreens property that returns an array of Screen objects, one for each display device connected to the computer. You can then use the Length property of the array to determine the number of screens.

Creating Arrays in Powershell

Arrays are useful in PowerShell because they allow you to store multiple values in a single variable. This can be convenient when you want to pass a group of values to a function, or when you want to manipulate multiple values in a loop.