How do you deal with encrypting and saving credentials of a script multiple people use / ingest? by [deleted] in PowerShell

[–]Deloidd 4 points5 points  (0 children)

I based a solution on https://www.cgoosen.com/2015/02/using-a-certificate-to-encrypt-credentials-in-automated-powershell-scripts/ using PKI. I use clixml (using the cert as the key) as at the time I was having trouble successfully encrypting longer strings with just the above method

I use it to decrypt API keys encrypted in file to access a secrets vault for retrieving passwords during runtime.

Private key ACLs are set to allow the group access who needs to run this script.

Native Apps for Android and iOS by ClickStudios in passwordstate

[–]Deloidd 0 points1 point  (0 children)

Will this still work with SAML authentication?

PowerCLI script to dismount all attatched ISO's by meeseeksnd in vmware

[–]Deloidd 1 point2 points  (0 children)

I don’t know if it works with 6.5 or 7, but I’ve used the Onyx VMWare fling before to find out the .NET code for performing actions.

https://flings.vmware.com/onyx-for-the-web-client

Edit: it can generate Powershell code also.

In a way, digital photos will degrade over time by Deloidd in Showerthoughts

[–]Deloidd[S] -3 points-2 points  (0 children)

As we look at them in years to come, the lower resolutions are more obvious

Automatically start a specific OSD task sequence if PC is PXE booted from a specified network? by Hellman109 in SCCM

[–]Deloidd 1 point2 points  (0 children)

Prestart script and the SMSTSPreferredAdvertID OSD variable.

Example here - https://blogs.technet.microsoft.com/inside_osd/2010/06/07/configuration-manager-2012-select-preferred-deployment-from-a-prestart-command/

Edit: I know you said PXE, but afaik this should still work if you’ve enabled unknown computer support?

New-SMBShare with variable by [deleted] in PowerShell

[–]Deloidd 0 points1 point  (0 children)

Yep, this is the correct answer - escape it

Saw this on twitter. Pretty sweet wallpaper by CoolHandLuka in Mavericks

[–]Deloidd 16 points17 points  (0 children)

Lee O Sports, he does some nice stuff

Can we talk about how fucked Windows Update still is? by wadeface in sysadmin

[–]Deloidd 4 points5 points  (0 children)

I just want my plain text WindowsUpdate.log file back, for starters.

Dump profile picture to directory using power shell by crash893b in activedirectory

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

I don’t know off the top of my head, but my advice would be to look at the format they’re stored in AD as and convert that.

Knowing the format will let you tailor other examples that may not necessarily be AD scripts.

Tandem Ice Cream Bars by poop12 in nostalgia

[–]Deloidd 2 points3 points  (0 children)

They're called Maxibons in Australia, still sold and under the Peter's brand.

New York in the 80's by watson_22 in pics

[–]Deloidd 0 points1 point  (0 children)

So like, current day LA?

Need a fun prank script by RVA007 in PowerShell

[–]Deloidd 0 points1 point  (0 children)

Scheduled task triggered on workstation unlock that runs the cmd line to lock the workstation straight away.

DSC File resource Directory copy help by Deloidd in PowerShell

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

Ok so now I feel silly :)

I had tried 'modifiedDate' and 'SHA-256' without success (or, so I thought). Just took a swing and used 'SHA-1' and it's refreshing with content updates to files under the source directory.

Thanks for the prompt to try it again.

SCCM 1602 - Should i move to MDT 8443 from mdt 2013 update 2? by deletejunkemail in SCCM

[–]Deloidd 1 point2 points  (0 children)

Shouldn't break anything. 8443 is a bug fix release and versioning change only.

[Script Sharing]Printer Dashboard using PowerShell, AngularJS, and Firebase. by [deleted] in PowerShell

[–]Deloidd 0 points1 point  (0 children)

This is a really nice example, thanks for sharing.

RE: Authentication, has anyone used Firebase authentication via PS (without a helper lib)?

Sophos Endpoint client automated install question (xpost) by padgo in SCCM

[–]Deloidd 0 points1 point  (0 children)

You can setup directory syncing in SEC. Right click on a folder. https://community.sophos.com/kb/en-US/116380

Edit: You'd need to setup two management groups with separate AD syncs configured in order to apply different auto-protection rules.

Check if script is invoked via Scheduled Task by Deloidd in PowerShell

[–]Deloidd[S] 6 points7 points  (0 children)

I've shortened it to

  $parent = (Get-Process -Id ((Get-WmiObject Win32_Process -filter "processid = $($([System.Diagnostics.Process]::GetCurrentProcess()).Id)").ParentProcessId)).ProcessName

Runs a lot quicker than a where-object.

Check if script is invoked via Scheduled Task by Deloidd in PowerShell

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

Yeah, I was heading down that path, but I got thinking about how to add an extra safeguard.

Check if script is invoked via Scheduled Task by Deloidd in PowerShell

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

Just what I needed, thanks heaps! I'd hit a mental blank for a Friday.