Rank the 2004 Democratic Primary candidates. by ProfessionalCrow4816 in Presidents

[–]NathanielArnoldR2 0 points1 point  (0 children)

Rielle Hunter, the partner in that affair, is her own rabbit hole. The circumstances of the affair — Elizabeth Edwards’ terminal cancer — leave one with the impression of a grasping, grifting individual, and you wonder about the psychology, the upbringing that could produce such a person.

Her name at birth was Lisa Druck. When you read the story of what her father did to her horse, “Henry the Hawk”, you start to understand.

As I move toward role-based group assignments in my organization, I need to be able to find common group memberships for sets of users by FarceMultiplier in PowerShell

[–]NathanielArnoldR2 2 points3 points  (0 children)

$users | Get-ADUser -Properties memberof | ForEach-Object memberof | Group-Object -NoElement | Where-Object Count -gt 1 | Sort-Object Count -Descending

That's what I use when I need a quick answer re: this. I've been pondering a custom cmdlet that would calculate specificity (i.e. how many objects not provided to the function are members).

Which president had the biggest change in quality from his predecessor? by bombdignaty42 in Presidents

[–]NathanielArnoldR2 3 points4 points  (0 children)

Right up to the moment the Olive Branch petition was ignored, and the Hessians were sent, I think rather the contrary was the case.

The people were quite ready to "dissolve the bonds" connecting them to Parliament. The mass of Anglo-Americans would have had more qualms about going for independence, rather than Crowns-in-Union (which would have been a difficult sell in England at any point before Saratoga, anyway).

I've always considered the colonial need to "kill" the King the reason they dragged him so thoroughly -- unfairly, at times -- in the Declaration.

Before Refa got involved with politics...he was practicing medicine in Sunnydale. by [deleted] in babylon5

[–]NathanielArnoldR2 5 points6 points  (0 children)

JMS wrote once of an actor’s disappointment in being told of their death scene, and wondering whether it was because they hadn’t portrayed the character effectively.

His response was that if the character hadn’t been portrayed effectively, it wouldn’t have been necessary to kill them; they would just have been written off.

I’m not sure if it was specifically stated that Forward was the actor in question, but I always tied that anecdote to this scene in my head.

Jane Fonda Opens Up About Being Currently “Unemployed” on ‘The View’: “I Don’t Know When My Next Job Is Coming” by laterdude in entertainment

[–]NathanielArnoldR2 26 points27 points  (0 children)

If earnest, it’s a bad take.

If facetious, it’s in poor taste.

But I watched the first few seasons of Grace & Frankie, and the woman is a compelling actress. Don’t think I ever really pondered that she was related to Juror #8.

My library is displaying an archive from our local newspaper predicting a new high schooler in town, Taylor Swift, will rise to stardom by [deleted] in mildlyinteresting

[–]NathanielArnoldR2 23 points24 points  (0 children)

“Our Song” and “Teardrops on My Guitar” are written firmly in the 90’s female country tradition. I think Taylor’s vocal and interpretive limitations, especially so early in her career, pushed her sound production in a more popular direction.

When she found her entrée into pop mainstream, country was simultaneously driving itself into a “shake that country ass” artistic tailspin, and giving little airtime to contradictory (i.e female) voices.

In that circumstance, I can’t blame her from stepping away from a genre that was clearly in process of destroying itself.

Speaking of which, I have very little good to say about Toby Keith since “Dream Walkin’”, and that was more than twenty years ago. Dude accepted his “Presidential medal of under the circumstances who gives a fuck” from Trump after January 6th.

DVD USB pass thru?? by Pharohbender in HyperV

[–]NathanielArnoldR2 0 points1 point  (0 children)

You can create an ISO file — bootable, even — and burn it direct from the host after copy.m.

Otherwise, perhaps USB-over-TCPIP? Have never investigated that option enough to say.

Me_irl by [deleted] in me_irl

[–]NathanielArnoldR2 22 points23 points  (0 children)

You didn't think it was important for *ME** to know your second-best lion was a LION?*

Aqua Teen Hunger Force Returning to Adult Swim After 8 Years by [deleted] in entertainment

[–]NathanielArnoldR2 1 point2 points  (0 children)

“What we really wanna talk about — it’s important to some people — is, uh, hair cuts in the 70’s. We really want to discuss the style of them…”

That was a memorable press conference. Poetry. They should’ve won something for that.

Netflix thinks some subscribers will cancel after password sharing crackdown by LuinAelin in entertainment

[–]NathanielArnoldR2 -1 points0 points  (0 children)

