-
By Colin Smith I was just asked to take a look at writing a script for our new Exchange environment. Now I do not have a lot of experiance scripting for Exchange but I love a Powershell challenge. The problem was that all of our distribution groups ... Read More
-
$MailboxSvr = Get-MailboxServer | select name foreach($svr in $mailboxsvr) { $db = Get-MailboxDatabase -Server $svr.Name foreach($database in $db) { $Server = $database.Server.Name $Db = $database.Identity $edbfilepath = $database.EdbFilePath $path = “`\`\” + $Server + “`\” +...
-
Hi All, I am trying to run cmdlets from VB.NET. I managed to create a session to a remote session and to run either basic powershell commands or Exchange 2010 cmdlets. However I have a problem when trying to run more complex scripts, like "Get-Mailbox | Where-Object {$_.database -match "database"...
-
Hi, I'd like to know if it is possible to expand the triple dot to show all of the IP address neatly using powershell ? here's the command that I use: Get - ReceiveConnector | Select Name , RemoteIPRanges | ft - AutoSize Name RemoteIPRanges ---- -------------- Receive Connector { 10.2 . 1.10...
-
Hi Everyone, I'd like to know why the formatting for this powershell doesn't work ? [PS] C:\> Get-MailboxStatistics | sort-object -descending totalItemSize | ft -autosize DisplayName, @{expression={$_.totalitem size.value.ToMB()};label=”Mailbox Size(MB)”}, itemcount, lastlogontime...
-
Hi everyone, I'd like to know how to send the email of the following script using Send-MailMessage ? Get-MailboxStatistics | sort-object -descending totalItemSize | select -first 20 | ft -autosize DisplayName, @{expression={$_.totalitemsize.value.ToMB()};label=”Mailbox Size(MB)”}, itemcount...
-
Hello all, I'm currently trying to make a powershell script that gives me the following information in an e-mail with an XML attachment that contains the asked information This is the information I need to get: Computername - How much space there is left/free - How much space there is used Memory...
-
Hi All, Im actually a newbie here...and has been struggling to create a script that would automatically create an Exchange contact for a particular user, and uses that contact to set a fowarding for that user. We are planning a big email server migration, and as part of the cut-over, we need to setup...
-
Something happened recently that emptied the field of all our AD user's email address in their properties. The user's email and user name are the same firstname.lastname@domain.com Wondering if their was a powershell to fill in this field or pull the info from exchange.
-
Hi, we have multiple DLs that we want to change the displayname to. for instanace our current display name says "yahoo users" and we want to create a simple shell to change/replace displayname "yahoo users" to "yahoo all mail users" I tried acheiving this through running...