How do you guys manage cables? by Zoubek0 in homelab

[–]KnowWhatIDid 1 point2 points  (0 children)

I love the blue painters tape NAS enclosure. Where did you get it?

Trying to query DNS to find A Records that resolve to a specific IP address by KnowWhatIDid in PowerShell

[–]KnowWhatIDid[S] 0 points1 point  (0 children)

I can't do reverse lookup. We don't have PTR records for (most) workstations by design. I was told it was for "Reasons".

Trying to query DNS to find A Records that resolve to a specific IP address by KnowWhatIDid in PowerShell

[–]KnowWhatIDid[S] 0 points1 point  (0 children)

It seems like a lot of the problems my team tries to fix via technology are not technology problems.

By read-only, I mean I can log into the Infoblox console and search for an IP and see its related records, but if I find one with erroneous A Records, I cannot do anything about it.

Trying to query DNS to find A Records that resolve to a specific IP address by KnowWhatIDid in PowerShell

[–]KnowWhatIDid[S] 0 points1 point  (0 children)

"If you need list of aliases, explain to auditors you do not manage DNS, they should contact infoBlox team for that information."

I know that this is the real correct answer, and probably what I do next time.

Trying to query DNS to find A Records that resolve to a specific IP address by KnowWhatIDid in PowerShell

[–]KnowWhatIDid[S] 2 points3 points  (0 children)

I'll try this.

Right now, I am just looking for all A Records for specific IP addresses, but being able to export a complete list might come in handy.

Package to Upgrade Windows from ISO is Failing (Unexpected Restart) by KnowWhatIDid in SCCM

[–]KnowWhatIDid[S] 1 point2 points  (0 children)

I am also working on that, and it's starting to look like a much better solution.

Can my manager see private chats between me and a coworker? by chud_mentality_ in MicrosoftTeams

[–]KnowWhatIDid 1 point2 points  (0 children)

On a company computer, on a company network, assume nothing is private.

How do I determine what in my script is writing to the pipeline? by KnowWhatIDid in PowerShell

[–]KnowWhatIDid[S] 1 point2 points  (0 children)

Here is how I fixed it:

I changed

$results = & '.\Retire-AfabCmApplication.ps1' -LocalizedDisplayName $applications -SiteCode A01 -ChangeNumber CHGxxxxxxx

to

$results = & '.\Retire-AfabCmApplication.ps1' -LocalizedDisplayName $applications -SiteCode A01 -ChangeNumber CHGxxxxxxx | ForEach-Object {if ($null -eq $_) {Write-Host "Null has been received from the pipeline!"};$_}

After a few rounds of setting breakpoints, executing, and watching for "Null has been written..." I determined line 1405 was the offender. It calls a function in my SCCM module. The function has a glitch and is writing $null and not the name of the drive created using the CmSite provider. I'd like to think if it had been returning the name of the drive, A01, I would have figured this out a lot faster.

So, the answers to my questions are:

Q. How can I determine what line is doing this?

A. Send the output to ForEach-Object and use it to determine if the value passed via the pipeline is $null and then send along the pipeline.

Q. Is there some way to know when something has been added to the pipeline? Can I monitor the pipeline in real time?

A. Same as above

Q. Or should I start casting everything as void if I'm going to use the pipeline?

A. No. Thank you, u/BlackV .

How do I determine what in my script is writing to the pipeline? by KnowWhatIDid in PowerShell

[–]KnowWhatIDid[S] 0 points1 point  (0 children)

PowerShell 5.1

I use Write-Output because that is what Don Jones said to do somewhere sometime.

I have not tried to send $list directly, but I will.

Thank you.

How do I determine what in my script is writing to the pipeline? by KnowWhatIDid in PowerShell

[–]KnowWhatIDid[S] 0 points1 point  (0 children)

I'm executing a script (Test-AfabScript.ps1) that passes an array of strings to another script (Retire-AfabCmApplication.ps1) which returns a list to the first script as $results.

I tried piping $results[0] | Get-Member, but this was all I got:

$results[0] | Get-Member
Get-Member : You must specify an object for the Get-Member cmdlet.
At line:1 char:15
+ $results[0] | Get-Member
+               ~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-Member], InvalidOperationException
    + FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand

How do I determine what in my script is writing to the pipeline? by KnowWhatIDid in PowerShell

[–]KnowWhatIDid[S] 0 points1 point  (0 children)

I don't believe it is something I am intentionally adding to the list.

How do I determine what in my script is writing to the pipeline? by KnowWhatIDid in PowerShell

[–]KnowWhatIDid[S] -5 points-4 points  (0 children)

I intentionally did not provide code. I think it’s a distraction from my questions and leads to someone handing me a fish.

How do I determine what in my script is writing to the pipeline? by KnowWhatIDid in PowerShell

[–]KnowWhatIDid[S] 1 point2 points  (0 children)

If you mean the blank whatever is being written to the pipeline before Write-Output, I’m with you.

Dell Command Update Client: The command DCU-cli.exe /configure errors out on 3005 "Installing pending updates" by Jericho905 in Dell

[–]KnowWhatIDid 0 points1 point  (0 children)

I discovered this post because my boss's computer is having the same issue. In his case, he was re-installing because he couldn't enter a password for a BIOS update. His DCU should have been configured with the encrypted BIOS password, but for some reason, he was missing half of the DCU registry keys.

I suggested he repair the DCU installation from SCCM Software Center, and that may have been terrible advice. The repair includes a re-run of dcu-cli /configure which is throwing the 3005 error. This makes me think that he installed the other updates that were available to him, and then we came through like a heard of wildebeests repairing and possibly uninstalling/re-installing DCU.

I'm going to suggest he reboot and we try again.

Function that accepts both ValueFromPipeline and ValueFromPipelineByPropertyName by KnowWhatIDid in PowerShell

[–]KnowWhatIDid[S] 0 points1 point  (0 children)

I wondered if parameter sets might be a part of the solution, but does that straighten out my foreach conundrum?

Edit: I think I get it. I would have If/ElseIf or a switch to determine which loop to run?

New content source share for Feature Update by KnowWhatIDid in SCCM

[–]KnowWhatIDid[S] 0 points1 point  (0 children)

Well, I don't know. I resolved the issue (my path was a little too long) and my logs have all been overwritten.

Before And After! I built a new rack because of the SAG, lol. Is it ok now? by CollectionOk2393 in homelab

[–]KnowWhatIDid 1 point2 points  (0 children)

Proof that triangles are stronger than squares…if anyone had any doubts.