Quantcast
Channel: PowerShell General
Browsing all 10624 articles
Browse latest View live

Outlook 2013 Calendar appointment with invitation.

Hi all,I have a ps script that i am attempting to use to automatically set appointments through outlook 2013 that is an exchange account. Everything works except i cant seem to figure out how to send...

View Article


Output of a Script to a .txt File

Hi All, First time posting here and very new to powershell and scripting in general so thank you to anyone for their help.  I've read the "Redirect output of a script to a file" thread and have...

View Article


progress bar/ group of aliases

I wrote a script that imports a list of user alias' s, each alias then runs through the pipe and begins a new mailbox move to a specific server and database. What I want is a script that queries just...

View Article

Appending to a Displayname in Exchange 2007

I am trying to append ***Disabled***  to 387 user's Displayname using the import-csv command. The csv contains Displayname, Alias. Any idea on how i can script this so i don't have to do it individually?

View Article

Exporting Distribution Group Members

I am trying to run the following script but it gives me a message about Input being NULL.  What am I missing? $report=foreach($i in Get-DistributionGroup | where {$_.Name -like '*equity*'}) {...

View Article


Sending each item of array as new line.

I want to send each item in that array as new line:$str = Get-Service -DisplayName Windows* | foreach {$_.DisplayName} | Out-Stringif I run that script:$str = Get-Service -DisplayName Windows* |...

View Article

Conneting to Exchange 2010 from win7(different domain)

Hello All,Client: Win 7 EnterpriseClient Domain:ds.swin.edu.auHost server: Windows 2008 R2 EnterpriseSever domain: ex.swin.edu.auExchange: 2010How do I connect to Exchange 2010 with powershell...

View Article

Help with automation of email address policy PS script

I have a need to pull information from a file and automate the process of adding Email Address PoliciesI am trying to run a script but I'm hitting dead endsThe first part of the script need to launch...

View Article


Script to find SMTP addresses with #2 after them

Good Day all, I am running Exchange 2010 in my environent and as you know if you create an address for a user that already exists it will create the account with First.Last2@my domain.com.Is there a...

View Article


Email address to Userr ID

HiIm trying to use powershell to obtain the users samid based on their email address (SMTP)Can someone please help as im new to powershell.

View Article

Image may be NSFW.
Clik here to view.

powershell script for assigning \changing ownership of a shared mailbox

Can someone please tell me shell script for assigning or changing ownership to a mailbox ?!I am new to powershell, I have to update ownership of 200 shared mailboxes and would really prefer to run a...

View Article

Script to find new accounts created on or after a specified date

Can anyone tell me how to get all new accounts created on or after a specified date and display the email name, first name and last name?

View Article

Is there a way to pull number of e-mails sent\received from a particular Ad...

Good day everyone, I have a bit of a problem hopefully someone can help me here. I have a domain ABC.com with several Ad forests. Is there a powershell script that can distinguish users from a...

View Article


Import multiple PST files to archive database

I need to create some script for import pst users archives to EXCHANGE 2010 sp1 database.Mail archives stored on single file server \\FILE-SERVER\PST\%Username%\An amount and name of files is different...

View Article

Accept Message Restriction - Exchange 2007

Dear experts,                 Good day! I would like to achieve the followings using PowerShell. Your step-by-step guidance is very much appreciated. 1.      To find out the list of mailbox and...

View Article


Sum deleted items

Hi thereim trying to run a small one liner that will sum the total deleted items folder for a group of users on adatabase so something like this:Get-Mailbox -Database db1 |Get-MailboxFolderStatistics...

View Article

Exchange 2010 Dynamic Distribution Group needed

Where: RecepientType equals User MailboxANDCompany does NOT equal "Rex"

View Article


Report on individual mailbox.

I have written a Powershell command:Get-MailboxFolderStatistics 'Mailbox1' |select name, foldersize, itemsinfolder |Export-CSV C:\Mailbox1reportWhich works fine, I want to drill down a little more and...

View Article

Have a script but getting errors. Bulk upload contact to GAL office 365 from csv

I have found this script looks great, when I run it in PowerShell It creates the contacts, enters in the Name fields ( Name-first-last-email) but when it goes to the Set Contact parameter there are...

View Article

Script to clean out old messages from Journal mailbox after exporting email...

After using the following script to export email to a .PST file I'm wanting to clean out the Journal email box called "JournalMailbox":  New-MailboxExportRequest JournalMailbox -FilePath...

View Article
Browsing all 10624 articles
Browse latest View live