Articles
Active Directory data with SamAccountName, Name, EmailAddress, Department, Title with Active users
# Import the Active Directory moduleImport-Module ActiveDirectory
# Define the search base...
Add/Change/Remove Primary SMTP and Alias smtp in Active Directory
Removing Primary SMTP in Active DirectorySet-ADUser accounting -Remove...
Computer Details Report
# Initialize an array to hold the computer details$computerDetails = @()
# Function to get disk...
Computer Details using JSON post
# Collect system details$ComputerName = $env:COMPUTERNAME$Manufacturer = (Get-WmiObject...
Computer keyboard shortcut keys
List of basic computer shortcut keys:
Alt + F--File menu options in the current program....
Disk space Email Alert
# Set the threshold percentage$threshold = 10
# Office 365 SMTP server settings$smtpServer =...
Get a List of Installed Application from computers (PowerShell)
Get a List of Installed Application from computers (PowerShell)
Script
Step1: Run the script in...
How to Get the Windows Patch Report in Excel though Power Shell Script
$Session = New-Object -ComObject “Microsoft.Update.Session”
$Searcher =...
License Details from Office Admin Portal
# Install AzureAD.Standard.Preview module if you haven't already# Install-Module -Name...
List fo sofware installed in the machine through Powershell
# Function to get installed software informationfunction Get-InstalledSoftware {# Paths to...
Lync Migration to Office 365 Lync
Contact Backup Script : Export-CsUserData -PoolFQDN "lync01.qb.com"...
Microsoft Windows shortcut keys
Microsoft Windows shortcut keys list
Alt + Tab -- Switch between open applications.
Alt +...
PowerShell – Updating Users Email Addresses In Active Directory
Problem
Note: I’m referring to the Email address value that is listed on the user object in...
Powerhell Script to remove the Powershell.exe Malware/Virus
Powershell.exe run with High CPU Usage and Memory
Below Script will run and remove the...
Powershell Script to get the Computer Details
# Get computer system information$computerSystem = Get-WmiObject -Class Win32_ComputerSystem
#...
Powershell Script to remove the Default outlook Profile in user machines
$outlookApplication = New-Object -ComObject ‘Outlook.Application’
$profileName =...
Powershell Script to remove the outlook profile in the name of “outlook”
#Run on system logged in as the user you are trying to delete and recreate the profile for
if...
Powershell Script to the Computer Details
# Get computer system information$computerSystem = Get-WmiObject -Class Win32_ComputerSystem
#...
Powershell Script to the Computer Details and Update in MS SQL Database
# Load SqlServer moduleImport-Module SqlServer
# Define the SQL Server connection...
Powershell script to get the ISP is Up or Down with email Option
# Function to encrypt and save the password to a filefunction Encrypt-AndSavePassword {param...
Script to Add Members in the Azure AD group
Connect-AzureAD
Update-DistributionGroupMember -Identity "OffshoreTeam" -Memberst...
Script to create Active Directory User ID using Powershell
Script to create User ID(use this command in AD server)
New-ADUser -Name(Read-Host -AsPlainText...
Script to delete the file older than 2 days
Script to delete the file older than 2 days
Example given below. You change the days...
Script to remove Powershell.exe Malware/Virus by list of computers
How to clear powershell.exe Malware by list of computersCreate updateCheckServers.txt in the same...
SharePoint Duplicate site creation
# Set source and target URLs$sourceSiteUrl =...
System Usages Details in CSV file
# Define thresholds$cpuThreshold = 80$ramThreshold = 80$diskThreshold = 80
# Define intervals...
shortcut keys for special characters
Many special characters can be created using keyboard shortcuts. Below are some of the more...
Powered by WHMCompleteSolution