Move/Transfer Active Directory FSMO roles using PowerShell

Rather than using the GUI, you can move the Active Directory (AD) from the command prompt using PowerShell in just a few seconds, rather than minutes. Import the Active Directory PowerShell module: Import-Module activedirectory Transfer all the FSMO roles at once, or one by one: Move-ADDirectoryServerOperationMasterRole -Identity "<DC_Name>" -OperationMasterRole PDCEmulator, RIDMaster, InfrastructureMaster, SchemaMaster, DomainNamingMaster There are five FSMO roles to transfer: PDCEmulator RIDMaster InfrastructureMaster SchemaMaster DomainNamingMaster To check which FSMO roles are on what domain controller, from the command prompt run netdom query /d:<domain> fsmo

Windows Server 2012 Hyper-V Jumbo Frames

Some of this came from this http://blogs.technet.com/b/askpfeplat/archive/2013/03/10/windows-server-2012-hyper-v-best-practices-in-easy-checklist-form.aspx This article discusses setting up Jumbo Frames on a Hyper-V server with Windows Server 2012 using the new Hyper-V extensible switch. I setup Jumbo Frames on the Hyper-V host itself with the iSCSI, Live Migration and CSV networks. I also setup Jumbo Frames within the actual virtual machine, only if iSCSI is used at the virtual machine level. Generally the management network and LAN traffic is not included in this, as Jumbo Frames need to be enabled on every switch which is physically situated between the sender and the receiver node. Check if…

Remote PowerShell

I installed System Center Data Protection Manager 2012 (SCDPM) with SP1 and installed the agents on all my servers. I then got an error when adding backups/protection groups. A whole bunch of my servers said “Replica is inconsistent”. I also received the following error in the event log of my SCDPM 2012 server. Event ID: 3106 Source: DPM-EM The replica of Non VSS Datasource Writer on <servername>.contoso.local is inconsistent with the protected data source. All protection activities for data source will fail until the replica is synchronized with consistency check. (ID: 3106) DPM failed to create the backup. If you…

Connecting Samsung Smart TV to US Netflix

This is how to successfully watch Netflix or HuluPlus outside the US from a Samsung Smart TV using a single remote and no computer. Netflix and Hulu Plus are cheaper than Foxtel and don’t have anywhere near as many commercials. Best feature about Netflix and Hulu Plus, they track – based on your account – what shows you’re up to exactly, e.g. what episode you need to watch next, or what point in the middle of a movie where it was stopped last, so you can start again at the same point. This is all tracked to your account, so…

Exchange 2010: Using New-MailboxSearch Cmdlet to quickly search multiple mailboxes

The following is a blog entry from one of my colleagues that I am currently working with at the moment. This is written in his style. Thank you John for taking the time putting this together and sharing your experience. Requirement: The boss asked us how much effort would be involved in finding all emails sent from the company to another organisation over an extended period. Thankfully the answer is that this is relatively straightforward. Solution 1, Journal mailbox – no good We have an Exchange journaling mailbox configured that is aimed at queries such as this. The problem was…

Office 365 PowerShell

Running PowerShell for Office 365 allows you to tweak additional settings for cloud based accounts. There are several pre-requisites that need to occur prior to running Office 365 PowerShell commands / cmdlets. You will need to install the Microsoft Online PowerShell module from Microsoft. More information on how to install and configure Windows PowerShell can be found here. Once you have installed the module, run the following: Import-module msonline $LiveCred=Get-Credential Connect-MsolService –Credential $LiveCred Run the following 3 commands to connect Windows PowerShell to the Office 365 exchange service: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ –Credential $LiveCred -Authentication Basic –AllowRedirection…

Copy NTFS permissions only and no data from source to target

This is how a colleague (John) and I at work managed to copy only permissions for files from a source to target folder. Each directory containing the exact same files. What happened, somebody copied the files to a new location but didn’t copy permissions at the same time, so we did this step at the end as a final step instead. At first we spent several long hours using Ropycopy, but this didn’t work and we eventually gave up. We tried the following robocopy commands: robocopy "\\<servername>\OLD_Information\T-E-S-T" “\\<servername>\Information\T-E-S-T” /e /secfix /copyall /xo /xn /xc /r:2 /w:1 /LOG+:c:\Log1.log /TEE robocopy "\\<servername>\OLD_Information\T-E-S-T"…