KVT Tool Major Update – 1.5.7

Overview Great news! I have recently performed major upgrades to KVT Tool. These new features bring both beauty and finesse. Noteworthy mentions: Moved away from traditional PS arrays. Now using data table objects.Improved UI by leveraging DataGridView and TabControl forms.Unfroze the UI! Achieved this thanks to [runspacefactory] RunspacePools. Took a little while to master, but … Continue reading KVT Tool Major Update – 1.5.7

Home Folder – Compare folders against current domain users

Here is a PowerShell script which probes network home folders with users against the domain. Helpful in order to determine which home folders no longer reference current user accounts and which can safely be removed/archived. $folders = gci "\\Domain.Local\DFS\Users" #This is the root path containing home folders. foreach ($folder in $folders)   {     $username1 … Continue reading Home Folder – Compare folders against current domain users

Exchange 2013 – Get Mailbox Size Statistics

Here is an Exchange Shell script which is helpful in determining mailbox sizes. Queries all user objects within an OU so it is nifty for producing statistics, especially for disabled users. $mailboxes =  Get-mailbox –OrganizationalUnit “domain.local/CompanyName/Disabled Users” foreach ($mailbox in $mailboxes) {     $name = $mailbox.Name     Get-MailboxStatistics $name | Sort -Property TotalItemSize | Select-Object … Continue reading Exchange 2013 – Get Mailbox Size Statistics

Home Folder – Archiving Disabled Users

Here is aPowerShell script to archive all users within an organisational unit (Disabled Users) to a network path. Prerequisite is to grant your Administrator account with ownership/full control permissions to home folders in question prior move. If this condition is not met, then original home folders will remain with remnant data which was inaccessible. $users … Continue reading Home Folder – Archiving Disabled Users

Exchange 2013 – Archiving Disabled Users

Here is an Exchange Shell script to archive all users within an organisational unit (Disabled Users) to a network path. Prerequisite is to grant built-in security group Exchange Trusted Subsystem with modify access to network path. $mailboxes =  Get-mailbox –OrganizationalUnit “DOMAIN.LOCAL/CompanyName/Disabled Users” foreach ($mailbox in $mailboxes) {     $name = $mailbox.Name     if(!(Test-Path "\\[FILESERVER]\Archive$\$name\")) { … Continue reading Exchange 2013 – Archiving Disabled Users