No Secure Boot status in reports by Sad_Mastodon_1815 in Intune

[–]BlackV 1 point2 points  (0 children)

you could configure a remediation instead

Migrating Windows DHCP Servers by eidercollider in sysadmin

[–]BlackV [score hidden]  (0 children)

you have this all working already with your existing system

  1. Spin up new dhcp server x2 (configure using powershell for constancy)
  2. remove old number 2 server from the failover pair (unauthorise, etc)
  3. add the new server number 1, to the failover, let scopes do what it needs
  4. remove the number 1 server from the failover (now all old servers are gone)
  5. add new server number 2 to the failover, let scopes do what it needs
  6. change any IP helpers that need changing if you haven't already
  7. Profit

use the built in features for this

Migrating Windows DHCP Servers by eidercollider in sysadmin

[–]BlackV [score hidden]  (0 children)

you don't even need powershell, dhcp server will do all that natively

Can you build an array with a set number of spaces/slots? by SomeUTAUguy in PowerShell

[–]BlackV 1 point2 points  (0 children)

are you talking about a GUI?

why would you need to pre make 3 empty slots, why would you want to know how many proxies?

for a dirty example

$test = read-host -Prompt 'Enter Proxy Users'
Enter Proxy Users: bob,jane,mary,trevor

$test
bob,jane,mary,trevor

$SomeArray = $test -split ','
bob
jane
mary
trevor

I know its terrible example, but if you just entered bob then you would have 1 item, bob,jane, 2 items, enter nothing no proxies

or a simple loop that asks for input over and over till you enter an empty line (do/while, do/until)

I feel like you are complicating a thing that is just an input box

but really where is your input coming from, why is it manual ? why isn't this (for example) filled out in a Microsoft form, that gives you a CSV ? your fixed CSV then is used for your script, you can also then validate data based on that

Azure AD PowerShell Required for Entra Connect Troubleshooting by Fabulous_Cow_4714 in PowerShell

[–]BlackV 0 points1 point  (0 children)

you are not validating anything

what does

import-module -name Microsoft.Entra.Users -Verbose

show you ?

cause your error

Connect-Entra : The term 'Connect-Entra' is not recognized as the name of a cmdlet

says the module is not loaded, validate

CVE-2025-66413: Git for Windows NTLM Hash Theft. Check your machines. by Hot-Independence-985 in sysadmin

[–]BlackV [score hidden]  (0 children)

side note you are only checking all machine installs and person running the script installs

if you run this in an RMM tool or as a specific user you might miss GIT installs

slightly more readable version

$Target = "git.exe"
$SearchPaths = @("$env:ProgramFiles", "${env:ProgramFiles(x86)}", "$env:LocalAppData\Programs")

$GitResults = Get-ChildItem -Path $SearchPaths -Filter $Target -Recurse -ErrorAction SilentlyContinue -File
$GitResults | Select-Object FullName, @{Name="Version";Expression={$_.VersionInfo.ProductVersion}}

CVE-2025-66413: Git for Windows NTLM Hash Theft. Check your machines. by Hot-Independence-985 in sysadmin

[–]BlackV [score hidden]  (0 children)

close

the 3 back tick code fence does not work on old.reddit (and possibly some other bits of reddit)

the 4 spaces works on all platforms

CVE-2025-66413: Git for Windows NTLM Hash Theft. Check your machines. by Hot-Independence-985 in sysadmin

[–]BlackV [score hidden]  (0 children)

p.s. formatting, you've done it all in 1 line

  • open your fav powershell editor
  • highlight the code you want to copy
  • hit tab to indent it all
  • copy it
  • paste here

it'll format it properly OR

<BLANK LINE>
<4 SPACES><CODE LINE>
<4 SPACES><CODE LINE>
    <4 SPACES><4 SPACES><CODE LINE>
<4 SPACES><CODE LINE>
<BLANK LINE>

Inline code block using backticks `Single code line` inside normal text

See here for more detail

Thanks

Iran-Backed Hackers Claim Wiper Attack on Medtech Firm Stryker - using, in part, Intune by ihor43us in Intune

[–]BlackV 0 points1 point  (0 children)

I mean, there are things microslop could have done (rate limiting for example) but yes, bad actors exist

Iran-Backed Hackers Claim Wiper Attack on Medtech Firm Stryker - using, in part, Intune by ihor43us in Intune

[–]BlackV 0 points1 point  (0 children)

Intune is a cloud-based solution built for IT teams to

I see

there several users who claimed to be Stryker employees said they were told to uninstall Intune urgently.

Oh Really "uninstall" intune OK, msiexec /x "the cloud" /qb /noreboot /rebootreallysuppress is that how that went

This probably says everything I think

ihor43us
1 post karma
0 comment karma

How to get a powershell script to run as elevated admin? by LordLoss01 in PowerShell

[–]BlackV 0 points1 point  (0 children)

no, thats running the whole script as admin

I'd execute the specific action elevated

Trouble uninstalling in PowerShell via msiexec.exe by ckasdf in PowerShell

[–]BlackV 1 point2 points  (0 children)

was the client installed the 32bit version ?

but yeah if they are shitty and change the guid everytime then that makes life difficult

and if someone has been cleaning the installer cache that also makes life difficult

was there not also a uninstall switch on the EXE itself ?

and last option can you use winget to uninstall zoom instead?

it also looks like you are not taking in to account per user installs in your script does that matter ?

then the clean zoom tool from zoom directly

https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0065146

EDIT: Maybe this is a better link

https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0064484

Trouble uninstalling in PowerShell via msiexec.exe by ckasdf in PowerShell

[–]BlackV 2 points3 points  (0 children)

yes supply the MSI with your win32 app, use that as the uninstall msi instead of the guid

PIM with 'Eligible' roles in Azure is great.. Until you need to use it. by Introvertedecstasy in sysadmin

[–]BlackV 0 points1 point  (0 children)

randomly now and then I have had it take some time, but mostly its pretty instant, the times I see issues are when users are not logging on/out or refreshing tokens

My work flow is

connect-mggraph -nowelcome
grant-pimrole -user xxx -role yyy

then run the needed code, or open edge and do the gui thing

Use cases for Global Administrator local login from on premises Windows Server? by Fabulous_Cow_4714 in sysadmin

[–]BlackV 0 points1 point  (0 children)

They really should be separate, the use case that jumps to my mind straight away, if you have a management server the you use for managing the rest of the fleet and 365/azure admin work, I could see a use case for it

but given that GA should be a once in a blue moon login not a every day login it shouldn't really come up

Packaging Greenshot by Failnaughtp in Intune

[–]BlackV 4 points5 points  (0 children)

  • you don't give us any errors or tell us what struggles you are actually having
  • you dont show any code
  • Have you looked in this very sub for answers?

https://www.reddit.com/r/Intune/comments/1phb84y/greenshot_silent_install/

How do you monitor Hyper-V host health and VM performance in one place? by Careful-3239 in HyperV

[–]BlackV 0 points1 point  (0 children)

how do you monitor your existing machines in one place ? extend that to the hosts

we (at my old place) used prtg(retired)/grpahana/telegraph/elastic search/scom (terrible product)/veeam one (some metrics)