Mostrar mensagens com a etiqueta PowerShell. Mostrar todas as mensagens
Mostrar mensagens com a etiqueta PowerShell. Mostrar todas as mensagens

10 de novembro de 2009

Management Shell Quick Reference for Exchange 2010

38262849-10c1-4796-aa59-48d896abb83f

Um excelente documento que os administradores de TI devem manter por perto: Exchange Management Shell Quick Reference for Exchange 2010.

Brief Description
This download contains a quick reference sheet that can be used to access frequently used Exchange Management Shell cmdlets and syntax in Microsoft Exchange Server 2010.

Overview
The Exchange Management Shell provides a powerful command-line interface for Microsoft Exchange Server 2010 that enables automation of administrative tasks. This quick reference guide provides a list of frequently used cmdlets, important conventions, and useful tips. The information is presented by feature area, such as recipient, transport, and database administration. This quick reference guide applies to Exchange 2010.

5 de junho de 2008

Mailbox Size GUI Script for Exchange 2007

No seguimento do meu post de ontem sobre uma ferramenta gráfica, gostaria de voltar ao assunto, anunciando a mais recente contribuição do Glen Scales: Version 5 of the Mailbox Size Gui Script for Exchange 2007 (clique na imagem para aumentar).

No velhinho Exchange 2003 System Manager era realmente fácil obter uma lista de todas as mailboxes e o respectivo tamanho. Esta é sem dúvida uma das funcionalidades que os messaging administrators por esse Mundo fora mais sentem falta na consola de administração do Exchange Server 2007.

Claro que para os viciados em PowerShell, esta é uma tarerfa básica (consultem este post do Devin Ganger ou este outro no site dos ExchangeNinjas), mas para quem prefere ferramentas gráficas (como eu), esta ferramenta do Glen é uma verdadeira pérola.

4 de junho de 2008

Exchange 2007 Content Agent Log Message Tracker GUI

Andava para escrever há séculos sobre este fantástico script que o Glen Scales escreveu, parece que é desta! Este pedaço de código em PowerShell, Exchange 2007 Content Agent Log Message Tracker Gui, permite facilmente pesquisar os logs relativos ao Content Filtering Agent.

Embora seja possível manuasear os logs dos agentes antispam utilizando apenas PowerShell puro e duro, tal como o Bharat tão bem explica neste post Exchange Server 2007: Managing And Filtering Anti-Spam Agent Logs, para todos aqueles que não gostam da linha de comandos, este script pode ser uma bóia de salvação.

Este é o aspecto do GUI (clique para aumentar):

De acordo com as palavras do Glen, aqui fica fica uma breve introdução às potencialidades do script:

  • There are textboxes to allows you to search based on the from and/or To address.
  • There is a drop down list to allow you to select a SCL level to look at so you can choose to filter by only messages that have been assigned a specific SCL value.
  • The Extra sections has the aggregate options. Currently it has four aggregate option it can aggregate:
    • By SCL this shows you by SCL Value how many messages where received between the dates specified
    • By Receiver will show you grouped by receiver how many messages have been received for each SCL value
    • By Sender will show you grouped by Sender(P1) how many messages have been received for each SCL value
    • By Date will show you by Date how many messages have been received for each SCL value.

Se quiserem criar um shortcut para lançar o script, e partindo do princípio que este foi gravado na pasta "%ProgramFiles%\Microsoft\Exchange Server\Scripts\", esta é a linha de comando necessária:

%windir%\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" -command ". 'C:\Program Files\Microsoft\Exchange Server\Scripts\cagentTracker.ps1'"

Se os resultados obtidos com esta ferramenta não forem suficientes, fiquem sabendo que o Exchange inclui, out-of-the-box, alguns scripts de PowerShell que constroem alguns relatórios bem interessantes. Mais uma vez o Bharat fez um excelente trabalho em descrevê-los: Keeping tabs on Antispam filters: A few handy scripts in Exchange Server 2007.

24 de fevereiro de 2008

Script de PowerShell para migrar utilizadores de Lotus Notes

Há algum tempo atrás eu escrevi um post sobre a minha experiência de utilização do Transporter Suite na migração de Lotus Notes para Exchange Server 2007.

Nesse post eu mencionava que tinha tido alguns problemas na fase de migração de utilizadores e que por isso tinha feito um script em VBScript para realizar essa tarefa.

Não sei se está relacionado ou não com o mesmo erro que eu tive, mas o  'The CollabTools' Blog disponibilizou um PowerShell script que faz mais ou menos a mesma coisa:

# The script below provides the same functionality as move-dominoUser but does not enable
# the email address policy generator [RUS]. The default behavior of move-dominoUser is to
# mailbox enable the user object, apply email address policy as primary addresses and
# then add email addresses from contacts as secondary email addresses. If you intend to
# persist contact email addresses as primary email addresses of the mailbox enabled user,
# then this script is for you.

O script de PowerShell está disponível neste link.

18 de dezembro de 2007

PowerShell commands for Active Directory

Ora aqui está um assunto que eu andava para blogar desde que o li no blogue do Evan Dodds.

A Quest disponibiliza o ActiveRoles Management Shell for Active Directory que mais não é que um conjunto de comandos PowerShell (CMDLETs) que podem ser descarregados de forma grátis da página da Quest e utilizados para realizar operações de administração na Active Directory.

The ActiveRoles Management Shell for Active Directory is an Active Directoryspecific automation and scripting shell that provides a command-line management interface for administering directory data either via Quest ActiveRoles Server or by directly accessing Active Directory domain controllers. The ActiveRoles Management Shell is built on Microsoft Windows PowerShell technology.

The ActiveRoles Management Shell is implemented as a Windows PowerShell snap-in, providing an extension to the Windows PowerShell environment.

As the commands provided by the ActiveRoles Management Shell conform to the Windows PowerShell standards, and are fully compatible with the default command-line tools that come with Windows PowerShell, the information found in the above documents of Microsoft’s is fully applicable to the ActiveRoles Management Shell for Active Directory.

Recentemente, necessitei de exportar todos os ProxyAddresses de vários utilizadores, pelo que estes cmdlets se revelaram bastante úteis. Aqui fica a linha de comando utilizada:

Get-QADUser -DontUseDefaultIncludedProperties -ObjectAttributes @{mail='*'} -IncludedProperties sAMAccountName,distinguishedName,mail,
userPrincipalName,proxyAddresses  -SerializeValues -SizeLimit 0 | Export-Csv 'C:\proxyAddresses.csv'

E esta é a lista de todos os cmdlets disponíveis:

CONNECT-QADSERVICE
DISCONNECT-QADSERVICE
GET-QADUSER
SET-QADUSER
NEW-QADUSER
DISABLE-QADUSER
ENABLE-QADUSER
UNLOCK-QADUSER
GET-QADGROUP
SET-QADGROUP
NEW-QADGROUP
GET-QADGROUPMEMBER
ADD-QADGROUPMEMBER
REMOVE-QADGROUPMEMBER
GET-QADCOMPUTER
GET-QADOBJECT
SET-QADOBJECT
NEW-QADOBJECT
MOVE-QADOBJECT
RENAME-QADOBJECT
REMOVE-QADOBJECT
NEW-QADPASSWORDSETTINGSOBJECT
GET-QADPASSWORDSETTINGSOBJECT
ADD-QADPASSWORDSETTINGSOBJECTAPPLIESTO
REMOVE-QADPASSWORDSETTINGSOBJECTAPPLIESTO
CONVERT-QADATTRIBUTEVALUE
GET-QADPSSNAPINSETTINGS
SET-QADPSSNAPINSETTINGS