How to Retrieve MAC Address Using PowerShell
Learn how to retrieve your network adapter’s MAC address using PowerShell commands like Get-NetAdapter, WMI, CIM, and ipconfig for fast and efficient results.
Learn how to retrieve your network adapter’s MAC address using PowerShell commands like Get-NetAdapter, WMI, CIM, and ipconfig for fast and efficient results.
Function to calculate the start (host min) and end (host max) addresses from the Gateway and Subnet
This example shows how to create a web service with PowerShell that queries an IVANTI EPM database to get a computer name based on a MAC address. It includes setting up a Pode server, configuring an API endpoint, and running a SQL query to retrieve the information
difference between Invoke-WebRequest and Invoke-RestMethod to get json file
explore how to create a custom logon script using PowerShell and Windows Presentation Foundation (WPF). The script displays a customizable logon window with a message, an image, and a close button, offering a practical example of combining PowerShell with WPF for creating graphical user interfaces.
This blog post explores using PowerShell to dynamically update the unattend.xml file during Windows deployments. It covers XML manipulation, and automating system setup, specifically setting unique computer names.
This collection of scripts demonstrates using PowerShell and PHP to query web services for retrieving a computer’s name
Learn how to run executables from a PowerShell script. This guide provides commands to start a process with arguments, wait for completion, and retrieve the exit code, ensuring efficient script automation and execution control.
Learn how to count the number of files in a directory using PowerShell. This guide provides commands to count files in a specified directory, including the option for a recursive search to include subdirectories.
Learn how to use tab and newline characters in PowerShell. This guide provides commands to add entries to the hosts file, demonstrating how to include new lines and horizontal tabs in your scripts.
Learn how to change DNS settings using command line tools in Windows. This guide provides commands to set primary and secondary DNS servers, and to flush the DNS cache, ensuring reliable network configuration.
Learn how to retrieve the parent directory of a given file path using PowerShell. This guide provides simple commands to extract the parent directory from file paths, making it easy to manage and organize files.
Learn how to view the installation history on Windows 10 using PowerShell. This guide provides a script to retrieve and display the history of application and patch installations via the Reliability Monitor, including remote access capabilities.
Learn how to manage network adapters using Netcfg, a native Windows tool. This guide provides commands to uninstall various network components, including QoS Packet Scheduler, LLTD I/O Driver, and IPv6 protocols.
Learn how to view the installation history on a remote computer using PowerShell and Windows Reliability Monitor. This guide provides a script to retrieve and display installation events, helping you manage and troubleshoot systems efficiently.
Learn how to perform search and replace operations in a text file using PowerShell. This guide provides a simple script to automate the process, making it easy to update configurations or logs efficiently.
Learn how to read the last few lines of a large file using PowerShell. This guide provides a simple script to retrieve the latest entries from a log file or any large text file efficiently.
Learn how to delete the Windows Recovery Environment (WinRE) partition using PowerShell. This guide provides a script to automate the deletion and resizing of partitions, ensuring efficient disk space management.
Learn how to read and write Windows environment variables using PowerShell. Follow this guide for temporary and permanent changes to environment variables.
Learn how to create an XML file using PowerShell with XMLWriter. Follow this guide to generate and format XML documents through scripting, enhancing automation and data handling.
Learn how to implement a pause function in PowerShell scripts to prompt users to press any key to continue. This guide provides a simple function to incorporate user interaction within your scripts.
Learn how to add user permissions to registry keys using PowerShell. This guide provides a detailed script and step-by-step instructions for modifying ACLs and ensuring appropriate access control.
Learn how to force an upgrade to Windows 11 by modifying registry keys to bypass hardware checks. This guide provides detailed steps and explanations for each registry entry.
Learn how to create a scheduled task in PowerShell to reboot a computer daily. This guide includes an alternative script to disable time zone synchronization for the task.
Learn how to ignore SSL certificate validation errors in PowerShell using the Invoke-WebRequest cmdlet. This guide provides a function to bypass SSL certificate checks, useful for development and testing environments.
Learn how to retrieve the Windows 10 Release ID using PowerShell. This guide provides a script to fetch the Release ID from the registry, useful for inventory and compliance purposes.
Learn how to detect if a computer is a laptop using PowerShell. This guide provides a function to check the chassis type and determine if the device is a laptop, useful for administrative tasks and automation.
Discover PowerShell alternatives to PsExec for remote management. Learn how to use Enter-PSSession and Invoke-Command for secure and effective remote command execution.
Learn how to use PowerShell’s Format-Table cmdlet to display data in a readable tabular format. This guide provides step-by-step instructions and examples for formatting command outputs effectively.
Learn how to resolve the Internet Explorer engine error in PowerShell’s Invoke-WebRequest cmdlet by using the -UseBasicParsing parameter. This guide provides a step-by-step solution for making reliable web requests.
PowerShell, Stop-Process, Get-Process, batch file, taskkill, process management, wildcards
Customizing the console window size using .NET properties
you can use to validate your network port testing script : https://github.com/DavidWuibaille/Tools/tree/main/CheckPorts
This article provides a script that searches and uninstalls Windows Update packages based on a given KB number
Three methods for downloading files in PowerShell: Invoke-WebRequest, System.Net.WebClient, and BitsTransfer. Learn which method is best suited for your needs and how to implement them
Looking to add a creative twist to your PowerShell scripts? Discover how patorjk.com’s Text Art Generator can infuse your code with artistic elements, making it not only functional but also visually appealing.
Transcripts are a great way to monitor what happens in a PowerShell session.
Learn how to format numbers with leading zeros in PowerShell to ensure consistent width in outputs. This technique is especially useful for data alignment, file naming conventions, and other scenarios where numbers need to be represented with a specific number of digits.
Logging function in PowerShell that can handle both informational and error messages, and write them to a log file
A comprehensive guide on how to install an external PowerShell module using both normal and manual installation methods. The article provides detailed steps, including visiting the PowerShell Gallery, extracting .nupkg files, and using the installed module.
Learn how to automate the creation of multiple user accounts for lab environments using a CSV file and a PowerShell script. Efficiently manage and set up testing accounts in Active Directory
Discover how to use the Cleanmgr command line. This guide provides step-by-step instructions on leveraging the Cleanmgr utility for efficient disk cleanup on Windows systems
Learn how to effortlessly mount an ISO file in PowerShell using the Mount-DiskImage cmdlet.
Learn how to customize text and background colors in PowerShell using the Write-Host cmdlet. This guide provides a list of available colors and an example of how to apply them.
Learn how to quickly determine if your Windows 10 system is running in UEFI or Legacy mode using a simple PowerShell environment variable
A comprehensive guide on how to effectively handle errors in PowerShell scripts. Learn how to suppress errors and manage them using the try-catch mechanism.
Learn how to use the Runas command in PowerShell to execute a specific command or application using a different user account. This guide provides a practical script using the Start-Process cmdlet
Learn how to use sysnative to bypass the Windows File System Redirector and access the native system directory or registry when running a 32-bit application on a 64-bit Windows system.
Dive into the utilization of a progress bar in PowerShell scripts
Powershell, Operators, Scripting, Case-sensitive, Case-insensitive, Regular expression, Wildcard comparison, Replace operator, Containment operator
Explore the process of managing Windows updates using the PSWindowsUpdate PowerShell module. The article provides detailed instructions on installing the module, both manually and using standard methods, and offers insights into its utilization for checking update settings, installing patches, and viewing update history.
Learn how to efficiently retrieve the current path in your scripts using various methods. The article delves into techniques for PowerShell, including the transition from PS1 to EXE, VBS, and batch scripting. It provides comprehensive code snippets and explanations for each method.
Learn how to securely manage and encrypt passwords in PowerShell scripts, ensuring data protection and script integrity.
Dive into the process of creating a user-friendly graphical interface in PowerShell leveraging XAML. This guide walks you through the utilization of Visual Studio Community for interface design, integrating XAML code into PowerShell, and implementing various UI elements and their actions.
A concise guide on how to view and install the Remote Server Administration Tools (RSAT) using PowerShell commands. The article provides commands to view available administration tools, install all RSAT tools, or install specific tools like Active Directory.
Learn how to enhance the security of your PowerShell scripts by signing them. This comprehensive guide covers methods using both self-signed certificates and internal PKI, ensuring script integrity and authenticity