Chris Dent

Results 30 comments of Chris Dent

This also affects profile scripts which use Get-Variable / Remove-Variable. The prefix implementation in PowerShell is pretty flakey, what you've written should work. This bug appears to be fixed in...

It's the auto-loader that's doing it unfortunately, so while the prefix can be changed it doesn't affect the problem. My profile script uses Remove-Variable for other things and it's trigger...

Yep that's the one. ```ps { @(1, 2) - 1 } | Should -Throw -ExpectedMessage "Method invocation failed because ``[System.Object``[``]``] does not contain a method named 'op_Subtraction'." ``` Hmm.

Mostly 1 with the added reliance on commands within the module for customization. Where configuration is persistent, it was stored in XML and more recently JSON formatted files. Configuration in...

I much prefer **Force an exception and catch it** using $pscmdlet.ThrowTerminatingError, but it's perhaps worth noting that throw is not limited to a string. ``` $errorRecord = New-Object System.Management.Automation.ErrorRecord( (New-Object...

Perhaps ItemType or PathType as New-Item and Test-Path do, that is a parameter backed by ValidateSet or an Enumeration. On 23 August 2016 at 17:29, Francis de la Cerna [email protected]...

> but it seems like install-adserviceaccount is a useless command for gMSAs We had to install gMSAs before they could be used with our SQL deployments. We also use groups...

Doing so needs a win32 function call (P/Invoke), specifically these three functions: https://github.com/indented-automation/Indented.SecurityPolicy/blob/master/Indented.SecurityPolicy/class/SecurityPolicy/UnsafeNativeMethods.cs#L72-L92 It's not much code really. I just did it in a lot of layers. DSC resource to...

Sorry to interject... ``` Yeah I don't mind sending in a PR. It looks like changing to a [int16] did the trick. How do I go about setting up the...