How to Use PowerShell Array – Complete Guide
LazyAdmin | PowerShell
by Rudy Mens
2w ago
PowerShell Arrays are used to store a collection of items. They are a fundamental part of PowerShell, or any programming language because they allow you to store and structure a collection of items into a single variable. We can then use the array to perform ... Read moreHow to Use PowerShell Array – Complete Guide The post How to Use PowerShell Array – Complete Guide appeared first on LazyAdmin ..read more
Visit website
How to Concatenate a String in PowerShell
LazyAdmin | PowerShell
by Rudy Mens
2M ago
When outputting data from PowerShell you often need to concatenate two or more strings or variables. Joining strings in PowerShell is primarily done using the + operator. But there are other ways to concatenate strings as well. The problem with joining strings or variables in ... Read moreHow to Concatenate a String in PowerShell The post How to Concatenate a String in PowerShell appeared first on LazyAdmin ..read more
Visit website
Get-Date – How to get and use Dates in PowerShell
LazyAdmin | PowerShell
by Rudy Mens
2M ago
With Get-Date we can get the current date and time which is often used in PowerShell scripts to timestamp the output or in combination with logging. But besides timestamping, we can also use dates to compare or calculate the age of files, or in filters ... Read moreGet-Date – How to get and use Dates in PowerShell The post Get-Date – How to get and use Dates in PowerShell appeared first on LazyAdmin ..read more
Visit website
How to fix “Running Scripts is Disabled on this System”
LazyAdmin | PowerShell
by Rudy Mens
4M ago
Trying to run a PowerShell script, and do you get the error “Cannot be loaded because running scripts is disabled on this system”? Then we need to change the execution policy in PowerShell. To protect your computer from malicious scripts, the execution policy of PowerShell ... Read moreHow to fix “Running Scripts is Disabled on this System” The post How to fix “Running Scripts is Disabled on this System” appeared first on LazyAdmin ..read more
Visit website
PowerShell Scripting – Get started with this Ultimate Guide
LazyAdmin | PowerShell
by Rudy Mens
4M ago
Automating daily tasks, extracting information from systems, or managing Microsoft 365? PowerShell scripts really make your daily work a lot easier. When you are working in IT then you can’t get around PowerShell. PowerShell is an advanced command line interface (CLI) and scripting language that ... Read morePowerShell Scripting – Get started with this Ultimate Guide The post PowerShell Scripting – Get started with this Ultimate Guide appeared first on LazyAdmin ..read more
Visit website
Set-Mailbox – Change Mailbox settings with PowerShell
LazyAdmin | PowerShell
by Rudy Mens
10M ago
The Set-Mailbox cmdlet in PowerShell allows us to change mailbox settings in Exchange Server and Exchange Online. We can use the cmdlet for example to change mailbox quotas, add an alias to the mailbox, set folder permissions, or even change the mailbox language. In this ... Read moreSet-Mailbox – Change Mailbox settings with PowerShell The post Set-Mailbox – Change Mailbox settings with PowerShell appeared first on LazyAdmin ..read more
Visit website
New-PSDrive – How to use PowerShell Net Use alternative
LazyAdmin | PowerShell
by Rudy Mens
10M ago
We all know the Net Use command that we can use to map network drives from the command line. Although we can use Net Use in PowerShell, there is a more powerful alternative, the New-PSDrive cmdlet. With the New-PSDrive cmdlet, we cannot only map network ... Read moreNew-PSDrive – How to use PowerShell Net Use alternative The post New-PSDrive – How to use PowerShell Net Use alternative appeared first on LazyAdmin ..read more
Visit website
How to Add User to Group in PowerShell with Add-ADGroupMember
LazyAdmin | PowerShell
by Rudy Mens
11M ago
When you need to add multiple users to an Active Directory group then using PowerShell is really your best option. Instead of looking up all the users manually, you can quickly add users to the group with PowerShell. Adding or removing users from AD groups ... Read moreHow to Add User to Group in PowerShell with Add-ADGroupMember The post How to Add User to Group in PowerShell with Add-ADGroupMember appeared first on LazyAdmin ..read more
Visit website
How to use PowerShell Grep equivalent Select-String
LazyAdmin | PowerShell
by Rudy Mens
11M ago
When you need to search through a string or log files in Linux we can use the grep command. For PowerShell, we can use the grep equivalent Select-String. We can get pretty much the same results with this powerful cmdlet. Select-String uses just like grep ... Read moreHow to use PowerShell Grep equivalent Select-String The post How to use PowerShell Grep equivalent Select-String appeared first on LazyAdmin ..read more
Visit website
How-to use Substring in PowerShell
LazyAdmin | PowerShell
by Rudy Mens
11M ago
When you want to extract a part of a string in PowerShell we can use the Substring() method. This method allows us to specify the start and length of the substring that we want to extract from a string. In this article, I will explain ... Read moreHow-to use Substring in PowerShell The post How-to use Substring in PowerShell appeared first on LazyAdmin ..read more
Visit website

Follow LazyAdmin | PowerShell on Feedspot

Continue with Google
OR