Been doing powershell for 10 years, switching from custom objects to hash tables for large datasets in the last year and a half has led to such wild increases in performance as much as 6x. Kind of crazy seeing it in action cause you almost think you broke something
@lautarob
2 жыл бұрын
Hello 👋. Excellent videos (I’ve seen two so far and both are excellent!). May I suggest to zoom in often on the code, so it can be seen better? Sometimes One sees the videos in a phone and the text code is too small for that screen size…
@jackedprogrammer
2 жыл бұрын
Hi, yes I did notice that by the 6th or 7th video the text is much more zoomed in for viewing on any device :) , glad you're enjoying the videos :)
@Lil_mar00
2 жыл бұрын
Just what i needed. thank you!
@jackedprogrammer
2 жыл бұрын
No problem, my pleasure glad you're enjoying the videos :)
@pierremaher9431
Жыл бұрын
Excellent & Simple
@Our1stPlanet
2 жыл бұрын
Excellent, all videos should be like that..
@jackedprogrammer
2 жыл бұрын
Thank you! glad you're enjoying the videos :)
@Dopeykid666
Жыл бұрын
I'm trying to create a script that uses a hashtable to store something like $flashdrive = Get-Disk | Where-Get ($. _bustype -eq 'removable' ) and $usbvolume = Get-Volume | Where-Get ($._partitionstyle -eq 'fat'). If both those values could be contained in a hash, with a set key that is iterative, the key could be referenced later in commands regarding remove-partition, and then new-partition, and then format the drives to efi Fat with an allocation of 32678, but it always returns an error that claims it can't find a valid parameter for volume, idk what else to try Edit : I should clarify that the code to input automatically into the table I have, and I'm trying to store something like UniqueID linked to drive type Fat, with per drive confirmation of changes so that when the command iterates it will see a uniqueID already exists in the table and move on. The keys would be input as drives are completed ideally but I'm a lost noob haha
@freshmaker4o
2 жыл бұрын
Nice! How would you pass PSCustomObject to a function as parameter?
@ThisGuyDakota
2 жыл бұрын
Like this: My-Function -param "$($MyObject.property)"
@Akira_203
4 ай бұрын
Param([PSCustomObject]$ParameterName) Declares a PSC explicitly.
Пікірлер: 12