I always forget to use the Split command (or write it in VBScript before I remember PowerShell). The following command takes a comma separated list […]
Continue readingCategory: PowerShell
PowerShell
Launching commands in PowerShell
Something I always need to look up when I’m running commands from a PowerShell script. It is always tough to get the spaces just right: […]
Continue readingRemove File Server from Cluster Manager using PowerShell
I needed to remind myself about a terrific PowerShell command that will remove resources from Cluster Manager. Run the following PowerShell commands to remove the […]
Continue readingOpalis – Looping on a PowerShell Object
Looping can be a little tricky if you don’t know the rules used by Opalis: The Exit tab specifies the conditions that will determine if the […]
Continue readingUse Quest to set permissions on object attributes in AD
Normally to set permissions on attributes I have to use ADSIedit to navigate to that object, and then go through all the security tabs scroll […]
Continue readingUse PowerShell to change service accounts through SQL Configuration Manager
Works with SQL 2008 R2. I use PowerShell to update the Service Accounts for the SQL Server, Agent, and Analysis Server: $servername = “ServerName”; [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SqlServer.SqlWmiManagement”) […]
Continue readingPowerShell to Search Registry
The following bit of PowerShell code will search the registry for a string. Update $Filter with the string you are searching for and the registry […]
Continue readingHow to install Powershell ISE on Windows 7 or Server 2008 R2
Run the following Powershell command: Import-Module ServerManager; Add-WindowsFeature PowerShell-ISE
Continue readingSet Registry Key Permissions with PowerShell
I found very little information on this object, so I decided to blog about it. The RegistryAccessRule parameters are as follows: RegistryAccessRule (“domain\username”,”Permissions”,”ContainerInherit”,”None”,”Allow”) Where Permissions […]
Continue reading