Category: PowerShell
-
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 machines. After doing some research, I found out that after a VM Import, Hyper-v doesn’t…
-
Interactive PowerShell 4.0 Script Automates Active Directory User and Mailbox Creation.
In line with the objective of streamlining and automating new employee/user creation process for help desk/level 1 support, I wrote the following PowerShell script to help precisely define the steps in the process, further reduce the chance for human error and cut down time to finish the task. The interactive PowerShell script accepts user input…
-
PowerShell Script Monitors Security Logs and Sends Email Alerts.
I wrote this PowerShell script to send email alerts when Active Directory User Account, Security and Distribution Group Management events occur in the Security logs.A few parameters will need to be edited to adapt the script to any Active Directory domain environment.Also, the script will not work on Windows Server 2003 Active Directory Domain Controllers…
-
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…
-
Starting a saved virtual machine–with a missing virtual hard disk
Reblogged from Ben Armstrong’s Virtualization Blog . I came across a person with this problem on our forums recently: If you have a virtual machine that is in a saved state, but one of the virtual machines disks is now missing for some reason, you cannot start the virtual machine and you cannot remove the…
-
Creating Resource Mailbox Resource Property Schema in Exchange Server 2010.
We’ve added a few conference rooms and Equipment mailboxes and I decided to add custom resource properties to distinguish the rooms and equipment . The properties indicate what features are specific to a resource like the conference room conference call phone and equipment model. By default, these properties are not configured for resource mailboxes.The Get-ResourceConfig…
-
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 2012 R2 core, there’s a number of PowerShell cmdlets that could be used in place…