Sunday, September 24, 2017
[LY13] Export address book to file
abserver -dumpfile "C:\LyncShare\n-WebServices-n\ABFiles\00000000-0000-0000-0000-000000000000\00000000-0
000-0000-0000-000000000000\F-0ef3.lsabs" c:\ABS-dump26Jun.txt
Sunday, August 27, 2017
[WSRV] Script to Block .Net 4.7
$registryPath = "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\WU"
New-Item -Path $registryPath -Force | Out-Null
$Name = "BlockNetFramework47"
$value = "1"
New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null
Saturday, August 5, 2017
Sunday, July 23, 2017
[LY13] Capture AutoD records
reg.exe query HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Lync\user001@domain.com.br\Autodiscovery
reg.exe query HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Lync\user001@domain.com.br\LyncAutodiscovery
[EX2013] Deploy MaxConcurrentApi
# deploy MaxConcurrentApi key in multiple Exchange servers
Get-Exchangeserver | foreach{Invoke-Command -ComputerName $_.fqdn -ScriptBlock {
$registryPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters"
$Name = "MaxConcurrentApi"
$value = "10"
IF(!(Test-Path $registryPath)){
New-Item -Path $registryPath -Force | Out-Null
New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null}
ELSE {
New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null}
restart-service netlogon -Force
}}
# deploy MaxConcurrentApi key in multiple DC servers. This is captured from the “currentDomainControllers” result.
(Get-Exchangeserver servername -Status).CurrentDomainControllers | foreach{Invoke-Command -ComputerName $_ -ScriptBlock {
$registryPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters"
$Name = "MaxConcurrentApi"
$value = "10"
IF(!(Test-Path $registryPath)){
New-Item -Path $registryPath -Force | Out-Null
New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null}
ELSE {
New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force | Out-Null}
restart-service netlogon -Force
}}
Saturday, June 17, 2017
[EX2013] OWA and ECP redirect to the FBA page
http://support.microsoft.com/kb/3032024/EN-US
Exchange 2013 does not support Microsoft Software Key Storage Provider (CNG)
Check it with "certutil -store my <cert serial number>"
Import PFX file (with private key) in a Windows 7 machine and add the following key before export it as PFX again:
Path: HKCU\Software\Microsoft\Windows\CurrentVersion\PFX
DWORD: NoProviderName
Value: 1
Import in the Exchange Server with the cmdlet:
certutil -csp "Microsoft RSA SChannel Cryptographic Provider" -importpfx "PFX file path"
[WSRV] Temporarily block installation of the .NET
HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP
Subscribe to:
Posts (Atom)