I was swapping DB’s on a Citrix cluster , I shutdown the DB’s per


Add-PSSnapin Citrix*
Set-LogSite -State Disabled
Set-LogDBConnection -DataStore Logging -DBConnection $null
Set-MonitorDBConnection -DataStore Monitor -DBConnection $null
Set-MonitorDBConnection -DBConnection $null
Set-AcctDBConnection -DBConnection $null
Set-ProvDBConnection -DBConnection $null
Set-BrokerDBConnection -DBConnection $null
Set-EnvTestDBConnection -DBConnection $null
Set-SfDBConnection -DBConnection $null
Set-HypDBConnection -DBConnection $null
Set-AnalyticsDBConnection -DBConnection $null
Set-ConfigDBConnection -DBConnection $null -force
Set-LogDBConnection -DBConnection $null -force
Set-AdminDBConnection -DBConnection $null -force

When Trying to change to new DB

$dbs = “Server=XXXX;Initial Catalog=XXXX;Integrated Security=True”

set-ConfigDBconnection -dbconnection $dbs

There was an error “There Was a Problem Communicating with the Citrix Delegated Administration Service”

I had to restart the powershell as Admin , then it let me set again

GD Star Rating
GD Star Rating

I have recently converted a Hyper V Vm to vmware 

Trying to use Veeam to back it up , and displayed the following error

18/12/2021 4:53:15 PM :: Failed to prepare guest for hot backup. Error: VSSControl: -2147212529 Backup job failed. Discovery phase failed. Cannot add volumes to the snapshot set. Cannot add a volume to the snapshot set. Volume name: [\\?\Volume{70835baf-895e-480d-aea3-8ecd4db01046}\]. Cannot add volume to the set of volumes that should be shadowed. VSS error: VSS_E_UNEXPECTED_PROVIDER_ERROR. Code:0x8004230f

Per Veeam article this is due to VSS write issue 

I saw an old Hyper V VSS Writer : Hyper-V IC Software Shadow Copy Provider

Unforunelty this is integrated into the OS 

So had to manually remove from Registry


GD Star Rating
GD Star Rating
  1. Install Driver  – https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
  2. Keep trying all the USB cables , I had to go through about 5 in the end to find that had the correct Pins 

Check here for USB Chip incorrectly solderd – https://github.com/esp8266/Arduino/issues/3551

GD Star Rating
GD Star Rating

MS Guide

Old : Active Directory PowerShell SIDHistory Module Update 1.5 | Microsoft Docs

New : PowerShell Module for Active Directory SID History Now Faster | Microsoft Docs

Archives script here

TechNetGalleryArchive/SIDHistoryModule.zip at master · GoateePFE/TechNetGalleryArchive · GitHub

Take Ownership ( Run in Powershell for the 255 Chat ) 

TAKEOWN /F “E:\Gdrive\Folder” /a /r /d y

Add Permission ( Run in Powershell for the 255 Chat ) 

ICACLS “E:\Gdrive\Departments\Executive Management\Budget 2014” /grant administrators:F /t

Regex for SID


Find User or Group
Get-ADObject -IncludeDeletedObjects -Filter * -Properties * | where{$_.objectSid -eq "S-1-5-21-XXXXXXX-XXXXXXXXXXXXX"} | Select objectSid,CanonicalName | Add-Content sidhash.txt

GD Star Rating
GD Star Rating
  1. Enable the FortiExtender module from CLI

config system global
(global) # set fortiextender enable

2) Enable in Gui

3) Enable a new Interface and enabled Security Fabric Connection

4) Turn on the fortiextender and wait for it to appear and Authorise it

5) Create Policies \ Static Route for this new interface

GD Star Rating
GD Star Rating

Trying to run a .xlsb file “Run whether the users user is logged on or Note”

Immediately comes up with error 

Faulting application name: EXCEL.EXE, version: 16.0.14701.20226, time stamp: 0x61a9321f
Faulting module name: KERNELBASE.dll, version: 10.0.14393.4350, time stamp: 0x606eb12a
Exception code: 0xe0000002
Fault offset: 0x000dc602
Faulting process id: 0xc44
Faulting application start time: 0x01d7ed6a0091be13
Faulting application path: c:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 217ffac0-5808-4c32-92ad-92545e7ece06
Faulting package full name:
Faulting package-relative application ID:


When I choose to run the task interactively “Run only when user is logged on” it works fine to show the app is working

  1. You need to make sure Office is installed with Shared Activation so that other people can be logged into this server and the task can still run 
  • Use Registry Editor to add a String value (Reg_SZ) of SharedComputerLicensing with a setting of 1 under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration.

2) You need to make sure you are not logged into the computer with the account that’s running the scheduled task it will fail , make sure it is totally logged out and sign in as another user to run it


GD Star Rating
GD Star Rating

Recently a new HP Envy Laptop had no Camera showing in device manager 

This is the default behaviour of the inbuilt Private switch , which can be checked at the Head of “Try this First” https://support.hp.com/in-en/document/c03430151

We confirmed the privacy switch was enabled correctly, all drives and firmware up-t0-date using HP Support Assistant

In the end the Computer needed the lastest Intel Graphics drivers downloaded from the Intel site to resolve this! 


GD Star Rating
GD Star Rating
' Email is delivered for the following recipients when some codes or types are missing
strMailTo="[email protected]"
' ccc
strMailCc="[email protected]"

  	Set oMsg = CreateObject("CDO.Message")
  	Set oConf = CreateObject("CDO.Configuration")
  	Set oFlds = oConf.Fields
  	With oFlds
    		.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    		.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "au-smtp-outbound-1.mimecast.com"
    		.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587
			.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
            .Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "[email protected]"
            .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "xxxxxx"
			.Item("http://schemas.microsoft.com/cdo/configuration/sendtls").Value = True

  	End With

	With oMsg
    		Set .Configuration = oConf
    		.From = "[email protected]"
    		.To = strMailTo
    		.Cc = strMailCc
    		.Subject = "Subbect"
    		.TextBody = "Test"
     		.AddAttachment msecpath
	End With
	Set oMsg = Nothing
	Set oConf = Nothing
	Set oFlds = Nothing
GD Star Rating
GD Star Rating