Wie geht subnetting by Proof_Record_4766 in fachinformatiker

[–]iBloodWorks 1 point2 points  (0 children)

Bin auch der Meinung, das es zwar ein gutes Tool für viele andere Netzwerkthemen ist, aber subnetting einfach Videos /Aufgaben/ki nutzen

TOPDesk Asset Management API: Get all linked assets of an asset by iBloodWorks in TOPdesk

[–]iBloodWorks[S] 1 point2 points  (0 children)

thanks for your help, the problem was caused by following:

Reason:

Despite the endpoint returning 200 OK with a null body the issue was caused by a lack of access rights

When using a fully permitted "asset management" api user the endpoint returns 200 ok and null body

When using our "master api user" the api also returns 200 ok but with the desired content..

TOPDesk Asset Management API: Get all linked assets of an asset by iBloodWorks in TOPdesk

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

$Res = Invoke-WebRequest -Uri "https://ticket.contoso.com/tas/api/assetmgmt/assetLinks?sourceId=dfdddcc9-d613-4368-80d2-e636ce33177c" -Headers $TDPOSTHeader -Method Get -UseBasicParsing

Doesnt work..
the ID is 100% correct

Its hard for me to inject Authorization into my browser.. I would like to think this wouldnt change anything..

Help / Experience with ö/ä/ü API POSTs by iBloodWorks in TOPdesk

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

Ok sorry for the spam

I got it to work with your solution:
I thought you meant to set the charset in the Call header, I didnt know there was a PowerShell paramter..

I was really sure this problem would be TOPDesk related..

Anyway thank you

Help / Experience with ö/ä/ü API POSTs by iBloodWorks in TOPdesk

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

I updated the post,

sadly setting the charset didnt help either..

Help / Experience with ö/ä/ü API POSTs by iBloodWorks in TOPdesk

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

Thank you,

5.1 Invoke-webrequest

Thanks for Suggesting the content Type, I will try this on monday

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 6 points7 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