
Ready-to-use Scripts
Wasting time on tedious repetitive tasks?
Ease your automation process with these ready-to-use scripts. These PowerShell Scripts would enable you to create and share components that can be executed across multiple devices at once.
Accurate. Efficient. Functional.
What is Automation?
When you don’t want to waste your valuable resources by addressing the same mundane tasks repeatedly, scripting should be your choice.
This Script Hub page was created for you to be your one-stop-shop to find a set of scripts that could help you
Save Time
Increase Productivity
Reduce Manhours on repeated tasks
Execute Once. Implement in all
LastLogonTimeReport
This script will give us the report of last login, assigned licences, mailbox types, Inactive days
Cleans up Linux servers
[Remove old packages],[Clean – tmp, caches, thumbnails, –fix-broken packages],[Memory Clean],[Clean RAM cmds]
Uninstall Teams
This script will Microsoft uninstall teams silently when manually not possible. effective with Intune and RMM.
RDP File Deploy
This script will deploy RDP file on users desktop with custome configuration, user need to edit this script as per his preference and it works
Password Expiration Policy Microsoft
This script will show us the validity period of password Expiration policy
Modern authentication is Allowed/Blocked for skype business
Using this script, we can Validate the Morden authentication is allowed or not for skype business accounts.
Morden authentication is set to block for SharePoint online apps
This script will let us know that the Morden authentication is set to block or not for SharePoint
Disable Calendar Sharing with External Users
This script Detail disables the calendar sharing with External users.
Office 365 Password Policy for 90 Days
This PowerShell Office 365 Password Policy script for set password expiration policy in O365 for 90 days.
How to Hide User from Global Address List
This script Removes the user from all Azure AD groups, all Teams, and all Distribution groups, Hides the user from the Exchange Global Address List
Export Distribution list Members From PowerShell
The attachment is a Export Distribution list Members From PowerShell script to view and export how many groups there are in the Exchange Admin Center
Import Contacts in Office 365
This PowerShell Script lets you import contacts in Office 365. You need Global Admin access to perform this Office 365.
Fetch O365 Mailbox Retention Policy Details
Get all the office 365 mailbox retention policy detail in MS Excel
Enable/Disable MFA for Users
This PowerShell Script will help you enable or disable MFA in Office 365 for a single user and multiple users
Create Local User PowerShell
Create a local Admin User in the device with a pre-defined password using this PowerShell Script. You can later change the username and password both.
AD User Logon Report
This PowerShell Script will give you an output that shows the Active Directory User logon report. The output would have details of the type of
AD Group Changes
Once you run this PowerShell Script, it’ll give you an output where it shows the users that have been created and the user accounts that
List of missing Windows Updates
Once you run this PowerShell Script, it’ll give you an output where it shows how many Windows updates have been missed, the last installed update
Customized Event based Script for Altaro Physical Backup Software
There was one script requirement from one of our clients based on the Altaro Physical Backup Software product and they needed an event base script
Weekly Maintenance
This PowerShell Script does the weekly maintenance for you and all the devices in your domain. The Weekly Maintenance includes creating a restore point, deleting
Add Bulk Aliases in Shared Mailbox
This PowerShell Script lets you add multiple/ bulk aliases in a Shared Mailbox. It will take up aliases based on the CSV file that you
E-mail notification when new user gets added (Script 2) – PowerShell Script
This is E-mail notification when new user gets added Script 2. The email ID you mention will get an email every time a new user
E-mail notification when new user gets added (Script 1) – PowerShell Script
This is E-mail notification when new user gets added (Script-1) of a two-part Script. The email ID you mention will get an email every time
E-mail notification when new device gets added (Script 2) – PowerShell Script
This is part 2 of a two-part Script. The email ID you mention will get an email every time a new device (a new computer
E-mail notification when new device gets added (Script 1) – PowerShell Script
This is part 1 of a two-part Script. The email ID you mention will get an email every time a new dev (a new computer
Fetch all O365 details
By running this script, you can set parameters and fetch any data you need from all the groups present in O365, at once.
Get MFA status Report of all Users
Use this script to get the status report of all user’s under your Office 365 tenants who have enabled Multifactor authentication (MFA).
Microsoft Customer Agreement Acceptance Script
This script lets you get Microsoft Customer Agreement (MCA) acceptance programmatically for all tenants registered under Cloud Solution Provider (CSP). No need to check each
Password Reset PowerShell Script
The Global Admin on an M365 account can run this script and prompt multiple users for a password reset in one go. Reset for a
Get DKIM/DMARC/SPF records for Microsoft CSP client’s tenants
Microsoft’s Cloud Solution Provider (CSP) uses a CSP portal to access clients’ tenants. This script will fetch the tenant IDs through the CSP credentials. Then
Automate Outlook User Profile Creation
The script will run on the user machine and create a new profile in “O365”. It will then close the outlook application and reopen with the
Altaro VM ‘Backup Failed’ Notification
The script will send email notification for failed Altaro backups on Windows Virtual Machine to the admin mentioned in the script
Bulk User creation in Active Directory
There will come a time when you have to create numerous user profiles in an Active Directory. Your organization has all data stored in a .csv file and you want
Install Sentinel One to your Windows
Here is the command to install Sentinel One in your system. The script will run and install it silently. You can modify the script syntax as per
Upgrade your Current Windows Build to the Latest
Not running on the latest Windows version? This script would help you upgrade your Windows Systems to the latest build
Application Installation
If you are planning to install a software/application and you have 100+ systems in your organization, installing it one by one or asking everyone to install it on their own systems individually will
Disk Drive Cleanup using PowerShell
Many users are facing the issue of reduced storage space in their C:\ and it is hampering system performance and speed. This PowerShell script will help you to deleted unnecessary/ unwanted files
Delete Unwanted Windows Users’ Profile from the System
Have multiple users been moved from or left your organization but their user profiles are still active? With this script, you can delete User Profiles that have remained inactive for X number of days
Log Off Windows Users that are Logged In
Let’s assume one of your users has wrapped up work for the day but has not logged out from his system. The need for maintenance
Want to start/stop/restart a particular Windows Service?
This script will start Windows Services. If necessary, the script can be modified to stop, or even Restart a service
LastLogonTimeReport
This script will give us the report of last login, assigned licences, mailbox types, Inactive days
Cleans up Linux servers
[Remove old packages],[Clean – tmp, caches, thumbnails, –fix-broken packages],[Memory Clean],[Clean RAM cmds]
Uninstall Teams
This script will Microsoft uninstall teams silently when manually not possible. effective with Intune and RMM.
RDP File Deploy
This script will deploy RDP file on users desktop with custome configuration, user need to edit this script as per his preference and it works
Password Expiration Policy Microsoft
This script will show us the validity period of password Expiration policy
Modern authentication is Allowed/Blocked for skype business
Using this script, we can Validate the Morden authentication is allowed or not for skype business accounts.
Morden authentication is set to block for SharePoint online apps
This script will let us know that the Morden authentication is set to block or not for SharePoint
Disable Calendar Sharing with External Users
This script Detail disables the calendar sharing with External users.
Office 365 Password Policy for 90 Days
This PowerShell Office 365 Password Policy script for set password expiration policy in O365 for 90 days.
How to Hide User from Global Address List
This script Removes the user from all Azure AD groups, all Teams, and all Distribution groups, Hides the user from the Exchange Global Address List
Export Distribution list Members From PowerShell
The attachment is a Export Distribution list Members From PowerShell script to view and export how many groups there are in the Exchange Admin Center
Import Contacts in Office 365
This PowerShell Script lets you import contacts in Office 365. You need Global Admin access to perform this Office 365.
Fetch O365 Mailbox Retention Policy Details
Get all the office 365 mailbox retention policy detail in MS Excel
Enable/Disable MFA for Users
This PowerShell Script will help you enable or disable MFA in Office 365 for a single user and multiple users
Create Local User PowerShell
Create a local Admin User in the device with a pre-defined password using this PowerShell Script. You can later change the username and password both.
AD User Logon Report
This PowerShell Script will give you an output that shows the Active Directory User logon report. The output would have details of the type of
AD Group Changes
Once you run this PowerShell Script, it’ll give you an output where it shows the users that have been created and the user accounts that
List of missing Windows Updates
Once you run this PowerShell Script, it’ll give you an output where it shows how many Windows updates have been missed, the last installed update
Customized Event based Script for Altaro Physical Backup Software
There was one script requirement from one of our clients based on the Altaro Physical Backup Software product and they needed an event base script
Weekly Maintenance
This PowerShell Script does the weekly maintenance for you and all the devices in your domain. The Weekly Maintenance includes creating a restore point, deleting
Add Bulk Aliases in Shared Mailbox
This PowerShell Script lets you add multiple/ bulk aliases in a Shared Mailbox. It will take up aliases based on the CSV file that you
E-mail notification when new user gets added (Script 2) – PowerShell Script
This is E-mail notification when new user gets added Script 2. The email ID you mention will get an email every time a new user
E-mail notification when new user gets added (Script 1) – PowerShell Script
This is E-mail notification when new user gets added (Script-1) of a two-part Script. The email ID you mention will get an email every time
E-mail notification when new device gets added (Script 2) – PowerShell Script
This is part 2 of a two-part Script. The email ID you mention will get an email every time a new device (a new computer
E-mail notification when new device gets added (Script 1) – PowerShell Script
This is part 1 of a two-part Script. The email ID you mention will get an email every time a new dev (a new computer
Fetch all O365 details
By running this script, you can set parameters and fetch any data you need from all the groups present in O365, at once.
Get MFA status Report of all Users
Use this script to get the status report of all user’s under your Office 365 tenants who have enabled Multifactor authentication (MFA).
Microsoft Customer Agreement Acceptance Script
This script lets you get Microsoft Customer Agreement (MCA) acceptance programmatically for all tenants registered under Cloud Solution Provider (CSP). No need to check each
Password Reset PowerShell Script
The Global Admin on an M365 account can run this script and prompt multiple users for a password reset in one go. Reset for a
Get DKIM/DMARC/SPF records for Microsoft CSP client’s tenants
Microsoft’s Cloud Solution Provider (CSP) uses a CSP portal to access clients’ tenants. This script will fetch the tenant IDs through the CSP credentials. Then
Automate Outlook User Profile Creation
The script will run on the user machine and create a new profile in “O365”. It will then close the outlook application and reopen with the
Altaro VM ‘Backup Failed’ Notification
The script will send email notification for failed Altaro backups on Windows Virtual Machine to the admin mentioned in the script
Bulk User creation in Active Directory
There will come a time when you have to create numerous user profiles in an Active Directory. Your organization has all data stored in a .csv file and you want
Install Sentinel One to your Windows
Here is the command to install Sentinel One in your system. The script will run and install it silently. You can modify the script syntax as per
Upgrade your Current Windows Build to the Latest
Not running on the latest Windows version? This script would help you upgrade your Windows Systems to the latest build
Application Installation
If you are planning to install a software/application and you have 100+ systems in your organization, installing it one by one or asking everyone to install it on their own systems individually will
Disk Drive Cleanup using PowerShell
Many users are facing the issue of reduced storage space in their C:\ and it is hampering system performance and speed. This PowerShell script will help you to deleted unnecessary/ unwanted files
Delete Unwanted Windows Users’ Profile from the System
Have multiple users been moved from or left your organization but their user profiles are still active? With this script, you can delete User Profiles that have remained inactive for X number of days
Log Off Windows Users that are Logged In
Let’s assume one of your users has wrapped up work for the day but has not logged out from his system. The need for maintenance
Want to start/stop/restart a particular Windows Service?
This script will start Windows Services. If necessary, the script can be modified to stop, or even Restart a service
Disclaimer
Our intention is to make our Script Hub a one-stop destination for you to find various PowerShell Scripts. Our Scripts are a culmination of syntaxes we have gathered from multiple sources over the Internet. Although all the scripts uploaded on our website have been tried and tested by our team of engineers, we do not guarantee seamless execution. Some scripts might work well for one and not for another. We also suggest you run a scan before executing this in your system.
Our Platforms












