Advanced Search
Search Results
502 total results found
Ryan's Career - Personal Information
PowerShell to Add a User to a Distribution Group
#Connect to Exchange Online Connect-ExchangeOnline -ShowBanner:$False #Add User to the Distribution Group Add-DistributionGroupMember –Identity "Sales@Crescent.com" -Member "Steve@Crescent.com"
Managing Configs
PowerShell to Import Distribution List Members From CSV/TXT
$GroupEmailID = "Sales@Crescent.com" $CSVFile = "C:\Temp\DL-Members.txt" #Connect to Exchange Online Connect-ExchangeOnline -ShowBanner:$False #Get Existing Members of the Distribution List $DLMembers = Get-DistributionGroupMember -Identity $GroupEma...
Windows - Walkthroughs
Powershell to Bulk Add Users to Different Distribution lists
$CSVFile = "C:\Temp\DL-Group-Members.csv" Try { #Connect to Exchange Online Connect-ExchangeOnline -ShowBanner:$False #Get date from CSV File $CSVData = Import-Csv -Path $CSVFile #Iterate through each row in the CSV ForEach...
Troubleshooting
Get CPU and RAM Usage
$Output = 'C:\temp\Result.txt' $ServerList = Get-Content 'C:\temp\Serverlist.txt' $ScriptBLock = { $CPUPercent = @{ Label = 'CPUUsed' Expression = { $SecsUsed = (New-Timespan -Start $_.StartTime).TotalSeconds [Math]::Round($_.C...
DFS - Cheatsheet
Port Setup
How to change the owner of an Azure Active Directory device
In Azure AD, you can see that each device has an owner. The owner is the user who joined the device to Azure AD, which is sometimes the administrator account. If you want to change the owner, you won’t be able to do so through the Azure portal. That is why in ...
Repairs
RSAT Install
# Get RSAT items that are not currently installed: $install = Get-WindowsCapability -Online | Where-Object {$_.Name -like "RSAT*" -AND $_.State -eq "NotPresent"} # Install the RSAT items that meet the filter: foreach ($item in $install) { try { ...
About Me
Under construction!
IP Address Lists
Store Wishlists
Remove Ghost Devices
removeghosts.ps1 <# .SYNOPSIS Removes ghost devices from your system .DESCRIPTION This script will remove ghost devices from your system. These are devices that are present but have an "InstallState" as false. These devices are typically shown as...
Test gMSA Account on DCs
# This will run on all Domain Controllers. . Replace 'adhealthcheck' with actual gMSA name Invoke-Command -ComputerName (Get-ADDomainController -Filter *).Name -ScriptBlock { $Account = Get-ADServiceAccount -Filter { Name -eq 'adhealthcheck'} Instal...