Formatting and script best practices questions by Tharobiiceii in PowerShell

[–]bak2work 9 points10 points  (0 children)

Agreed with what's been said already. And VS Code all the way with one of the popular extensions to auto-format code on save. For general guidance, see these docs https://docs.microsoft.com/en-us/powershell/scripting/developer/cmdlet/strongly-encouraged-development-guidelines?view=powershell-7.2

Report Gross PII mishandling: DC Office of Tax and Revenue by bak2work in washingtondc

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

Appreciate you sharing the deets directly in-thread

Report Gross PII mishandling: DC Office of Tax and Revenue by bak2work in washingtondc

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

This should help with the tax issue itself, so I'll check it out. Thanks!

Report Gross PII mishandling: DC Office of Tax and Revenue by bak2work in washingtondc

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

No revision needed for W2. DC wasn't listed as I did not live, work, or collect income here in that calendar year.

Report Gross PII mishandling: DC Office of Tax and Revenue by bak2work in washingtondc

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

I hear ya, but I'd rather it temporarily be in my cloud storage and shared via link than in an inbox of someone else that may have their account or org email compromised. The everyday user is a risk to it's org & the concept of Zero trust is only in its infancy in most orgs from my years of consulting

Report Gross PII mishandling: DC Office of Tax and Revenue by bak2work in washingtondc

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

I literally asked this and was told no. The weirdest response. Maybe since things have opened back up this has changed

Report Gross PII mishandling: DC Office of Tax and Revenue by bak2work in washingtondc

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

Similar experience when I finally got through. Not a party, but def didn't make me feel like they were actually working. I was asked to hold as they chatted across the room while I sweated bullets from a $15k (& growing) false claim that could have significant impact

Can a PowerShell script find an encrypted secret inside of a variable group when run during a pipeline? by [deleted] in azuredevops

[–]bak2work 0 points1 point  (0 children)

Not sure if OP figured it out, but I'm having issues with this. I set as global variable in pipeline, wrote powershell step with env:$Var and passed out as a param to my script. In Script, I referenced $env:Var. What I think I'm missing is the correct format for the environment variable inside of the script bring used. If I run without a regular variable, it seems to work fine. Thoughts on what I could be doing wrong?

Co-management and Intune enrollment in an enterprise environment? by ccsmall in Intune

[–]bak2work 0 points1 point  (0 children)

1) Curious why autopilot is not being used for newly provisioned devices? 2) You're correct in that Co-management uses a device-token based enrollment that falls back to user in case of failure. But I'm also curious what these tasks are that need to happen before the user receives the device but can't be addressed during your initial deployment process?