Articles tagged powershell
Powershell - View and manage DNS configuration of network interfaces
Powershell commands to display and manage DNS configuration of network interfacesPowershell - Managing IP configuration of network interfaces
Powershell commands to view and modify the IP configuration of network interfacesPowershell - Managing the status and configuration of network interfaces
Powershell commands to view and modify the status and configuration of network interfaces (disable IPv6, enable/disable an interface)Powershell and the Left Hand Side
An important concept in Powershell, the Left Hand SidePowershell - Managing disks, partitions and volumes
How to manage disks, partitions and volumes in PowershellPowershell - Managing System Restore Points in Windows
How to manage system restore points in WindowsPowershell - Playing with the Windows clipboard
“How to send and retrieve information from the Windows clipboard”Powershell - Changing the state of a computer (sleep, hibernate, shutdown, restart)
How to change the state of a computer (sleep, hibernate, shutdown, restart) in PowershellPowershell - Compress-Archive and Expand-Archive to create and extract ZIP archives
Powershell, through the Microsoft.PowerShell.Archive module, allows us to create, update and extract ZIP archivesPowershell - Export-Csv versus Export-Clixml
Powershell - Export-Csv versus Export-Clixml, or the limits of Export-CsvPowershell - Overview of Where-Object basic syntax and its limitations
Powershell - Overview of Where-Object basic syntax and its limitationsPowershell - Hyper-V - Give a custom name to a virtual network adapter
Hyper-V defaults to naming virtual machine NICs as network adapters. This can make it difficult to identify their usage, but this problem can be solved with Powershell which allows you to change the name of virtual network adapters.Powershell - How to add and view a GPO description
How to add and view a GPO description in PowershellPowershell - Displaying and changing the power mode in Windows
How to display and modify the power mode in Windows with PowershellPowershell - Adding a line to a file from a specific line
How to add a line to a file from a specific line with PowershellPowerShell - Hyper-V - Adding comments to a virtual machine
To keep track of changes to virtual machines under Hyper-V, it may be useful to use the comments function and add any information you think might be usefulPowershell - Hyper-V - Managing virtual machine configuration versions
How to update the configuration version of a virtual machine so that it can use the new features available on your new Hyper-VPowershell - Create a virtual machine for Windows 11 with Hyper-V
Here's how to create a virtual machine in Hyper-V ready to host a Windows 11 using Hyper-VPowerShell - Displaying control panels
Control panels can be displayed directly from PowerShell commandsPowerShell - Double redirection with Tee-Object
Tee-Object performs a double redirection, to standard output and to a file or variableActive Directory - Viewing and protecting unprotected organizational units with Powershell
Active Directory - Viewing and protecting unprotected organizational units with PowershellPowershell - The $FormatEnumerationLimit variable
Overview of the $FormatEnumerationLimit variable and when Format-Table -Wrap won't workPowershell - Using the Windows Server Best Practice Analyzer
The Best Practices Analyzer (BPA) is a tool integrated into Windows Server that checks whether certain configurations (mainly roles) comply with best practicesPowershell - Difference between -Path and -LiteralPath, -Name and -LiteralName parameters
Powershell - Difference between -Path and -LiteralPath, -Name and -LiteralName parametersPowershell - Changing the screen resolution on a Windows server
It's possible to change the screen resolution easily using Powershell on Windows servers (with or without a graphical interface). This can be useful on a core Windows server.PowerShell - Display months or days of the week in the desired culture
If you want to display the months or days of the week as a string value in the desired culture for inclusion in logs or reports, here's how to do it in PowershellPowershell - Extracting a program icon
Powershell - Extracting a program iconPowershell - Extract the name of a file with/without its extension from its full path
Powershell - Extract the name of a file with/without its extension from its full pathPowershell - The differences between .count and .length properties
Powershell - The differences between .count and .length propertiesPowershell - Display object type get-member VS .gettype()
There are two techniques for displaying the type of an object in Powershell, the .gettype() method and the Get-Member cmdlet, but the result may differ between the two techniques with ArraysPowershell - Display object properties alphabetically
It can sometimes be useful in Powershell to display the list of object properties in alphabetical order, which is not generally the casePowerShell - Defining default parameter values
It is possible to define default values for cmdlet parameters or advanced functionsPowershell - Testimo module for testing your Active Directory
Testimo is a PowerShell module designed to facilitate basic or more advanced testing of Active DirectoryPowershell - presentation of the GPOZaurr module for analysing your GPOs
The GPOZaurr module allows you to analyse your GPOs and also to modify or even delete themPowershell - AD As Built Report module overview
Microsoft AD As Built Report is a PowerShell module that works in conjunction with AsBuiltReport.Core to generate a report on your Active DirectoryPowershell - Introduction to the Windows As Built Report module
Windows As Built Report is a PowerShell module that generates a report on a Windows server - System information (Drivers, network, updates, roles and functions, applications, etc.) - DNS - DHCP - IISPowershell - Differences between Break, Return and Exit
In this article, I explain the differences between Break, Return and Exit in Powershell, so that you can choose the right instructionPowershell - Displaying disk space informatione
Bonjour, voici comment afficher les informations sur l'espace disque en PowershellPowershell - Quickly display the code executed by a function
It can be interesting to display the code executed by a function, such as that provided natively by Powershell, for a need or simply out of curiosityPowershell - Playing with the -PipelineVariable parameter
In PowerShell, the -PipelineVariable parameter stores the value of the current pipeline as a variable for a cmdlet in the pipeline flowsPowerShell - Filter Versus Function
A filter is a type of 'simplified' function that automatically uses the Process block (no Begin and End blocks) and is therefore executed on each objecPowershell - $false -ne 'false' - Boolean values
Demonstration and explanation of $false -ne 'false', as well as an explanation of Boolean valuesPowershell - Encoding and using encoded code in Powershell
If you want to obfuscate Powershell code you can encode it and use the -EncodedCommand argument to the Powershell.exe commandPowershell - Pre and post increment/decrement
Let's play with increments/decrements in PowerShell, known as ++ or -- syntax, and more specifically with pre- and post-increment/decrementPowerShell - Display WiFi connection passwords
Do you need to recover the WiFi connection passwords for your Windows computer?Powershell - Adding a number column to an array display
You can add a column indicating a number for each object in the display of an array, which can be useful if you're playing with indexesPowershell - Playing with command history
If you regularly use the Powershell shell, it may be useful to know how to use the powershell history or rather historiesPowerShell - Command history and confidential information
Powershell has a history, even several, and the commands you execute may contain confidential information and remain in this historySeveral ways to rename a computer in Windows
A video showing how to rename a computer in WindowsPowershell - Checking for duplicate array elements
A little Powershell code to check for duplicate elements in an arrayWindows Admin Center - Installing extensions using Powershell
I find it quite time-consuming to have to install Windows Admin Center extensions from the interface and Powershell does it easilyWindows Admin Center - Updating extensions with Powershell
The Windows Admin Center extensions should update automatically but this obviously doesn't work properly for me, so I use a Powershell script which is also used in my training courses for WAC demonstrationsHyper-V - How to compress a virtual disk with a dynamic size
In this video, I show you how to compress a VHDX with a dynamic size in Hyper-V using graphics or the command line, and also explain why this sometimes doesn't workPowershell - Clean up the Windows installer folder
I had already posted an article on the c:\windows\installer folder in Windows. It is also possible to do this in PowerShell using the MSIPatches modulePowershell - Using BITS file transfer
BITS (Background Intelligent Transfer Service) is a Windows service for transferring dataPowershell - Manage file integrity with a catalogue file
It is very easy to check file integrity in PowerShell using a catalogue file which works in the same way as driver catalogue filesPowershell - Difference between $? and $LASTEXITCODE
Difference between $? and $LASTEXITCODE automatic variables in PowershellImproving the usability of Powershell on the command line with PSReadLine
The PSReadLine PowerShell module replaces the command line experience for Powershell 3 and abovePowershell - 5 ways to remove duplicates
Here are 5 case-sensitive and case-insensitive techniques for removing duplicates in PowerShellPowerShell - Sorting with Sort-Object
Sort-Object allows you to sort and filter unique values. The cmdlet offers sorting options that you may not have taken the time to explorePowerShell - Convert-Path and Resolve-Path
Convert-Path and Resolve-Path can also enable interesting actionsPowershell - Join-Path to join paths
Join-Path allows parent and child paths to be combined (Powershell 5.1), and more with Powershell 7 thanks to the -AdditionalChildPath argumentPowershell - Split-Path to cut a path
The Split-path command is used to split a path from a provider.The existence of the path is not checked by default, to do this use the -resolve or Test-PathargumentViewing other types of file containing simple text in Windows
It is possible to view other types of file containing simple text, such as .ps1, .psm1, .psd1, .twig, .gcode... in Windows File ExplorerPowershell - Out-GridView and his parameters
Out-GridView is used to display a result in the form of an interactive table offering object filtering and sorting functionalitiesHow to join an Active Directory domain with PowerShell DSC
Joining an Active Directory domain with PowerShell DSCPowershell - Copy to clipboard
Sometimes it's useful to return the result of an instruction directly to the clipboard and then paste it into the desired location, simply by using clipPowershell - Test-Path arguments -NewerThan -OlderThan -IsValid and filtering
Powershell - Test-Path arguments -NewerThan -OlderThan -IsValid and filteringPowershell - Test-Path to test the presence of an object
In PowerShell, Test-path is used to check the existence of an object when using psdrivePowershell - Test the presence of file or folder with Test-Path
The -PathType argument to Test-Path allows us to check whether the item is a file or a folderPowershell - Write-host or not Write-host
Write-host or not, Definitely NOT! Microsoft makes it clear 'Avoid Write-HostPowershell - single quote, double quotes and protection
An article on single quote ', double quote " string values and protectionPowershell - type accelerator
Accelerator types in Powershell are aliases for .NET types or classes
Follow me on
Support me
Last content
Powershell - View and manage DNS configuration of network interfaces
Powershell - Managing IP configuration of network interfaces
Powershell - Managing the status and configuration of network interfaces
Powershell and the Left Hand Side
Powershell - Managing disks, partitions and volumes
Powershell - Managing System Restore Points in Windows
Powershell - Playing with the Windows clipboard
Powershell - Changing the state of a computer (sleep, hibernate, shutdown, restart)
Powershell - Compress-Archive and Expand-Archive to create and extract ZIP archives