Posts
Mailbox Enable all users in an OU
As well as having to Skype enable all users recently (see previous post) I also had to mailbox enable the users. With Exchange 2010 you can’t just import the powershell module. Using this article as a base I came up with this;
$Session = New-Pssession -COnfigurationName Microsoft.Exchange -ConnectionUri http://exchangeservername/powershell
Import-Pssession $Session
Get-User -OrganizationalUnit “OU=ExampleOU,DC=Example,DC=Com” | Enable-Mailbox -database “your mailbox database”
Posts
Skype/Lync Enable all users in an OU
I recently had to enable all users in a specific OU for Skype for Business 2015. Easily done with Powershell;
Either import the skypeforbusiness module into a normal Powershell window or run the Skype for Business Server Management Shell
import-module skypeforbusiness
Get-CsAduser -OU “OU=ExampleOU,DC=example,DC=com” | Enable CSuser -RegistrarPool “your pool name” -SipAddressType emailaddress
Posts
Set IP Address and DNS settings with PowerShell - Windows 2012 and newer
get-netadapter
Name InterfaceDescription ifIndex Status —- ——————– ——- —— ———- Ethernet vmxnet3 Ethernet Adapter 12 Up
Name is the interfacealias.
New-Netipaddress -interfacealias “ethernet” -ipaddress 192.168.0.10 -prefixlength 24 -defaultgateway 192.168.0.1
Could also use
new-netipaddress -interfaceIndex 12
set-dnsclientserveraddress -interfacealias “ethernet” -serveraddresses"192.168.0.10,192.168.0.11"