Entries by Laszlo Bocso

Advanced File and Folder Management Toolkit

This Advanced File and Folder Management Toolkit includes: Key features: This tool is particularly useful for: To use this script effectively: This advanced script provides a powerful set of tools for file and folder management and analysis, suitable for both routine tasks and complex file system operations. It offers detailed insights into file structures, helps […]

File and Folder Manipulation Toolkit

This File and Folder Manipulation Toolkit includes: Key features: This tool is particularly useful for: To use this script effectively: This script provides a versatile set of tools for file and folder manipulation and analysis, helping users to efficiently manage and understand their file systems. It’s designed to be user-friendly while offering powerful functionality for […]

File and Folder Manipulation

File Manipulation Operation PowerShell Command Description Create a file New-Item -Path “path\filename.txt” -ItemType File Creates a new file at the specified path Copy a file Copy-Item “source\file.txt” -Destination “dest\file.txt” Copies a file from source to destination Move a file Move-Item “source\file.txt” -Destination “dest\file.txt” Moves a file from source to destination Rename a file Rename-Item “oldname.txt” […]

Error Handling in PowerShell

PowerShell is a powerful scripting language that includes robust error handling capabilities. Effective error handling ensures that your scripts can gracefully handle unexpected situations, making them more reliable, maintainable, and easier to debug. This guide provides a detailed overview of various error handling techniques in PowerShell, including basic error management, advanced techniques, and best practices. […]

Regular Expression (regex) in PowerShell

Element Description Example . Matches any single character except newline “h.t” matches “hat”, “hot”, “hit” * Matches zero or more occurrences of the previous character “a*b” matches “b”, “ab”, “aab”, “aaab” + Matches one or more occurrences of the previous character “a+b” matches “ab”, “aab”, “aaab”, but not “b” ? Matches zero or one occurrence […]

PowerShell Networking Cmdlets

Command Description Example Get-NetAdapter Retrieves network adapter information Get-NetAdapter Get-NetIPAddress Retrieves IP address configuration Get-NetIPAddress Get-NetRoute Displays the IP routing table Get-NetRoute Test-NetConnection Tests network connectivity to a remote computer Test-NetConnection -ComputerName google.com Resolve-DnsName Performs DNS name resolution Resolve-DnsName google.com Get-DnsClientServerAddress Retrieves DNS server addresses Get-DnsClientServerAddress Get-NetTCPConnection Displays active TCP connections Get-NetTCPConnection Get-NetUDPEndpoint Displays active […]

Active Directory Cmdlets

Command Description Common Parameters Get-ADUser Retrieves one or more Active Directory users -Identity, -Filter, -Properties, -SearchBase New-ADUser Creates a new Active Directory user -Name, -SamAccountName, -UserPrincipalName, -Path Set-ADUser Modifies properties of an existing Active Directory user -Identity, -EmailAddress, -Enabled, -PasswordNeverExpires Remove-ADUser Removes an Active Directory user -Identity, -Confirm Get-ADGroup Retrieves one or more Active Directory […]