Get a list of programs currently install wmic /node:<REMOTE HOSTNAME> product get name, version, vendorHow to uninstall the Programwmic /NODE:<REMOTE HOSTNAME> product where (name=”Windows Agent”) call uninstall
Category: Code
Debugging and Slowness with Php
Install : Xdebug Can be done by install then entering the following : /etc/php/7.1/fpm/php.ini:zend_extension = /usr/lib/php/20160303/xdebug.so xdebug.profiler_enable = 0 xdebug.profiler_output_name = cachegrind.out.%t xdebug.profiler_enable_trigger = 1 xdebug.profiler_output_dir = /tmp xdebug.profiler_enable_trigger_value = […]
Powershell Script to List Failed VSS Writers
Powershell script to list all failed VSS Writers on a serverhttps://github.com/pariswells/pariswells.com/blob/master/listfailedvsswriters.ps1
Fix to protect against BadRabbit ransomware
https://github.com/pariswells/pariswells.com/blob/master/badrabbitfix.bat
Powershell to find Users Missing Contacts in a Hybrid Enviroment
Get-ADUser -Filter {proxyAddresses -like “*main.domain.com” -and enabled -eq true -and msExchUserAccountControl -notlike “*” -and msExchVersion -notlike “*”} |Select Name
How to Bulk Delete Emails in Google Apps / Gmail via Script
Gmail and Google app’s has a space limit for it’s free service. Most of the time people don’t delete emailsYou can search for a load of emails […]
Check if http/https webserver is responding bat file script
Kudos to Rojo for this
Securing Apache to use Certificate Authentication auth_x509
Query to see if Certificate Exists via x509 based logins httpd-ssl.conf
Bash Script for creating virtual hosts (along with the unix user, the db etc)
SynopsisThis is the documentation for the create-website script I’ve created. The results of passing the -h parameter print out the following help:SYNOPSIS:create-website -u USER -w WEBSITE [-s|-f|-d|-h|-i […]
PHP to Read Keyword, Title and Description
WordPress Split Description\Tagline into Multiple Lines
Add the Following Code to your Functions.php theme file ( under Appearance ) Change in your header.php file to use the following : Then change your Tagline to line […]