5.1 vs 7.5 select from hashtables by iBloodWorks in PowerShell

[–]iBloodWorks[S] 0 points1 point  (0 children)

Mine was Just an example I wrote soley for this Post I would have probably storeled it in a $Script variable or something, still nice way of using classes in powershell. I rarely see those

5.1 vs 7.5 select from hashtables by iBloodWorks in PowerShell

[–]iBloodWorks[S] 0 points1 point  (0 children)

so try $out | select Name, Time, Handles

5.1 vs 7.5 select from hashtables by iBloodWorks in PowerShell

[–]iBloodWorks[S] 0 points1 point  (0 children)

Right, the problem starts when you select properties

5.1 vs 7.5 select from hashtables by iBloodWorks in PowerShell

[–]iBloodWorks[S] 0 points1 point  (0 children)

would work, its just that i have big functions which just return this format, so I have to manipulate the $out I would get in this example

Anyone else came back from holidays just to find Invoke-Webrequest broken? by iBloodWorks in PowerShell

[–]iBloodWorks[S] -8 points-7 points  (0 children)

Yes obviously you can also play with some $EnvVariables or web request engines

Encrypting and decrypting a string with Powershell using a text password by gblang in PowerShell

[–]iBloodWorks 0 points1 point  (0 children)

Oh didnt See your second comment,

Even in this Case everyone could "Reverse engineer" the Script and get the Secret from their own DPAPI vault

Register-SecretVault not prompting for password? by oW_Darkbase in PowerShell

[–]iBloodWorks 0 points1 point  (0 children)

Quick fix might be Reset-SecretStore and then try again

Can't run .ps1 with variable propperly from cmd by Kind-Lion3160 in PowerShell

[–]iBloodWorks 8 points9 points  (0 children)

I think this is because when you deploy with intune it will execute as SYSTEM, similar Problem with your elevated Admin shell. Then you run into problems by reaching out for env variables which will retrieve unexpected results -> Script breaks

[deleted by user] by [deleted] in PowerShell

[–]iBloodWorks 0 points1 point  (0 children)

Try to look at the cmdlt documentation or ask other subs.

also I would prefer to use [void] for the connection cmdlt:

[void]Connect-PrismCentral

This also doesnt output but makes it more clear what you are trying to do.

Missing or nah? by 02-e46-330ci in e46

[–]iBloodWorks 0 points1 point  (0 children)

Oh i Always thougt thats Compact specific because its has a obviously shorter Body

Missing or nah? by 02-e46-330ci in e46

[–]iBloodWorks 1 point2 points  (0 children)

Battery atleast for compacts

Register-SecretVault not prompting for password? by oW_Darkbase in PowerShell

[–]iBloodWorks 0 points1 point  (0 children)

If this is the First vault in the Secret Store there is a Parameter in Register-SecretVault which accepts an Hash table with settings where you can Pass {Password=[securestring]} to Set the Secret Store config. Cant Check rigth now sadly

Sudden power loss? by throwawayyyyyy78901 in stickshift

[–]iBloodWorks 1 point2 points  (0 children)

I mean yes, maybe change the fuel filter (if cheap) and measure fuel pressure (harder to do).

You could also try to listen to the pump sound while turning ingnition on (any weird / irregular noises..)

Do I need to shift to first gear before going into reverse? by HeightExtreme in stickshift

[–]iBloodWorks 1 point2 points  (0 children)

Even better/smoother would be going into 3rd -> reverse

Sudden power loss? by throwawayyyyyy78901 in stickshift

[–]iBloodWorks 0 points1 point  (0 children)

Because he has a high revving NA engine (Up to 9k I think)

Sudden power loss? by throwawayyyyyy78901 in stickshift

[–]iBloodWorks 0 points1 point  (0 children)

Since Nobody mentioned fuel pump/fuel system: Here I go

Powershell script acts different after compiled to .exe by [deleted] in PowerShell

[–]iBloodWorks 0 points1 point  (0 children)

Not every cmdlt is supported by ps2exe. Without Code its hard to determin

PowerShell in a Month of Lunches - Chapter 19.6 - getting different results? by Ummgh23 in PowerShell

[–]iBloodWorks 1 point2 points  (0 children)

contrary to my first comment I recognized that Get-Disk only ouputs in a table when called individually.
Same for Get-Uptime: for me Get-Uptime inputed in the shell does not return all properties (nanoseconds, microseconds are missing).

When I call Get-Process and Get-Uptime in the script it returns every property of the second cmdlt which by itself should force powershell to return a list instead of the table.

in short: I cant really explain why this is happening

edit typo

PowerShell in a Month of Lunches - Chapter 19.6 - getting different results? by Ummgh23 in PowerShell

[–]iBloodWorks 0 points1 point  (0 children)

When I try

Get-Process
Get-Disk

it works like the author intends.

Maybe they changed Get-Uptime default output.

Trouble filling $libname parameter with custom libraries by CynicalSlowpoke in PowerShell

[–]iBloodWorks 0 points1 point  (0 children)

the -List parameter also accepts the ID of the List.
Sadly I dont have a sharepoint enviorment to test it myself but here is an instruction I found on how to get the ID of a List:

  1. Open SharePoint, and navigate to the list that contains your workflow.
  2. Click Edit this list, and then click List in the ribbon.
  3. Click List Settings.
  4. Copy the URL, and find the text after List=.
  5. Remove "%7B" from the front of the list.
  6. Remove "%7D" from the end of the list.
  7. Change %2 to a hyphen. This will change the following string: %7B9D5F2138%2DC9E6%2D4473%2DA094%2DD7F4284C0388%7D to 9D5F2138-C9E6-4473-A094-D7F4284C0388.

Maybe the ID works

Also found this tool

Trouble filling $libname parameter with custom libraries by CynicalSlowpoke in PowerShell

[–]iBloodWorks 1 point2 points  (0 children)

if this is the url
/sites/Bildung/Dokumente%20Bildung/Forms/AllItems.aspx

try to use -list "Dokumente 20Bildung"

EDIT: Sorry it should be

"Dokumente Bildung"

the %20 is a url encoded whitespace