How to Trim a string in PowerShell
LazyAdmin | PowerShell
by Rudy Mens
1h ago
Do you need to remove the trailing spaces of a string? Or a character for the beginning or the end of a string in PowerShell? Then the Trim function in PowerShell is what you are looking for. With the Trim ... Read moreHow to Trim a string in PowerShell The post How to Trim a string in PowerShell appeared first on LazyAdmin ..read more
Visit website
How to add a Comment in PowerShell
LazyAdmin | PowerShell
by Rudy Mens
1w ago
When writing code in any language it’s important to add comments. This also applies to your PowerShell scripts. Although they may sometimes be short, adding comments in PowerShell is nevertheless important. Comments not only help others to understand your code, ... Read moreHow to add a Comment in PowerShell The post How to add a Comment in PowerShell appeared first on LazyAdmin ..read more
Visit website
How to Pause in PowerShell
LazyAdmin | PowerShell
by Rudy Mens
1M ago
PowerShell is a great way to automate tasks or processes, like creating users. But sometimes during such a task or process, you need to pause the script. For example to wait until a user account is synced or a file ... Read moreHow to Pause in PowerShell The post How to Pause in PowerShell appeared first on LazyAdmin ..read more
Visit website
How to Send Email with Powershell
LazyAdmin | PowerShell
by Rudy Mens
1M ago
PowerShell is a great tool to automate tasks and create reports or exports, but at some point, you want to send an email with PowerShell. Maybe when a task failed or too automatically email the report. For sending emails with ... Read moreHow to Send Email with Powershell The post How to Send Email with Powershell appeared first on LazyAdmin ..read more
Visit website
How to Create a PowerShell Scheduled Task
LazyAdmin | PowerShell
by Rudy Mens
1M ago
PowerShell scripts are a great way to automate daily tasks or generate weekly reports. But how do you make a scheduled task for your PowerShell scripts? We can do this with either the task scheduler to run a PowerShell script ... Read moreHow to Create a PowerShell Scheduled Task The post How to Create a PowerShell Scheduled Task appeared first on LazyAdmin ..read more
Visit website
How to Split a String in PowerShell
LazyAdmin | PowerShell
by Rudy Mens
2M ago
In PowerShell, a pretty common task is to split a string into one or more substrings. Splitting a string is always done based on a delimiter. This can be pretty much anything in the string, like a space, or comma, ... Read moreHow to Split a String in PowerShell The post How to Split a String in PowerShell appeared first on LazyAdmin ..read more
Visit website
How to Create a File in PowerShell
LazyAdmin | PowerShell
by Rudy Mens
2M ago
In PowerShell, there are a couple of ways to create a file. The most common method is to use the new-item cmdlet. This cmdlet can not only be used to create files but also folders. But new-item is not always ... Read moreHow to Create a File in PowerShell The post How to Create a File in PowerShell appeared first on LazyAdmin ..read more
Visit website
Connect-PnPOnline – How to Manage SharePoint Online with PowerShell
LazyAdmin | PowerShell
by Rudy Mens
2M ago
SharePoint comes with some templating options, but when you want to quickly roll out a new SharePoint with predefined libraries, for example, then using PowerShell is your best option. To connect to SharePoint from PowerShell we can use the PnPOnline ... Read moreConnect-PnPOnline – How to Manage SharePoint Online with PowerShell The post Connect-PnPOnline – How to Manage SharePoint Online with PowerShell appeared first on LazyAdmin ..read more
Visit website
How to use PowerShell Invoke-Command
LazyAdmin | PowerShell
by Rudy Mens
2M ago
Do you want to run a PowerShell command on a remote computer or server? Then you don’t need to open a remote desktop connection, because you can just use the PowerShell Invoke-Command for that. Invoke-Command allows you to run PowerShell ... Read moreHow to use PowerShell Invoke-Command The post How to use PowerShell Invoke-Command appeared first on LazyAdmin ..read more
Visit website
How to use PowerShell Select-Object
LazyAdmin | PowerShell
by Rudy Mens
3M ago
When retrieving data with PowerShell you often need only a few of the properties of an object. To do this we can use the cmdlet Select-Object, which allows us to select the data that we need. What most people don’t ... Read moreHow to use PowerShell Select-Object The post How to use PowerShell Select-Object appeared first on LazyAdmin ..read more
Visit website

Follow LazyAdmin | PowerShell on FeedSpot

Continue with Google
Continue with Apple
OR