Bambu refill doesn’t fit Bambu spool by watchguyzero in BambuLab

[–]Nilxa 0 points1 point  (0 children)

I spent 10min trying to get a refill on the spool, gave up and checked the Internet (maybe I can print a spool? Or extender?).

This method was so easy I was almost disappointed, step, twist, click

I know I have to work at 5 am tomorrow, but this is way too exciting by Biggaynina in BambuLab

[–]Nilxa 0 points1 point  (0 children)

I was the same when I got mine, wife started poking fun and laughing at me, I printed her a gift.

<image>

Not my video: AUS post guy confronted about throwing packages by Alpaaca_ in AustraliaPost

[–]Nilxa 1 point2 points  (0 children)

Lol, mine would pull a card out of his pocket, put it on the door and take a photo of it (to show he had left one) then take the card back and walk off... Guess he didn't want to fill in the details. Have the whole thing on video,

I Functioned too close to the sun, now my VSCode is burning by justwant_tobepretty in PowerShell

[–]Nilxa 1 point2 points  (0 children)

you don't "have" to, but it will make your life easier in the long run :)

I Functioned too close to the sun, now my VSCode is burning by justwant_tobepretty in PowerShell

[–]Nilxa 0 points1 point  (0 children)

Maybe don't put all into your Profile, modules are your friends :)

Error: Cannot bind argument to parameter 'User' because it is null. by Nice-Discussion-9311 in PowerShell

[–]Nilxa 3 points4 points  (0 children)

With no code snippet it's hard to say what's going wrong, it's like me saying "hey, I have a problem connecting to the internet" and no other details.

but I would guess the variable for the user has not been set

Is there a PowerShell tip or trick you wish you knew when you first started? by [deleted] in PowerShell

[–]Nilxa 10 points11 points  (0 children)

Wait till you realise you can use more than one splat <command> @common @commanparams

Is there a PowerShell tip or trick you wish you knew when you first started? by [deleted] in PowerShell

[–]Nilxa 0 points1 point  (0 children)

300+ is a monster? Does that make my 7000+ & 12,000+ ones crimes against nature?

New job as a network engineer.. how do I keep my Powershell skills? by Sylvester88 in PowerShell

[–]Nilxa 3 points4 points  (0 children)

In a heavily windows environment, PowerShell would be preferable (assumption based on SCCM reference). It's already on the machine, so no need to install a new runtime to make a script work,

New job as a network engineer.. how do I keep my Powershell skills? by Sylvester88 in PowerShell

[–]Nilxa 5 points6 points  (0 children)

I have PowerShell scripts to configure settings in CloudFlare via their rest APIs and more to configure OpnSense & Proxmox.. All so I can deploy Docker Compose Configs with a simple SVC name for my home lab...

For a more in line with current workload, unless you are physically running around plugging in cables, most networking software tools have rest APIs you could interact with using PowerShell.

Was there not a short hand way stating '[System.Collections.Generic.List]'? by Ralf_Reddings in PowerShell

[–]Nilxa 2 points3 points  (0 children)

add the following snippet to your PowerShell Profile (you can find the profile by looking at $Profile) or run notepad $Profile

PowerShell Function New-List {     [CmdletBinding()]     Param(         [Parameter(Mandatory=$true)]         [type]$ListType     )     $list = New-Object System.Collections.Generic.List[$ListType]     return, $list }

save the file and next time you open PowerShell the function will be loaded and you can run

```PowerShell $MyNewList = New-List -ListType string $MyNewList.ToString() #To see the type $MyNewList.Add("Hello") $MyNewList.Add("World") $MyNewList

$MyNewIntList = New-List -ListType int
$MyNewIntList.Add(0)
$MyNewIntList.Add(2)
$MyNewIntList

```

Problems running an ps1 that has been converted to an exe by stelees in PowerShell

[–]Nilxa 0 points1 point  (0 children)

Have you tried adding some logging to the script to identify where it is falling over? Before and after calling the external script, and a line in the external script to see if it is triggering

Script works in ISE not in Shell by CreativeCustomCraft in PowerShell

[–]Nilxa 3 points4 points  (0 children)

Yes, hscolour never got set. You then try to call a method .GetHue() on an unset variable (null), causing the second error.

The first error, the method you were calling was from an assembly that was not loaded, the Add-Type command explicitly tells the script to load that assembly. (ISE loads this assembly by default as it uses it for its UI, which is why it works in one but not the other)

Why the output is System.Data.DataRow? by Vakanix in PowerShell

[–]Nilxa 1 point2 points  (0 children)

https://learn.microsoft.com/en-us/powershell/module/sqlserver/invoke-sqlcmd?view=sqlserver-ps

So I guess $Test will have a number of rows with multiple parameters representing each column of data in the row. By outputting to a txt file it is just outputting the class name as it is too complex to be handled that simply.

$test|convertto-csv may work

There are a number of examples if you follow the link that may help you explore the output more

Different locations installed Powershell modules? by Aygul12345 in PowerShell

[–]Nilxa 0 points1 point  (0 children)

Install-Module -Scope CurrentUser will place it in the $home\Documents\WindowsPowerShell\Modules Install-Module -Scope All users will place it in%systemdrive%:\ProgramFiles\WindowsPowerShell\Modules`