Getting a report with hidden users
Hi Guys,Exchange 2010I am trying to find all users that are hidden in exchange and that are forwarding emails to others. Or if you have something better to find disabled users forwarding email will...
View Articlepowershell O365 - Import-Module : Could not find a part of the path
Hi, I'm try to import some cmdlet from o365 I get this error. Does anyone know why I get this. This happens some time. [PS] Z:\>$global:LiveCred = Get-Credential$global:Session = New-PSSession...
View ArticleExporting Mailbox Permissions
Hi all,In our Exchange 2007 environment, I have this Powershell script which outputs mailboxes, which users have access to them and the type of access, such as Full Access, Delete Items etc. into a...
View ArticleNotify DisplayName Change and Email it
All,I am working on a Script which will have to notify if DisplayName is changed.Below is the steps that i want my script to be doing.1. We are maintaining a BaseFile which will store the...
View Articlepowershell O365 - Import-Module : Could not find a part of the path
Hi, I'm try to import some cmdlet from o365 I get this error. Does anyone know why I get this. This happens some time. [PS] Z:\>$global:LiveCred = Get-Credential$global:Session = New-PSSession...
View ArticleGet-ADUser to Get-Mailbox
I'm running a report with the below script.All our users have an EmployeeID field populated. So I had to create the dump.txt file with:Get-ADUser-Filter'employeeid -like "*" -and employeeid -notlike...
View ArticleParse CSV with udpated Contact details, and update Contacts' details with...
We have a list of email contacts with Customattribute1 set to a 6 digit number.I will be provided with a list of these contacts in csv, some of the details may have changed, such as lastname, title and...
View ArticlePowerShell queries across sites very slow
Hey guys, I am setting up Exchange 2010 on Windows 2012 servers in 2 sites. These are 2 different AD sites and they are connected with a 10MB pipe with no firewalls between them. When I run Exchange...
View ArticleReport for last time user accessed their email account and sorted by department
I've been tasked with creating a report listing users, department, last date/time they accessed their email account sorted by department.The example I have provides a lot of information but not the...
View Articleexchange 2010 - list folders for all users inc number of items
I need to list all folders that our users have in their outlook inc number of items.This is what I have:Get-Mailbox | Get-MailboxFolderStatistics -FolderScope All |Sort-Object FolderSize...
View ArticleRename exported PST files from samAccountName to primarysmtpaddress
First time working with scripting with Powershell. I need your help. I have completed an export of all users mail data to PST files for ingestion into a cloud archive solution. The cloud solution...
View ArticleExporting users with a pecified Prohibit Send quota to a csv
Most of my users in the Org are set to use Mailbox database quota defaults. However, we have some on-offs that have been manually configured to have a 2500 MB Prohibit Send Value assigned. How do I...
View ArticleGet-MobileDevice and remove duplicates
Here is the current script I have which produces the results I want but since individuals have multiple devices (iphone, ipad, android, windows phone etc) the results have there name on multiple rows....
View ArticleO365 - Exchange 2013
Hi Experts! - I am a newbie to powershell with experience over the last several months doing standard work as a systems admin..never been a scripter/programmer; but I am trying!I am trying to right a...
View ArticleDynamic Distribution List in Exchange 2010
Hi I am looking for a powershell script that will allow me to create a Dynamic Distribution for all the users-city = Brooklyn-state = NY-And not contractor.Under the general Tab for a user account, in...
View ArticleScript to get mailbox size for users by department
I need assistant getting mailbox size for a group of users that belong to a specific department. Does anyone know how to use the Department field as a parameter in a script. Ideally I would like to...
View ArticleArray not populating correctly from foreach loop
Have a report, where I fetch data, but need to insert a field, whose value is derived from what is in another field. Trouble is coming from the foreach loop. Every loop is appending an index into...
View ArticleNot reading variable properly when script run from the shell.
Hello,I think this is probably something I'm doing incorrectly.I'm doing a simple script to send an email with the Net.Mail.MailMessage class. This is because with that it's easy for me to construct...
View Articlemodifying mapirecipient with powershell
I would like to set the mapirecipient field from $True to $False for a contacts in Active Directory ( These are contacts and are not mail enabled) by loading the Exchange shell I can get the...
View ArticleWant to delete (60) Disconnected mailboxes in 2010
We have moved over 60 mailboxes in exchange 2010 to another mailbox database. The original mailboxdatabase now has over 60 disconnected mailboxes. We want to delete the mailboxes now and not wait for...
View Article