Links
Tag Archives: Powershell
test-connections – ping a list of addresses from a csv file and report result.
Posted in Powershell, VBS, VBA and other scripting.
Tagged network, Powershell
Comments Off on test-connections – ping a list of addresses from a csv file and report result.
Saving passwords for use in powershell scripts.
the get-credential command gets a username/password pair interactively. these can be created and saved to a file, making this file a secure document means that only the user who created it can use it. this means if you want to … Continue reading
Posted in Powershell, VBS, VBA and other scripting., System Administration
Tagged Azure, Powershell
Comments Off on Saving passwords for use in powershell scripts.
Powershell to list the rights for each mailbox (who can read others mailboxes)
Just need to put your server name and if you want to not include some of the access rights (ie bes server and backup software etc… just add it to the where clause). Get-Mailbox -server myserver | Get-MailboxPermission | where … Continue reading
Posted in Powershell, VBS, VBA and other scripting.
Tagged exchange, Powershell
Comments Off on Powershell to list the rights for each mailbox (who can read others mailboxes)
Powershell to export list of email forwards on an Exchange Server
this will list all the forwards that are active for mailboxes. $fwds = get-mailbox | Where-Object { $_.ForwardingAddress -ne $null } | sort Name | select Name, ForwardingAddress # now get the primary smtp adress of each forward address foreach … Continue reading
Posted in Hints and Tips, Powershell, VBS, VBA and other scripting.
Tagged exchange, Powershell
Comments Off on Powershell to export list of email forwards on an Exchange Server
Powershell to export list of Exchange Server Mailbox email addresses
this powershell snippet will export all the SMTP email addresses used on a mail server, useful to document and check on them. ; Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} ; Or to get … Continue reading
Posted in Hints and Tips
Tagged Exchange Server, Powershell, SMTP
Comments Off on Powershell to export list of Exchange Server Mailbox email addresses