Quantcast
Channel: PowerShell Basics Archives - TechGenix
Browsing all 84 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Check domain controllers audit configuration with this PowerShell script

Auditing helps you collect activities performed by different components of an Active Directory domain controller. Microsoft provides auditing configuration for domain controllers to help Active...

View Article


Image may be NSFW.
Clik here to view.

Creating files and folders the easy way with PowerShell

File management is an essential part of the everyday routine as you'll have to manage access to shared folders, back up files and folders regularly, and do the other standard operations on files and...

View Article


Image may be NSFW.
Clik here to view.

How to read a text file in PowerShell quickly and easily

Text files are ubiquitous and you’ll have to read through them, regardless of your role or job responsibilities. In fact, as an IT professional, you will have to create, read, or work with text files...

View Article

Image may be NSFW.
Clik here to view.

Restart a local or network computer remotely with PowerShell

Many times, a simple restart is enough to solve complex computer problems such as crashed applications, unresponsive OS or screen, and instability in operations. When you ask a geek how to solve a...

View Article

Image may be NSFW.
Clik here to view.

Output contents to a file with PowerShell: All you need to know

As an experienced programmer, there will be many times when you’d want to write the output of your program to a file for troubleshooting, analysis, or for any other custom reason. In PowerShell, it is...

View Article


Image may be NSFW.
Clik here to view.

PowerShell print: Output at your fingertips, to screen or file

Printing values or text is a common function we do in programming. This value can be the final output or even an intermediary value to understand if your program is working the way it should. We often...

View Article

Image may be NSFW.
Clik here to view.

Conquer the world with PowerShell global variable

Variables are the building blocks of every program. They are nothing but objects that allow us to store specific values in them for later processing or for displaying its value to the user. For...

View Article

Image may be NSFW.
Clik here to view.

Managing Azure Windows Virtual Desktop using PowerShell

Azure Windows Virtual Desktop service is designed to provide app virtualization services. Windows Virtual Desktop, sometimes referred to as WVD, needs to be managed using PowerShell modules. While you...

View Article


Image may be NSFW.
Clik here to view.

Reading text files the easy way with PowerShell and Linux bash shell

If you are a Linux administrator, you may be familiar with tail, head ad grep commands when reading text files, and they are convenient when looking at log files. (If you are not familiar, we are going...

View Article


Image may be NSFW.
Clik here to view.

Multilingual PowerShell scripts: A must for multinational organizations

As the world becomes ever more diverse, it is becoming increasingly common for IT pros to work with people who have a native language that is different from their own. Language barriers can present any...

View Article

Image may be NSFW.
Clik here to view.

Adding custom error messages to your PowerShell scripts

PowerShell has long been known for its cryptic error messages. Some of the most popular articles that I have written have been geared toward deciphering PowerShell error messages. When it comes to...

View Article

Image may be NSFW.
Clik here to view.

Building custom PowerShell cmdlets the easy way with modules

One of the really cool things about PowerShell is that you aren’t limited to using Microsoft’s native set of cmdlets. You can add custom cmdlets to PowerShell by including them in a module. Even though...

View Article

Image may be NSFW.
Clik here to view.

Manage Microsoft Teams quickly and easily with PowerShell

Many businesses have made the move to Microsoft 365, and many others have been making plans to migrate to the cloud platform. But as the COVID-19 pandemic transforms how people work and from where they...

View Article


Image may be NSFW.
Clik here to view.

Adding help to your custom PowerShell cmdlets: Step-by-step guide

Yesterday, I wrote an article here at TechGenix in which I explained how you could create your own custom PowerShell cmdlets. The process involves creating a module file and then adding functions to...

View Article

Image may be NSFW.
Clik here to view.

Neat trick: Organizing and formatting messy PowerShell output

One of the things that I have always loved about Windows PowerShell is that it puts a wealth of diagnostic and health data at your fingertips. You can use PowerShell to find out almost anything that...

View Article


Image may be NSFW.
Clik here to view.

Find what you need: Using PowerShell to parse Windows log files

Ever since the days of Windows NT, the Event Viewer has been to go-to tool for reviewing Windows logs. As great as the Event Viewer is, though, it isn’t perfect. For instance, the Event Viewer lacks...

View Article

Image may be NSFW.
Clik here to view.

Cracking the code: Here are the best editors for PowerShell scripts

If you have read many of my articles on this site, you might have noticed that I tend to use Notepad when creating and editing PowerShell scripts. Although Notepad does tend to be my go-to editor for...

View Article


Image may be NSFW.
Clik here to view.

Exchange 2019: Managing your distribution groups with PowerShell

In an earlier article, we looked at managing Exchange 2019 mailboxes using PowerShell. In this article, we will look at managing Exchange 2019 distribution groups using PowerShell. Distribution groups...

View Article

Image may be NSFW.
Clik here to view.

Bad logon attempts in Active Directory: Track them down with PowerShell

Our series on the 20 best stories that appeared on our site in 2020 continues with this article published in May. It looks at how IT admins can leverage PowerShell to do an important task:  Checking...

View Article

Image may be NSFW.
Clik here to view.

Using Group Policy settings to enforce PowerShell execution policies

When it comes to PowerShell — or anything else to do with technology — Brien Posey, because he is a Microsoft MVP award-winner in a slew of categories, has firsthand experience on how to make an IT...

View Article
Browsing all 84 articles
Browse latest View live