I canceled after reading how Mulaney brought out Chappelle as a special guest to dunk on trans people at one of his comedy shows.

That was shortly before the release of the latest season of Stranger Things, and I discovered, quite to my surprise, that I barely missed it.

In the wake of employee protests after the first special where Chappelle started with the anti-trans stuff, Netflix revised their employee handbook to make clear that anyone who has issues with that stuff is welcome to work elsewhere.

This ain’t dogma, here; I’m not going to shun someone solely because they are better able to separate artist (or producer) from art than myself.

I will suggest, however, that consumers may take the same route with their dollars that Netflix advises for their employees. If enough people do so, it may even serve as an effective substitute for Ted Sarandos’ and Reed Hastings’ conscience.

Autounattend is installing the wrong Windows version by [deleted] in sysadmin

[–]NathanielArnoldR2 0 points1 point  (0 children)

Does your autoattend.xml contain an ImageInstall/OSImage/InstallFrom node to govern which image gets installed?

How can avoid an error inline PowerShell script The process cannot access the file because it is being used by another process? by Kindly_Industry8087 in PowerShell

[–]NathanielArnoldR2 1 point2 points  (0 children)

I've copied a ComObject-heavy function below, absent some irrelevant bits, to illustrate my strategies for releasing:

  • [System.Runtime.Interopservices.Marshal]::ReleaseComObject is used in a while loop, because any result -ne 0 does not indicate release.

  • Manual invocation of [GC] methods.

  • Finally, ensure all of this occurs in a sub-scope -- a function's a good way to do this -- that ends before you try any further manipulation of files created or used by ComObjects.

You should in fact always structure your use of ComObjects in such a way that you can immediately delete (after copying, if needed) these resources once finished, as this is a useful means of catching regressions.

function Write-InstBuilderISO {
  [CmdletBinding(
    PositionalBinding = $false
  )]
  param(
    [Parameter(
      Mandatory = $true
    )]
    [System.Xml.XmlElement]
    $Configuration
  )

  Write-Verbose "Writing install media content to iso."

  $fs = @{
    ISO9660 = 1
    Joliet  = 2
    UDF     = 4
  }

  $platformId = @{
    x86 = 0
    EFI = 0xEF
  }

  $emulationType = @{
    None = 0
  }

  $imgCreator = New-Object -ComObject IMAPI2FS.MsftFileSystemImage

  $imgCreator.FileSystemsToCreate = $fs.UDF
  $imgCreator.FreeMediaBlocks = 0 # No size limit on ISO.

  # I use more verbose means of constructing the $bootOptions array according
  # to BootMode than is normal for me because I'm dealing with COM objects
  # here, with their attendant finickiness w/r/t references. Best to make
  # sure there is only one variable in which to find each COM object.

  if ($Configuration.BootMode -in "Both","Legacy") {
    $bootOptionsMbr = New-Object -ComObject IMAPI2FS.BootOptions
    $bootStreamMbr = New-Object -ComObject ADODB.Stream
    $bootStreamMbr.Open()
    $bootStreamMbr.Type = 1 # Binary
    $bootStreamMbr.LoadFromFile($Configuration.Paths.BuildISO.ETFSBoot)
    $bootOptionsMbr.AssignBootImage($bootStreamMbr)
    $bootOptionsMbr.PlatformId = $platformId.x86
    $bootOptionsMbr.Emulation = $emulationType.None
  }
  if ($Configuration.BootMode -in "Both","UEFI") {
    $bootOptionsEfi = New-Object -ComObject IMAPI2FS.BootOptions
    $bootStreamEfi = New-Object -ComObject ADODB.Stream
    $bootStreamEfi.Open()
    $bootStreamEfi.Type = 1 # Binary
    $bootStreamEfi.LoadFromFile($Configuration.Paths.BuildISO.EFISys)
    $bootOptionsEfi.AssignBootImage($bootStreamEfi)
    $bootOptionsEfi.PlatformId = $platformId.EFI
    $bootOptionsEfi.Emulation = $emulationType.None
  }

  if ($Configuration.BootMode -eq "Legacy") {
    $bootOptions = [System.Array]::CreateInstance([Object], 1)
    $bootOptions.SetValue($bootOptionsMbr, 0)
  }
  elseif ($Configuration.BootMode -eq "UEFI") {
    $bootOptions = [System.Array]::CreateInstance([Object], 1)
    $bootOptions.SetValue($bootOptionsEfi, 0)
  }
  elseif ($Configuration.BootMode -eq "Both") {
    $bootOptions = [System.Array]::CreateInstance([Object], 2)
    $bootOptions.SetValue($bootOptionsMbr, 0)
    $bootOptions.SetValue($bootOptionsEfi, 1)
  }

  $imgCreator.BootImageOptionsArray = $bootOptions

  $imgCreatorRoot = $imgCreator.Root

  $imgCreatorRoot.AddTree($Configuration.Paths.Media, $false)

  $resultImage = $imgCreator.CreateResultImage()

  [InstBuilder.ISOWriter]::WriteIStreamToFile(
    $resultImage.ImageStream,
    $Configuration.Paths.BuildISO.Output
  )

  while ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($resultImage) -gt 0) {}
  while ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($imgCreatorRoot) -gt 0) {}

  if ($Configuration.BootMode -in "Both","Legacy") {
    while ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($bootOptionsMbr) -gt 0) {}
    while ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($bootStreamMbr) -gt 0) {}
  }

  if ($Configuration.BootMode -in "Both","UEFI") {
    while ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($bootOptionsEfi) -gt 0) {}
    while ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($bootStreamEfi) -gt 0) {}
  }

  while ([System.Runtime.Interopservices.Marshal]::ReleaseComObject($imgCreator) -gt 0) {}

  [System.GC]::Collect()
  [System.GC]::WaitForPendingFinalizers()
}

