posts
Working with psm1 Files in PowerShell
Working with PowerShell Script Module Files:psm1 Have you ever utilized a psm1 file to create reusable functions across multiple ps1 files? If so, you might have encountered the frustration of edits not reflecting immediately due to module caching.
I recently faced this issue when updating a psm1 file; despite making changes, the updates didn’t take effect immediately. The issue stemmed from module caching.
The only solution I found to load the updated psm1 file was to terminate the PowerShell session and start a new one.
posts
Retrieving SharePoint Site URL for Teams Channels
Retrieving SharePoint Site URL for Teams Channels Have you ever needed to construct the SharePoint site URL for a private or shared channel using just the channel name? This post will guide you through the process using Microsoft Graph endpoint and PnP PowerShell though PowerShell.
You may need the details for these reasons
To specify within a retention policy Purview Retention Policy Questions from the Field eDiscovery Extract from eDiscovery of private and shared channels “Each private and shared channel has its own SharePoint site that’s separate from the parent team site.
posts
How to Redirect PowerShell Terminal Output to a File
How to Redirect PowerShell Terminal Output to a File The PowerShell console buffer, while useful, has its limitations. When dealing with thousands of lines of output, you may encounter performance issues or even lose older output due to truncation. However, there’s a straightforward solution to ensure all output is retained for later review: redirect the output to a file.
You can accomplish this by using the redirection operator > operator, followed by the name of the file where you want the output to be stored.