Browse Forum Posts by Tags

Showing related tags and posts for the PowerShell for Exchange forum. See all tags in the site
  • Remove Domain/OU rom ManagedBy output of Exchange2007 Get-DistributionGroup cmdlet

    Hi , Can someone help with an Exch 2007 PS script to format the result below to remove the shaded portion of ( domain.com/OU/OU USer Accounts/ ) and ( 12:16) from the managedby Attribute using the Get-DistributionGroup cmdlet in Exchange2007 Powershell : DisplayName OriginatingServer WhenCreated ManagedBy...
    Posted to PowerShell for Exchange (Forum) by taofik_ng on 01-31-2012
    Filed under: Exchange, powershell, Exchange 2007, Powershell command:
  • Show a menu based on multiple variables!

    I'm writing a script in powershell. What I want to have happen, is to have a menu to restart a service appear based on an error being detected on the server. Say a service is not running, or outlook does not pass a connectivity test, I want the script to use both variables in determining to show...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-14-2012
    Filed under: InvokeCommand, remoting, Exchange, script block, remote, powershell, exchange 2010, Powershell command:
  • Add event logs to a transcript!

    I added the transcript option to my script. Using the start-transcript. What I want is to have event logs to be added into the transcrpt. I know you can use get-eventlog -logname application... But I want to add specific logged events into the transcript. Like, start-transcript -append eventlogs, something...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-15-2012
    Filed under: remoting, Exchange, script block, powershell, exchange 2010, Powershell command:
  • Re: Add event logs to a transcript!

    Yes so I added the -append switch to the start-transcript. Also did a >> with get-eventlog so it would append that info to the info in the transcript. Problem is that it's throwing the error "unable to access the file as another person or process is all ready using it". So how would...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-20-2012
    Filed under: remoting, Exchange, script block, remote, powershell, exchange 2010, Powershell command:
  • Re: Add event logs to a transcript!

    Ok so I was doing some further digging and realized that when a file in in use by start-transcript, that file appears to become locked from use by any other cmdlets. So what I did was this: start-transcript output file is C:\transcript.txt Run cmdlet, run test stop-transcript get-eventlog >> C...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-28-2012
    Filed under: InvokeCommand, remoting, Exchange, script block, powershell, exchange 2010, Powershell command:
  • How do I use Invoke-Command correctly?

    Im trying to run the command test-outlookconnectivity -protocol:tcp or http -trustanysslcert:$true. I'm wanting to run it on a remote machine as if I were on the machine, and have the output returned to the screen of the local machine. As stated in this article: http://technet.microsoft.com/en-us...
    Posted to PowerShell for Exchange (Forum) by jwhite on 03-07-2012
    Filed under: InvokeCommand, remoting, Exchange, script block, remote, powershell, exchange 2010, Powershell command:
  • Exchange set command in 2010

    Hi Team, Please let me know how to run this command. i have a csv file and it contains the list mailbox names and the setting to apply true or false. I need to apply ScheduleOnlyDuringWorkHours for some users true and false. I want it should take from my csv file and need to apply the settings Please...
    Posted to PowerShell for Exchange (Forum) by kamalasekar.p on 03-15-2012
    Filed under: Exchange, exchange 2010, Powershell command:
  • Show Role permissions for RBAC

    I want to be able to see the commands that each person in a role group has the perms to run based on the assigned role for the group they are in. If I run get-rolegroup it shows me the roleassignments but not the cmds the role group has the permission to run. Any way to see the users and the cmds they...
    Posted to PowerShell for Exchange (Forum) by jwhite on 06-25-2012
    Filed under: Exchange, exchange 2010, Powershell command:, exchange2010, powershellshell
  • Run a test-mailflow within the invoke-command?

    I'm trying to run the test-mailflow cmdlet, within the invoke-command cmdlet. I'm on a Client Access Server and I can issue the test-mapiconnectivity cmdlet against a user. However in order to run the test-mailflow cmdlet, I need to be on the mailbox server that the user is on. I'm referencing...
    Posted to PowerShell for Exchange (Forum) by jwhite on 07-31-2012
    Filed under: InvokeCommand, remoting, Exchange, remote, exchange 2010, Powershell command:, exchange2010, powershellshell
  • Exchange Scripting Question

    Hi, I'm trying to create a script that will check to see if a user in a list (text document) is on litigation hold, and if so print it out on the screen. Below is what I have : foreach ($alias in get-content C:\Windows\system32\scripts\testusers.txt) { Get-Mailbox -Identity $alias | fl LitigationHoldEnabled...
    Posted to PowerShell for Exchange (Forum) by sahinboluk on 05-07-2013
    Filed under: Exchange, powershell, exchange 2010, Powershell command:, powershell command:scripts, exchange2010, Exchange 2003 to 2010
Page 1 of 2 (15 items) 1 2 Next >
Copyright 2012 PowerShell.com. All rights reserved.