Tag: PowerShell
January 14, 2025 |
PowerShell Environment Variables
Introduction to PowerShell Environment Variables
Environment variables are predefined variables in an operating system, they are available in the form of key-value pairs which store important system-level or user-specific information, such as paths, user configurations, and system settings....
January 10, 2025 |
How to Run a PowerShell Script
PowerShell is a scripting language and command-line shell designed for task automation and configuration management, primarily used by system administrators and advanced users. Built on the .NET framework (.Net Core for PowerShell 7), it supports Windows, Linux and macOS. It enables automation of...
November 21, 2024 |
PowerShell Write to File: "Out-File" and File Output Techniques
Introduction to Outputting in PowerShell
Anyone familiar with PowerShell knows that the output of PowerShell commands is displayed in the terminal by default. However, there may be situations where you would want to redirect or save output to a file.
Commands may return a large amount of...
November 20, 2024 |
Add Alias in Active Directory
Overview of AD
Microsoft Active Directory is a directory service for Windows domain networks. Active Directory serves as a centralized database which stores information about network resources, including users, computers, and services. It plays a significant role in network management and...
November 5, 2024 |
Delete Registry Keys Using PowerShell
Introduction
In Windows system administration, one of the more advanced yet important tasks that can be accomplished using PowerShell is deleting registry keys and values. This operation requires careful handling to avoid unintended consequences. Registry keys and values in Windows are critical...
October 23, 2024 |
Check, Update, and Choose a PowerShell Version
You may want to know the PowerShell version installed on your machine. While novice users may go to Programs in the Control Panel to check the PowerShell version, it’s often quite the disappointment when they don’t find PowerShell listed as a program there. Instead, you’ll need to resort to...
October 21, 2024 |
Using PowerShell Move-Item Cmdlet to Move Files
As a routine task, users move items, such as files and folders from one place to another on our computer, so that data is sorted and makes sense. While this can be accomplished with simple copy and paste options from within the File Explorer, advanced users may prefer PowerShell for efficiency and...
October 10, 2024 |
How to Create New Active Directory Users with PowerShell
Tools like ADUC and ADAC enable Sysadmins to create a new user in an Active Directory quite easily, but they has certain limitations when it comes to bulk user creation. PowerShell is a powerful and flexible tool for creating Active Directory accounts, and much more at scale.
This blog reviews...
October 9, 2024 |
Using Rename-Item Cmdlet to Rename Files in PowerShell
What is the Rename-Item cmdlet?
The Rename-Item cmdlet in PowerShell can be used to change the name of an item. This item can be a file, directory, or any object in a path. The cmdlet can also be used to rename items both locally and in a network environment. Users can also perform batch...
October 7, 2024 |
Powershell Delete File If Exists
Brief overview of Remove-Item cmdlet
Managing files and directories is a common task in computing, especially in the Windows PowerShell environment. The Remove-Item in PowerShell is a key cmdlet for deleting files and directories, as well as other types of items in PowerShell. Remove-Item can...