Powershell

Powershell!
get a list of users in AD vs Distribution list to clean up Connect-AzureAD Get-AzureADGroup Get-AzureADGroup -ObjectId 93c7b6c6-a5f0-451f-808f-28d5eafe60...
Tue, 17 Sep, 2024 at 9:44 AM
Auto create folder based on filename and move the file into it's folder
This is a Windows batch script that creates folders for each file in the current folder that the script is running. The folders are created with folder name...
Mon, 28 Mar, 2022 at 2:00 PM
Clone permissions on network drives from one user to another
You have to have the ntfssecurity powershell module installed, to do that, open powershell and run the command.. Install-Module -Name NTFSSecurity cd ...
Tue, 8 Mar, 2022 at 10:37 AM
Download One Drive Library to local folder using powershell.
Prerequisite - Download SharePoint Online Client Components SDK from Official Microsoft Download Center  For reference - SharePoint Online: Download All...
Tue, 25 Jul, 2023 at 2:07 PM
Export mobile numbers to Active Directory (.csv file)
-First export the numbers from the Extension list to a .csv file using data - get data - from file -Once exported, clean up the data as much as possible, d...
Mon, 22 Jan, 2024 at 4:42 PM
Change / Check Power options
To get the current power plan.. ---------------------start code--------------------------------------------- # Get the active power scheme $activeScheme = ...
Wed, 31 Jan, 2024 at 1:55 PM
Get a list of All OU's in AD with a computer contained, output to html
# Import Active Directory module (if not already loaded) Import-Module ActiveDirectory # Function to check if an OU contains any computers function Ha...
Tue, 27 Feb, 2024 at 11:52 AM
List of users not logged into Local Active Directory past 45 days
# Import the Active Directory module Import-Module ActiveDirectory # Get the current date $currentDate = Get-Date # Define the number of days of i...
Tue, 25 Jun, 2024 at 10:16 AM
Turn Off "Password Never Expires" in AD from .xlsx
PowerShell doesn’t have built-in support for reading Excel files, but we can use the ImportExcel module. You can install it using Install-Module -Name Impor...
Wed, 27 Mar, 2024 at 11:13 AM
Set Date Format in 365 Online Apps
This is how to change the Date Format in O365 online apps to the Australian Date Format (DD/MM/YYYY) instead of the US Date Format (MM/DD/YYYY). The pre...
Thu, 20 Jun, 2024 at 11:07 AM