Tag: Windows PowerShell
-
Uninstalling Software with Powershell.
I have a number of Hyper-v Windows Server 2012 R2 core host machines in my environment. Once in a while, I have to check for installed software and uninstall software for maintenance. The following WMIObject class helped me achieve the task in PowerShell. Check for installed software: Filter by Software to be Uninstalled: Locate the…
-
Converting a User Mailbox to Resource Room Mailbox using PowerShell.
In past versions of Exchange Server, specifically Exchange 2003, managing Resource Room mailboxes was not exactly a straight forward process. In my organization at the time, to manage room Calendars and bookings for Conference rooms (they were not referred to as Resource Rooms at the time), we had to create mailboxes to represent the conference…
-
Configuring multiple ISCSI Connections for Multipath IO using PowerShell.
This post will be focused mainly on the ISCSI Initiator host and configuring multipath IO paths to an ISCSI Target. The ISCSI Target portal has already been configured with 2 network paths for ISCSI. The ISCSI Service by default is in a ‘Stopped’ state. So, we’ll begin by starting the service: [hyperv00]: PS C:\Users\admin\Documents> Start-Service…
-
Configuring Hyper-v Host Network Adapters for ISCSI Storage Connectivity with Powershell .
Windows Server 2012 R2 with PowerShell 4.0 has hugely expanded support for configuring multiple NICs on a Cluster/ISCSI Initiator node via command line. After deploying multiple Network Interface Cards on my Hyper-v host, it took me a while to figure out how to properly configure the NICS with PowerShell . Prior to Windows Server 2012,…
-
PowerShell 3.0 Script creates AD user and Exchange Mailbox.
This interactive script requires PowerShell 3.0 . It creates an Active Directory user and their corresponding mailbox using a remote session at the same time. It should work out of the box, but specific variables will have to be edited to reflect the Active Directory configuration of the organization in question. function New-Employee { Param…