Tuesday, May 23, 2017

DiskPart to extend a volume from CMD

1: Go to Start, Run, then type

cmd

2:Type
diskpart

3: Type
list volume
to list the current volumes. The list will look like

  Volume ### Ltr Label Fs Type       Size  Status   Info
   ---------- --- ------------------- ----- -------- -------
   Volume 0   C   NTFS Partition      10 GB Healthy  System
   Volume 1   D   Data NTFS Partition  9 GB Healthy  Pagefile

4 Type
select volume <volume number>

to select the volume you want to extend.
5 Type
extend

to extend the selected volume. If you don't pass any parameters, DiskPart will use all unpartitioned space on the current disk. Alternatively, you can type

extent size=<size in MB> disk=<disk number>

to set a size and disk to use for the extension.
6 type
exit

Thursday, May 11, 2017

Create mailboxes Exchange from PowerShell

Create mailboxes from OU Exchange from PowerShell:

Set-AdServerSettings -ViewEntireForest $True
Get-User  -DomainController  dc01.test.local -OrganizationalUnit "OU=Organizations,DC=test,DC=local" | Enable-Mailbox -Database "MBX-name" -AddressBookPolicy "Your ABP"