• Home
  • PS
  • C#
  • Perl
  • MSSQL
  • MariaDB
  • Linux
  • Docker
  • MacOS
  • PG
  • Exchange Server
  • Windows
  • Other

Home

Exchange 2016 удаление

Details
Written by: po3dno
Category: Exchange Server
Created: 08 December 2015
Hits: 1088

1. Удаление автономной адресной книги

Get-OfflineAddressBook | Remove-OfflineAddressBook -confirm:$false -force

 

2. Удаление арбитражных ящиков

Get-Mailbox -Arbitration |  Disable-Mailbox -Arbitration –DisableLastArbitrationMailboxAllowed -confirm:$false

 

3. Отключение всех ящиков 

Get-Mailbox -archive | Disable-Mailbox -confirm:$false

Get-Mailbox -monitoring | Disable-Mailbox -confirm:$false

Get-Mailbox | Disable-Mailbox -confirm:$false

Get-Mailbox -AuditLog | Disable-Mailbox -confirm:$false

 

4. Удаление базы данных

Get-MailboxDatabase | Remove-MailboxDatabase -confirm:$false

 

Copy Receive Connectors to a New Exchange Server

Details
Written by: po3dno
Category: Exchange Server
Created: 29 May 2015
Hits: 1094

To perform this task, we'll first set two variables to define the source and target servers:

$OldServer = "OldServer"

$NewServer = "NewServer"

Then, we'll retrieve the list of non-default Receive Connectors from the source server into the variable$ReceiveConnectors:

[array]$ReceiveConnectors = Get-ReceiveConnector -Server $OldServer | Where {$_.Name -notlike "Default $($OldServer)" -and $_.Name -notlike "Client $($OldServer)"}

Read more …

Удалить IE

Details
Written by: po3dno
Category: Other
Created: 16 March 2015
Hits: 1104

gc computers.txt | %{$c = $_; ..\PsExec.exe -s -d -n 5 \\$c cmd /c 'Uninstall_IE10.cmd'}

 

Содержимое Uninstall_IE10.cmd:

FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*10.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart

 

Содержимое Uninstall_IE11.cmd:

 

FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart

Port WWN

Details
Written by: po3dno
Category: Power Shell
Created: 16 March 2015
Hits: 1127

Get-WmiObject -class MSFC_FibrePortHBAAttributes -namespace "root\WMI" | Select -Expandproperty Attributes | % { ($_.PortWWN | % {"{0:x2}" -f $_}) -join ":"}

Windows Server 2012 R2 Hyper-V Core

Details
Written by: po3dno
Category: Other
Created: 15 October 2014
Hits: 1198

Настройка сервера в режиме Core

 

Исходные данные:

2 сетевых адаптера, managment VLAN 1618

 

Задача:

  1. Объединить в тиминг
  2. Создать vSwitch
  3. Пробросить mangment vlan через vSwitch
  4. Ввести в домен
  5. Предоставить доступ RDP

 

Выполняем:

Получаем установленные адаптеры в системе:

Get-NetAdapter

 

Делаем тиминг из активных адаптеров:

New-NetLbo-Team -name "NIC Team" -Teammembers

 

Создаем виртуальный свитч и говорим, что ОС может управляться через vlan 1618:

New-VMSwitch -name "Physics" -NetAdapterName "NIC Team" -AllowManagementOS $true

Set-VMNetworkAdapterVlan -ManagementOS -VMNetworkAdapterName "Physics" -Access -VlanId 1618

 

Задаем IP и DNS:

Get-NetAdapter

New-NetIPAddress -InterfaceAlias "vEthernet (Physics)" -IPAddress 10.116.18.221 -PrefixLength 24 -DefaultGateway 10.116.18.254

Set-DNSClientServerAddress -InterfaceAlias "vEthernet (Physics)" –ServerAddresses (“10.0.0.1”,”10.0.0.2”)

 

Разрешаем подключение через RDP в Firewall:

Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

 

Доменим

через sconfig

  1. Просмотр логов с транспортных серверов Exchange (Get-MessageTrackingLog)
  2. Обновление поля "Руководитель" в AD
  3. Установка кластера серверов 1С на двух физических серверах
  4. Настройка клиент-серверного доступа к 1С через WEB-интерфейс

Subcategories

Power Shell Article Count:  53

C# Article Count:  10

Perl Article Count:  1

Exchange Server Article Count:  15

Other Article Count:  24

MSSQL Article Count:  17

Windows Article Count:  25

MariaDB Article Count:  3

Linux Article Count:  7

Docker Article Count:  2

pg Article Count:  1

Page 22 of 32

  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

Login Form

  • Forgot your password?
  • Forgot your username?

Statistics

  • Users 2
  • Articles 164
  • Articles View Hits 149075