PowerShell tutorial
How to find which process is listening on a TCP port using Powershell
As a system administrator, one of the critical tasks is identifying which process is listening on a specific TCP port. This knowledge is invaluable for troubleshooting network-related issues, ensuring security, and optimizing resource allocation. ...
How to show the list of local administrators using Powershell
As a system administrator, understanding and managing local administrators on Windows machines is a fundamental task for maintaining security and access control within your organization. PowerShell, with its versatility and robust capabilities, ...
How to list all groups in the domain using Powershell
In the realm of Windows system administration, managing groups is a fundamental task. Whether you're assigning permissions, configuring group policies, or simply maintaining an organized directory structure, knowing how to list all groups in your ...
How to find the list of domain administrators using Powershell
In the realm of system administration, it is of utmost importance to have a clear understanding of who holds the keys to your kingdom. In Windows environments, domain administrators wield significant power and responsibility. This guide will walk you ...
List all members of a domain group using Powershell
PowerShell is a versatile tool for managing and administering Windows environments. One common task that system administrators often encounter is listing the members of a domain group. PowerShell simplifies this task by providing powerful cmdlets and ...
How to use HERE-STRING using Powershell
PowerShell is renowned for its versatility and efficiency in handling strings and text processing. One of the lesser-known but incredibly useful features is the HERE-STRING. In this comprehensive guide, we'll explore how to use HERE-STRING in ...
How to use colors on the Powershell command named WRITE-HOST
PowerShell, with its powerful scripting capabilities, offers a variety of ways to interact with and display information. The Write-Host cmdlet is a fundamental tool for displaying text in PowerShell, and it becomes even more versatile when you ...
Change the password of a domain user account using PowerShell
Managing domain user accounts is a crucial task for system administrators, and one of the common tasks is changing a user's password. PowerShell provides a powerful and efficient way to automate this process. In this comprehensive guide, we will ...
How to add GenericAll permission to a domain user object using PowerShell
Active Directory (AD) permissions control access to critical resources and objects in a Windows domain. As a system administrator, it's essential to understand how to manage permissions effectively. In this comprehensive guide, we will explore the ...
How to list all SPNs in a domain using Powershell
Service Principal Names (SPNs) play a crucial role in Kerberos authentication within Windows domains. They uniquely identify services and enable secure communication. In this comprehensive guide, we'll explore how to list all SPNs in a Windows domain ...
Request a Kerberos TGS Ticket Using PowerShell
Kerberos is a widely used authentication protocol that provides secure authentication for users and services in a networked environment. In this comprehensive guide, we will explore how to request a Kerberos Ticket Granting Service (TGS) ticket using ...
How to grant GenericWrite permission to a domain user object using PowerShell
Managing permissions in Active Directory is a critical aspect of system administration, allowing you to control who can access, modify, and perform actions on various objects. In this comprehensive guide, we will explore how to add the GenericWrite ...
List all accounts with disabled Kerberos Preauth using Powershell
Kerberos is the authentication protocol used in Windows domains to provide secure authentication for users and services. One crucial aspect of Kerberos security is preauthentication, which adds an additional layer of security to the authentication ...
How to list the permission of Active Directory objects using Powershell
Active Directory (AD) is the central repository for managing users, groups, computers, and other objects in a Windows environment. As a system administrator, understanding and managing object permissions are critical tasks. PowerShell, with its ...
How to list all user accounts in the domain using Powershell
Active Directory (AD) is the backbone of user authentication and authorization in Windows environments. Managing user accounts within AD is a critical task for system administrators. PowerShell, with its robust capabilities, offers an efficient way ...
How to list all computer accounts in the domain using Powershell
Active Directory is the backbone of many organizations, and managing computer accounts within it is a critical administrative task. PowerShell, with its flexibility and robust capabilities, offers a powerful way to list all computer accounts in a ...
How to add member to Domain Group using PowerShell
Managing domain groups and their memberships is a fundamental task for system administrators. PowerShell, with its versatility and automation capabilities, offers an efficient way to add members to domain groups on Windows computers. In this ...
Enumerate Organizational Unit in Active Directory using PowerShell
Active Directory (AD) is the heart of an organization's network infrastructure, providing a structured way to organize and manage resources, users, and computers. One of the fundamental components of AD is Organizational Units (OUs), which act as ...
How to enumerate Active Directory domains using PowerShell
Active Directory (AD) is the backbone of many organizations, serving as a centralized system for managing users, computers, and resources. As a system administrator, being able to enumerate and query AD is a fundamental skill. In this comprehensive ...
PowerShell: How to remove shared folders
In Windows environments, managing shared folders is a common task for system administrators. PowerShell provides powerful commands for this, including removing shared folders. This expanded tutorial covers various methods for listing and removing ...
PowerShell: Configuring ASR to Block Processes from PSExec and WMI
Attack Surface Reduction (ASR) rules in Windows Defender provide an effective way to enhance security by controlling potentially harmful actions. This tutorial focuses on using PowerShell to configure ASR rules, specifically to block process ...
PowerShell: Mastering Base64 Encoding of PowerShell Scripts
Encoding PowerShell scripts in Base64 is a technique that can be useful for various reasons, such as obfuscating code or preparing scripts for remote execution. This comprehensive tutorial will guide you through encoding PowerShell scripts as Base64 ...
PowerShell: Advanced Configuration of Windows Event Log File Size
Managing the size and behavior of Windows Event Log files is crucial for system administrators. It ensures that logs are maintained within manageable sizes and are archived or overwritten according to specific needs. This tutorial provides an ...
PowerShell: Guide to Configuring Proxy Settings on Windows
Configuring proxy settings on a Windows machine can be efficiently done through PowerShell. This guide provides an in-depth approach for managing proxy settings, including enabling, disabling, and customizing proxy configurations. It's designed for ...
PowerShell: How to efficiently download file with BitsTransfer
PowerShell offers a powerful command-line tool for downloading files: the Background Intelligent Transfer Service (BITS). BITS is designed for efficient file transfers that don't interrupt network usage. This tutorial will guide you through using the ...
PowerShell: Essentials of Digitally Signing Scripts
Digitally signing PowerShell scripts is an essential skill for system administrators aiming to enhance security and establish trusted script execution environments. This comprehensive guide details the process of creating a digital signature for ...
PowerShell: Mastering Class Creation with Add-Type
PowerShell, a versatile scripting language, is not just for running commands and scripts; it's a powerful tool for creating and manipulating complex objects. For advanced system administrators, creating custom classes in PowerShell can significantly ...
A deep dive into PowerShell class inheritance
Introduction In the realm of PowerShell scripting, class inheritance is not just a theoretical concept but a practical tool for crafting advanced, maintainable, and scalable scripts. This guide dives deep into the nuances of PowerShell class ...
How to download files via BitsTransfer using PowerShell
Introduction BitsTransfer is a module in PowerShell that utilizes the Background Intelligent Transfer Service (BITS) to transfer files between systems. It's a reliable way to download files, especially large ones, as it supports resuming transfers if ...
A Step-by-Step Guide to delete files and folders using PowerShell
Introduction PowerShell is a versatile scripting language and command-line interface used extensively for automating administrative tasks in Windows. Deleting files and folders is a common task that can be accomplished efficiently using PowerShell. ...
How to Create a Process Using WMI and PowerShell
Introduction Windows Management Instrumentation (WMI) is a core Windows management technology; you can use it to manage both local and remote computers. PowerShell, a powerful scripting environment and command-line shell, can interact with WMI to ...
How to create a Process Using CIM and PowerShell
Introduction Creating a process on a Windows computer using CIM (Common Information Model) and PowerShell can be a quick and efficient way to manage system resources and automate tasks. CIM is a standard for describing the structure and behavior of ...
25. PowerShell Experimental features
I. Introduction In this section, we will provide a brief explanation of experimental features in PowerShell 7, discuss their importance and purpose, and provide an overview of the three commands used to work with these features. A. Brief explanation ...
24. PowerShell – Parser modes
1. Introduction 1.1 Brief Introduction to PowerShell PowerShell is a versatile and widely adopted automation and scripting language primarily used by system administrators and IT professionals. With its powerful command-line interface, PowerShell ...
23. Splatting and Positional parameters
Introduction PowerShell, a powerful scripting language developed by Microsoft, offers a range of features and techniques to enhance automation and scripting tasks. Among these, two key concepts are splatting and positional parameters. In this ...
22. PowerShell - Splatting to Avoid Repetition
1. Introduction In PowerShell scripting, passing command parameters is a common task. However, when a parameter needs to be optionally passed to multiple commands, repeating the parameter for each command can lead to code redundancy and decreased ...
21. PowerShell Conditional use of parameters
Conditional use of parameters in PowerShell plays a crucial role in creating dynamic and adaptable scripts. By incorporating conditional logic, scripts can determine whether to include or exclude certain parameters based on user input or other ...
20. PowerShell - Splatting to avoid long lines
1. Introduction PowerShell is a powerful scripting and automation language that plays a crucial role in managing and administering Windows environments. It provides administrators with a vast array of commands and functionalities to streamline their ...
19. PowerShell - Introduction to Splatting
Introduction to splatting Splatting is a way of defining the parameters of a command before calling it. This is an important and often underrated technique that the PowerShell team added in PowerShell 2. Splatting is often used to solve three ...
18. PowerShell - Drives and providers
In the context of PowerShell, drives are logical data containers that provide access to various data sources, such as file systems, registry hives, and even Active Directory. These drives act as a consistent interface for administrators to interact ...
Next page