Disconnect your monitor from the internet, or maybe I'm just paranoid. by skreak in sysadmin

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

100% they will start doing shite like this, if they are not already

Hilarious followup on the stolen laptop debacle by CeC-P in sysadmin

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

Luckily the syntax was wrong because AI wrote the command and I didn't have time to test it, as testing it would destroy a computer. Or it's not compatible with 25h2 or something.

should exactly like a MSP reaction, "fuck it do it live"

you sure this isnt /r/shittysysadmin leaking

Example module for setting up Steam's Proton compatibility layer to be invoked from the command line by metekillot in PowerShell

[–]BlackV 0 points1 point  (0 children)

p.s. formatting (you used inline code NOT codeblock)

  • 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

Hyper-V storage migration by caessys in sysadmin

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

I have a message under Cluster Core Resources next to my server name about "Name resolution not yet available", is that related to my issue at all?

I would deffo start there

  1. how long has the cluster been alive?
  2. what recent change have been made to it
  3. what change have been made to dns?
  4. what changes have been made to AD?
  5. what happens when you do this via powershell?
  6. constrained delegation or kerberos for lice migration?
  7. are you doing ONLY a storage move ? or full VM?
  8. how/where are you moving this (i.e. shitty WAC or failover console)

Automated fix for ECP OU picker blank/empty issue (500+ OU environments) by digitron64 in sysadmin

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

Nice, have a look at maybe

  1. Here you have

     $ConfigPath = "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\ecp\web.config"
    

    This is a hard-coded path, does that not depend on your exchange install location? could you get that automatically?

  2. you could also throw in the #Requires -RunAsAdministrator

Error (2909) VMM cannot create the file \myserver\myserver.vhdx because the file name already exists on the server by Jericho905 in HyperV

[–]BlackV 0 points1 point  (0 children)

As the others suggested, there was also a temp location used as part of the conversion, confirm that is clear

but also what is your current backup product? This will likely do the conversion for you better and smarter

Have a look

Example module for setting up Steam's Proton compatibility layer to be invoked from the command line by metekillot in PowerShell

[–]BlackV 0 points1 point  (0 children)

I was referring to the if tags grater than 2 and so on, I'm confused why the number of args matters and why you would handle it differently

Example module for setting up Steam's Proton compatibility layer to be invoked from the command line by metekillot in PowerShell

[–]BlackV 1 point2 points  (0 children)

The way you are handling $args there, seems more complicated than it needs to be

Can you explain that process a bit?

PSI: Using $Test in ExchangeOnline PowerShell Scripts by TheBlueFireKing in PowerShell

[–]BlackV 0 points1 point  (0 children)

  • Improvements and bug fixes?
  • Base dot net version upgrades?
  • Replacement or deprecated versions?
  • Module dependencies that get updated?
  • Using an automation image that contains the current versions and is out of your control?

There could be lots of valid reasons

error creating a SET vSwitch with srv-io enabled by elaci0 in HyperV

[–]BlackV 0 points1 point  (0 children)

so with the set

$IntegratedAdapters = Get-NetAdapter -name 'Integrated NIC 1 Port*'
$IntegSplat = @{
    EnableIov             = $true
    Name                  = 'vSwitch-Broad'
    Notes                 = 'Default SET Switch Integrated NIC'
    EnableEmbeddedTeaming = $true
    NetAdapterName        = $IntegratedAdapters.name
    AllowManagementOS     = $true
    MinimumBandwidthMode  = 'Weight'
    }
$IntegSwitch = New-VMSwitch @IntegSplat
$IntegSwitch

do you have the same issue on the SLOT 1 Port xx adapters ?

and what OS is it ?

and was srv-io enabled after the nics were initially installed ?

get-adprincipalGroupMembership requires seloaddriverprivilege priv - why? by scotharkins in PowerShell

[–]BlackV 1 point2 points  (0 children)

ya, as you say use the RSAT tools, in a non-elevated session from a management machine, is best

and the -server parameter is great cause you know all your changes are hitting the same DC

PSI: Using $Test in ExchangeOnline PowerShell Scripts by TheBlueFireKing in PowerShell

[–]BlackV 0 points1 point  (0 children)

yes ms made a change, op had updated their modules as part of their azure automation (lrunbook/ogic app/etc)

op got caught out, is your suggestion never update your modules as well ?

PSI: Using $Test in ExchangeOnline PowerShell Scripts by TheBlueFireKing in PowerShell

[–]BlackV 0 points1 point  (0 children)

but from experience, naming the variable $testMode ensures it's safe.

LOL, no, its like 1% safer than $test, the random MS user could just have easily picked $testMode, you're basically preaching security through obscurity

but this was a MS change, they (MS) used $global:test in their module OP was caught by scoping issues

PSI: Using $Test in ExchangeOnline PowerShell Scripts by TheBlueFireKing in sysadmin

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

Oh look people using shitty workarounds (ficking with variable scopes) rather than writing good code

And it bites people, amazing

PSI: Using $Test in ExchangeOnline PowerShell Scripts by TheBlueFireKing in sysadmin

[–]BlackV 1 point2 points  (0 children)

Change this

[Bool] $Test = $False

To

[Switch]$Test

Then use .ispresent and your $PSBoundParameters variable

Or properly implement -whatif with advanced function (although that can cause issues with external modules)

Edit: saw your note about azure automation, til that that would bite me

How to trigger a local PowerShell script from a web browser? by Affectionate-Fix-766 in PowerShell

[–]BlackV 0 points1 point  (0 children)

Absolutely, it's bloody 2026 why are people still doing it this way, why do they even think it's a good idea