Install .NET 3.5 on Server 2012 R2

Author: Andrew Tryon  //  Category: Uncategorized, Windows Server 2012
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All

Winmail.dat when sending from Exchange/Office 365 to Gmail (and perhaps others)

Author: Andrew Tryon  //  Category: Uncategorized
Set-RemoteDomain Default -TNEFEnabled $false

Configuring NTP on Windows Server 2012

Author: Andrew Tryon  //  Category: Windows Server 2012
w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:MANUAL
Stop-Service w32time
Start-Service w32time

Azure AD Connect Sync

Author: Andrew Tryon  //  Category: Uncategorized
Start-ADSyncSyncCycle -PolicyType Initial
Start-ADSyncSyncCycle -PolicyType Delta

Connect to Office 365 via PowerShell

Author: Andrew Tryon  //  Category: Exchange
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session

Get External IP Address From Command Line

Author: Andrew Tryon  //  Category: Uncategorized
nslookup myip.opendns.com. resolver1.opendns.com

Exchange – Get Distribution Group Members

Author: Andrew Tryon  //  Category: Exchange
foreach ($group in Get-DistributionGroup) { get-distributiongroupmember $group | ft @{expression={$_.displayname};Label=$group} | Out-File c:\temp\DistributionListMembers.txt -append}

Install Dell OpenManage on PowerEdge T20

Author: Andrew Tryon  //  Category: Stupid Server

Dell OpenManage is not technically supported on the PowerEdge T20 and perhaps others, but you can still install it with the right commands.

If you try to run the installer per Dell’s instruction you will get the following error:

This is not a supported server. Server Administrator software can only be installed on supported servers.

To install the software you will need to open a command prompt and browse to the msi file typically located at C:\OpenManage\windows\SystemsManagementx64\. From here run the following command:

msiexec /i SysMgmtx64.msi SYSTEMCHECK=NO

This will install OpenManage without doing the prerequisite check.

Silently install Vipre agent with MSI install

Author: Andrew Tryon  //  Category: Antivirus

Create a MSI installer for the policy you want to use
Copy the file to a location accessible by the computer you want to run the agent installer on
Run the following command

AgentInstaller-SITE-NAME-Workstations-General-EN.MSI /q /qn /promptrestart

Reset ESXi to 60-day eval license

Author: Andrew Tryon  //  Category: VMWare ESXi

Access the console of the ESXi
Press Alt-F1
Log in as root
Run the following commands to delete two files and restart the VMWare services

cd  /etc/vmware
rm -r vmware.lic
rm -r license.cfg
services.sh restart

When you log back into ESXi using the vSphere Client you will be back in Evaluation Mode for 60 days

Note: If you get a message that says ‘Tech Support Mode has been disabled by the administrator’ message you may do the following:

Log into vSphere Client
Select the host and then the configuration tab
Select Security Profile under Software and then click Properties
Select Local Tech Support and then click Options
Click Start under Service Commands
You may now log into the ESXi console using Tech Support Mode

?>