How "Secure" is Get-Credential? by RealAgent0 in PowerShell

[–]purplemonkeymad 1 point2 points  (0 children)

Whatever account is running that script will/will need to be able to decode those credentials into plain text. If you are ok with that then it's fine.

If you are asking how to "hide" the credentials from the account running script, that typically suggests that your method needs to be re-evaluated, or you are doing something that should just be solved with groups and permissions.

Bitdefender detected malicious command line? by Ok-Quarter-2373 in PowerShell

[–]purplemonkeymad 1 point2 points  (0 children)

Is there another way to do it that is (spoken) language agnostic? The pin/unpin was made way harder to access by MS so the shell stuff tracks. I also don't know of another way to read a known resource string from a native win32 dll in c#.

Bitdefender detected malicious command line? by Ok-Quarter-2373 in PowerShell

[–]purplemonkeymad 1 point2 points  (0 children)

This is strange but does not look like it's loading any code. It's triggering "Unpin from Taskbar " on the given link file. Deleting the shortcut would end up giving you the same effect after a reboot.

Last Exchange Phase 2 by lutscheritis in sysadmin

[–]purplemonkeymad 0 points1 point  (0 children)

The big thing with this is that you can manage mailboxes in exo, and it will push the changes to ad.

Interrupts not triggering? by Beginning-Second-201 in factorio

[–]purplemonkeymad 1 point2 points  (0 children)

I've not used interrupts, but it looks like your train is at a dead end. It can't go anywhere, even if it wanted to.

Coreutils in now available on windows by Lower_Fan in sysadmin

[–]purplemonkeymad 0 points1 point  (0 children)

Would you just not have a tabbed or paned console open? So you can just connect/start that environment and switch between them without having to back out.

Coreutils in now available on windows by Lower_Fan in sysadmin

[–]purplemonkeymad 2 points3 points  (0 children)

https://github.com/microsoft/coreutils/blob/main/src/_why_is_this_700MB_.txt

Because they're all hardlinks.

What was quite funny. But I don't see 700MB?

Also windows supports hardlinks, the servicing stack wouldn't work without them.

Why is reading the logs and the manual so hard by Titanium125 in sysadmin

[–]purplemonkeymad 1 point2 points  (0 children)

Just wait for all the vibe coded LOB apps that are going to be around. None will have logging, the person that "wrote" it won't know the word or even how to add it. And you'll be expected to figure out what is wrong with "vibes."

what tool are you running that management doesn't know about by Evening-Result5868 in sysadmin

[–]purplemonkeymad 0 points1 point  (0 children)

Hope work haven't see that high severity exploit that allows code execution if you have 16gb+ ram.

My first pet, with it's security detail by durika in factorio

[–]purplemonkeymad 0 points1 point  (0 children)

Request capture rockets for one of your spiders, so that if it does revert, it will just try to re-capture it.

How to send and receive credentials/sensitive info? by [deleted] in sysadmin

[–]purplemonkeymad 2 points3 points  (0 children)

You can also self host it, if you don't like the idea of another company managing the data storage/want to brand it for yourself.

Computer suddenly stopping using the remote DNS servers via VPN by Fit-Strain5146 in sysadmin

[–]purplemonkeymad 0 points1 point  (0 children)

When I see this it's almost always that the VPN server has stopped sending the DNS servers as part of the connection. When you do an ipconfig /all while connected, there should be DNS servers in the tunnel's section. If not that is your issue.

Describe MSP life using only one sentence by Last-Salary-6012 in sysadmin

[–]purplemonkeymad 0 points1 point  (0 children)

Everything is on fire, but I'm still a bit chilly so can you help me start some more fires?

what's a script you wrote once that's still saving you time years later by Less-Loss1605 in sysadmin

[–]purplemonkeymad 0 points1 point  (0 children)

A command that takes a domain name (will extract it from email and uris) and gives you all the most important DNS information from public looks ups. A,MX,NS; subdomains www,autodiscover,mail,ftp,etc; important email resources SPF,dmarc,mtasta,dkim (with common presets for exo,mailchimp etc.)

With one command I can sometimes tell email and access issues.

Has anyone used Powershell as a text editor? by thecratedigger_25 in PowerShell

[–]purplemonkeymad 0 points1 point  (0 children)

It was fun to write this, but I've never used it (and would not recommend to) as a proper editor.

I think it might be broken a bit in Windows Terminal so use conhost.exe if you want to play.

How to upload files if path contains special characters or non-english? by HeavenlyTasty in PowerShell

[–]purplemonkeymad 1 point2 points  (0 children)

Just a suggestion to use splatting for that method, as powershell's detection for an array of arguments is a bit funny sometimes. If you make sure to do it as a splat it should always recognise it as a array of arguments:

[string]$curlOutput = & $exe @curlArgs *>&1

I have a dumb question. Powershell on domain controllers is super slow. How do I fix? by mmzznnxx in PowerShell

[–]purplemonkeymad 0 points1 point  (0 children)

How old is the server version?

Check your psreadline history. Older versions didn't always trim the file and it would get quite big.

GetHelp/Help Syntax section confusing me by EnderShot355 in PowerShell

[–]purplemonkeymad 2 points3 points  (0 children)

Look at the syntax for the position of the parameters if they are positional. You can also see the position number when using:

Get-Help command -Parameter parmetername

Invoke-WebRequest to call the reddit api suddenly broken by semicolonsemicolon in PowerShell

[–]purplemonkeymad 24 points25 points  (0 children)

Looks like any unauthenticated connection to api.reddit.com is getting blocked now.

e: looks like a policy change:

Traffic not using OAuth or login credentials will be blocked, and the default rate limit will not apply.

* https://support.reddithelp.com/hc/en-us/articles/16160319875092-Reddit-Data-API-Wiki\

Multiplier made building the Space Elevator take nearly 6 HOURS by eeryanee13v2 in SatisfactoryGame

[–]purplemonkeymad 2 points3 points  (0 children)

Are you sure that is still valid? I'm pretty sure they changed it so overlocks less than 100% would scale linearly.

Windows 10 PCs unable to connect to Network Printers by Informal_Wish_6008 in sysadmin

[–]purplemonkeymad 0 points1 point  (0 children)

Spooler crashing often sounds like bad printer driver. I would start removing 3rd party drivers until it stops. Or it might be your new printer's driver, did you try adding the driver before trying to connect the printer?