Category: PowerShell
-
New to my PowerShell Profile: VMware PowerCLI
This will add the PowerShell CLI tools if they exist. Thanks to this thread
-
Exchange 2010 SP1 and New-DatabaseAvailabilityGroup
I was progressing along on with my offline Exchange install, and I ran into a problem when creating my Database Availability Group (DAG). I wanted to put the witness directory on a non exchange server and the instructions say: If the witness server you specify isn’t an Exchange 2010 server, you must add the Exchange Trusted Subsystem universal security group to the local Administrators group…
-
A second addition to my PowerShell install script
I added even more functionality in my PowerShell install script (original script, and first update). I wanted the ability to display an informational popup to let the user know what we were up to. The function below takes the text to display from the config xml file and displays it in a windows form, with…
-
An update to my new PowerShell install script
I needed new functionality in my PowerShell install script (previously mentioned here). I needed the ability to make sure a process is not running, and if it is running, I could prompt the user to close it. The new function takes the process name value from the config xml file (as I mentioned in previos…
-
My new PowerShell install script
I wanted to write a PowerShell script that can execute common activities involved in deploying software. We require signed PowerShell scripts, so it was not practical to rewrite the script for every piece of software. Instead, I moved the configuration to an XML file. The first function below takes an object (pulled from the XML…
-
Powershell script to find and run advertisements that are set to run when NoUserLoggedOn
I have been thinking about how to launch a SCCM package/program before logon. If the user logs on before SCCM executes (like right after a reboot), the NoUserLoggedOn requirement will not be met. GPO software deployment handles this by not allowing the user to log in until the software is installed. What happens if you…
-
WMI query to find if the SCCM client is running a program
Using PowerShell, this will tell you if the SCCM client is running a program and its state:
-
Unix diff in PowerShell
