quinta-feira, 4 de dezembro de 2014

Alterar a senha do Administrador da Farm SharePoint

No servidor de aplicação:

  On the computer running the Central Administration Web site, open the command line and navigate to the
Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN folder.

At a command prompt, type the following command, and then press ENTER:
stsadm -o updatefarmcredentials -userlogin <domain\username> -password <newpassword>
NoteNote:
userlogin is the server farm account.

You must restart the Web application pool for the changes to be saved.
At a command prompt, type the following command, and then press ENTER:
iisreset /noforce

Alterar a senha dos serviços do Windows




segunda-feira, 3 de novembro de 2014

WMI reset failed

WMI reset failed

Resolução de vários problemas, tais como não instalar o cliente SCCM e desaparecendo namespaces cluster. Geralmente redefinir o WMI é um último recurso e só deve ser utilizado quando você já tentou todas as outras opções. por exemplo reiniciar o serviço WMI, reiniciar servidor.

O comando para redefinir o repositório WMI deve ser executado em um prompt de comando elevado:

winmgmt / resetrepository

No entanto, por vezes, esta falha com este erro:

C: \ Users \ adminuser> Winmgmt / resetrepository

C:\Users\adminuser>Winmgmt /resetrepository
WMI repository reset failed
Error code:     0x8007041B
Facility:       Win32
Description:    A stop control has been sent to a service that other running services are dependent on.

Embora seja possível contornar parando os serviços dependentes manualmente ou até mesmo editar o registro para que nada seja dependente deste, existe uma solução muito mais fácil.

1. Inicie um (admin) janela do PowerShell elevado.
2. Digite o comando a seguir.
Stop-Service winmgmt -Force; winmgmt / resetrepository
3. Reinicie o computador.

terça-feira, 8 de julho de 2014

Liberar e bloquear tipos de extensões de anexo no OWA - Exchange 2013

Verificar o nome da politica do OWA padrão:
Acesse o Centro de Administração do Exchange > Permissões >  Politicas do Outlook Web App

Através do powershell:
Para verificar as extensões já liberadas
Get-OwaMailboxPolicy Default | select -ExpandProperty allowedfiletypes

Para verificar as extensões bloqueadas
Get-OwaMailboxPolicy Default | select -ExpandProperty blockedfiletypes

Remover extensão da lista de bloqueados: Ex.: xml
Get-OwaMailboxPolicy Default | Set-OwaMailboxPolicy -BlockedFileTypes @{Remove = “.xml”}
Get-OwaMailboxPolicy Default | Set-OwaMailboxPolicy -BlockedMimeTypes @{Remove = “text/xml”, “application/xml”}

Adicionar na lista de extensões permitidas
Get-OwaMailboxPolicy Default | Set-OwaMailboxPolicy –AllowedFileTypes @{Add = “.xml”}
Get-OwaMailboxPolicy Default | Set-OwaMailboxPolicy -AllowedMimeTypes @{Add = “text/xml”, “application/xml”}

Referencia: http://technet.microsoft.com/en-us/library/dd297989(v=exchg.150).aspx

terça-feira, 8 de abril de 2014

Comandos Exchange

Desabilitar IMAP do mailbox do usuário:
     Set-CASMailbox -Identity "usuario" -IMAPEnabled $false

Listar todos os usuários:
     Get-Mailbox | Sort database, name | Format-Table name, database

MessageTracking:
     Search-MessageTrackingReport -Identity ad\usuario.mailbox -sender "usuario.externo@contoso.com.br" -BypassDelegateChecking -DoNotResolve


     Search-MessageTrackingReport -Identity "ad\usuario.mailbox" -Sender "usuario.externo@contoso.com.br" -ByPassDelegateChecking -DoNotResolve | ForEach-Object { Get-MessageTrackingReport -Identity $_.MessageTrackingReportID -DetailLevel Verbose -BypassDelegateChecking -DoNotResolve -RecipientPathFilter "usuario.mailbox@minhaempresa.com.br" -ReportTemplate RecipientPath }



Implantar atualizações do System Center 2012 Endpoint Protection via Share UNC

Segue link referencia:

http://www.niallbrady.com/2013/02/22/how-can-i-deploy-system-center-2012-endpoint-protection-definition-updates-from-a-unc-file-shares/


sexta-feira, 21 de março de 2014

YUM - Install epel and remi repositories

1. Install epel and remi repositories:
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

2. Enable remi repository:
# sudo vi /etc/yum.repos.d/remi.repo
In the [remi] section of the file, set the "enabled" option to 1.