Tag Archives: Cmdlets

Copying an Azure Cloud Blob (VHD) between different Storage Accounts and Resource Groups with ARM PowerShell.

While working with Azure, I came across a situation where I needed to quickly provision an Azure Virtual Machine from an existing sysprepped VHD in a different storage account and resource group using the Azure Resource Manager deployment model. This … Continue reading

Advertisement

Posted in Azure, Azure Windows PowerShell | Tagged , , , , , , , | Leave a comment

Deleting SCVMM 2012 R2 Logical Network Definitions with PowerShell.

Attempting to delete a SCVMM 2012R2 logical network throws an exception as shown in the screen shot below because there are other dependencies like the Port Profiles, logical switches and other network objects still depending on it. The “View Dependent … Continue reading

Posted in SCVMM2012R2, System Center 2012 R2, VMM2012R2, Windows Server 2012 R2 | Tagged , , , , , | Leave a comment

Bulk Updating On-Premise Active Directory Users’ Attributes for Office 365 Batch Migration Using PowerShell.

In this environment, the on premise Active Directory DNS name is different from the email address public DNS name. An alternate UPN Suffix that matches the public email address DNS name has already been configured for the on premise AD … Continue reading

Posted in Batch Migration, Exchange 2010 SP2, Exchange Online, Office 365, Onboarding, PowerShell, Windows Azure PowerShell | Tagged , , , , , , , , , , | Leave a comment

Resolving Hyper-v Error: “‘Unnamed VM’ could not initialize… The security ID structure is invalid.”

While moving my Lab to a new environment using the Hyper-v Export and Import VM options, I ran into an “‘Unnamed VM’ could not initialize… The security ID structure is invalid” error when trying to start the Domain Controller Virtual … Continue reading

Posted in Hyper-v, Hyper-v 2012 R2, Hyper-v Manager, Microsoft Hyper-v, PowerShell, Powershell 4.0, Uncategorized, VHDX, Virtual Machines, WIndows 8.1, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , | 1 Comment

Enabling Jumbo Frames on Windows Server 2012 R2 using PowerShell and on Cisco 3560G using IOS commands.

Jumbo frames are Ethernet frames with a payload greater than the standard mtu of 1500. Increasing the mtu size on a 1 GB network usually improves network performance and efficiency.The following PowerShell cmdlets will help display and check current jumbo … Continue reading

Posted in Jumbo Frames, Network, Powershell 4.0 | Tagged , , , | 2 Comments

PowerShell Script uses Split() Method to display Active Directory Users’ Organizational Unit and other Properties.

A colleague was trying to generate a report of Active Directory Users, displaying their Organizational Unit and PasswordNeverExpires property status. Normally this should be very simple, but they ran into a small snag. The Active Directory module at the time … Continue reading

Posted in Active Directory, Powershell 4.0, Script | Tagged , , , , | Leave a comment

Creating New Equipment Address List in Exchange 2010.

The steps and cmdlets below enabled me configured a separate address list in Exchange 2010 to manage all Equipment. Create the Address List and specify the Recipient Filter: [PS] C:\>New-AddressList -name “All Equipment” -RecipientFilter {RecipientType -eq “UserMailbox” -and RecipientTypeDetails -eq … Continue reading

Posted in Active Directory, Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Shell, Microsoft Exchange | Tagged , , , , , | Leave a comment

Configuring Network Adapter TCP/IP Settings using Powershell 4.0 Cmdlets .

PowerShell 4.0 is a requirement for these cmdlets to work.The GUI( Graphic User Interface) is commonly used to configure network adapter settings or the good old netsh command. But if I had to work with Hyper-v core or Windows Server … Continue reading

Posted in Hyper-v 2012 R2, PowerShell, Powershell 4.0, WIndows 8.1, Windows Server 2012 R2 | Tagged , , , , , | Leave a comment

Demoting the last Windows Server 2012 R2 Domain Controller with PowerShell.

As with promoting a server to domain controller, demoting the a domain controller is also a straight forward process with PowerShell. The following PowerShell cmdlets are available from the ADDSDeployment module: Uninstall Active Directory: The demote process got a little … Continue reading

Posted in Active Directory, Active Directory Domain Services, AD Forest, DCPromo, Domain Controller, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , , , , | 2 Comments

Deploying a Windows Server 2012 R2 Domain Controller in an existing Win2003 Functional Level Domain.

My first task before deploying a Windows Server 2012 R2 Domain Controller in a Windows Server 2003 forest functional level environment was to run the Test-ADDSDomainControllerInstallation cmdlet and determine my domain environment’s readiness to accept the new Windows Server 2012 … Continue reading

Posted in Active Directory, Active Directory Domain Services, AD Forest, DCPromo, Domain Controller, DSRM, Flexible Single Master Operations, FSMO, NTDSUtil, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , , , , , , , , , | 1 Comment