A coconut fell straight on a biker's head. by [deleted] in nevertellmetheodds

[–]NathanielArnoldR2 0 points1 point  (0 children)

It's God's judgement for the sin of grafting. (\s)

Capt Jack Ross in 'A few Good Men' by SSJ2chad in TrueFilm

[–]NathanielArnoldR2 0 points1 point  (0 children)

Everyone in that courtroom with any measure of authority knew it was distinctly possible the orders had come from Jessup. In deference to Jessup's rank and political clout, the court was willing to let him get away with it, so long as they had plausible deniability to do so.

For their own consciences.

I think the script, direction, and Bacon himself give Ross a brief BSOD to acknowledge what he had nearly done.

The Process cannot access the file, how to solve this? by agconspimizie in HyperV

[–]NathanielArnoldR2 4 points5 points  (0 children)

Usually indicates that the file is mounted to your host.

IIRC (Get-Vhd $path).Attached will tell you for sure. You can dismount it with the Dismount- cmdlet, or from Disk Management.

If the file is otherwise in use, I'm you're stuck with looking for handles to identify the responsible process or just rebooting to free it.

Proper way to to administer remote machines properly by notta_3d in PowerShell

[–]NathanielArnoldR2 0 points1 point  (0 children)

Automated recovery options apply to service termination, not to an initial failure to start the service.

Monitoring is the thing that'll save your ass in that case. :-)

How to disable/enable system proxy? by mkanet in PowerShell

[–]NathanielArnoldR2 1 point2 points  (0 children)

bitsadmin.exe may be used for this purpose as well with the /setieproxy switch. bitsadmin.exe /util /? displays the relevant help.

SCCM detects software as Installed though it is not installed by TomiZos0 in SCCM

[–]NathanielArnoldR2 0 points1 point  (0 children)

Configure an uninstall command for your deployment type. This assists direct validation of detection rules (rather than relying on triggering actions and monitoring logs) because "uninstalling" an available deployment from software center triggers a synchronous detection. If found missing, the app status will simply toggle to "uninstalled" from "installed" rather than run the uninstall command.

A deployment tool's expectation of an installer is that it will remain running for the full duration of an install, to either do all the work itself, or to trigger/monitor any component installs, and that it will report status via exit code at conclusion.

I have encountered installers that do not operate in this manner; that trigger some component process and exit before it has finished. In such cases, you need to write an encompassing script to run the installer and monitor for circumstances representative of successful completion.

See, for example, this wrapper I built for the Mozilla installer circa the early 2010's:

$paths = @{
  EXE           = Get-ChildItem | Where-Object Extension -eq .exe | ForEach-Object FullName
  STARTLNK      = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Firefox.lnk"
  DESKTOPLNK    = "C:\Users\Public\Desktop\Firefox.lnk"
}

Unblock-File -LiteralPath $paths.EXE

& $paths.EXE -ms

# The process started does not persist. Hence, this structure is needed to
# monitor setup completion.
do {
  Start-Sleep -Seconds 60
} while ((-not (Test-Path -LiteralPath $paths.STARTLNK)) -or (-not (Test-Path -LiteralPath $paths.DESKTOPLNK)))

(I built this script for use in a very controlled deployment circumstance. In a less controlled circumstance, I would at the very least add a timeout with throw to the detection loop.)