Here is a sample csv file with a title called “Organizations”. Below, please see the scripts #Crated by Summa, 2024-10-23 $file= “C:Tempfolders.csv” if (Test-Path $file) { $item=Get-Item $file Write-Output “The csv file exists. Details:” $item } else { Write-Output “The csv file does not exist.” } Read More
Category: PowerShell
How to Export the Last Sign-In Time for All Users in Entra ID (Azure AD) Using Microsoft Graph
Microsoft Graph is a powerful tool that allows administrators to manage their Azure AD tenant and automate tasks. One common task is to retrieve the last sign-in date time for all users in Azure AD. This information can be used to track user activity and identify any inactive accounts that may need to be disabled Read More
How to Turn on Network Protection
Check if network protection is enabled Check if network protection has been enabled on a local device by using Registry editor. Select the Start button in the task bar and type regedit to open Registry editor. Choose HKEY_LOCAL_MACHINE from the side menu. Navigate through the nested menus to SOFTWARE > Policies > Microsoft > Windows Defender > Policy Manager. If the Key is missing, Navigate to SOFTWARE > Microsoft > Windows Defender > Windows Defender Exploit Guard > Network Read More
How to Get Azure AD Users with Registered Devices Using PowerShell
In this post, I am going to share Powershell script to find and list devices that are registered by Azure AD users. We can use the Get-AzureADUserRegisteredDevice cmdlet to get the registered devices. Before proceed run the below command to connect Azure AD Powershell module. 1 Connect-AzureAD List registered devices of all Azure AD users: To get Read More
Avoid Windows Task Scheduler When Running Microsoft 365 PowerShell Scripts
ByTony Redmond Better Methods Exist to Run Microsoft 365 PowerShell Scripts I am bemused when I read articles advising Microsoft 365 tenant administrators to run PowerShell scripts using the Windows Task Scheduler. I understand the reason why people use the Task Scheduler. It’s easy, built into Windows, allows scripts to run unattended (always an advantage when Read More
How to Create a Library in SharePoint Online for Office Templates
An organization assets library is a document library that you designate for storing images & logos for use in your company. These images can be used in modern web parts added to SharePoint pages. This adds the obvious benefit of a central location for the storage of corporate media. You can have up to 30 Read More