Skip to content

Commit

Permalink
deploy: 3d8f0a9
Browse files Browse the repository at this point in the history
  • Loading branch information
diecknet committed Dec 23, 2024
1 parent 1aeb7b4 commit c5a1a30
Show file tree
Hide file tree
Showing 164 changed files with 1,640 additions and 402 deletions.
12 changes: 9 additions & 3 deletions de/2020/01/25/Exchange-Mailbox-Creation-Date/index.html

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions de/2020/05/10/Apple-Internet-Accounts-Office365/index.html

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion de/2020/06/05/Azure-AD-Connect-Video/index.html

Large diffs are not rendered by default.

36 changes: 33 additions & 3 deletions de/2020/09/08/Set-File-Date-with-PowerShell/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions de/2021/06/29/Deleted-Teams-Channel-Retention/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

21 changes: 18 additions & 3 deletions de/2024/02/20/powershell-check-admin-rights/index.html

Large diffs are not rendered by default.

23 changes: 22 additions & 1 deletion de/2024/02/28/powershell-environment-variables/index.html

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions de/2024/03/05/powershell-profiles/index.html

Large diffs are not rendered by default.

28 changes: 23 additions & 5 deletions de/2024/04/09/powershell-suppress-output/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

33 changes: 30 additions & 3 deletions de/2024/04/29/powershell-null/index.html

Large diffs are not rendered by default.

41 changes: 37 additions & 4 deletions de/2024/05/15/powershell-multiline-commands/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion de/2024/08/21/powershell-calculated-properties/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</span></span><span style=display:flex><span><span style=color:#6c7986># Alternativ ohne -Property explizit zu nennen</span>
</span></span><span style=display:flex><span><span style=color:#d0a8ff>Get-Service</span> | <span style=color:#d0a8ff>Select-Object</span> Name, Status
</span></span></code></pre></td></tr></table></div></div><h2 id=eigenschaft-umbenennen>Eigenschaft umbenennen<a hidden class=anchor aria-hidden=true href=#eigenschaft-umbenennen>#</a></h2><p>Um eine Eigenschaft umzubennen, müssen wir eine Hashtable statt eines einfachen Parameternamens angeben.
Die Hashtable hat zwei Einträge:</p><table><thead><tr><th style=text-align:left>Bezeichner</th><th style=text-align:left>Bedeutung</th></tr></thead><tbody><tr><td style=text-align:left><code>Name</code> (oder <code>Label</code>)</td><td style=text-align:left>Name der neuen Eigenschaft</td></tr><tr><td style=text-align:left><code>Expression</code></td><td style=text-align:left>Scriptblock, der den Wert erzeugt</td></tr></tbody></table><p>Beispielsweise um die Eigenschaft &ldquo;Dienstname&rdquo; zu erzeugen, die den Namen eines Windows Dienstes enthält:</p><div class=highlight><div style=color:#fff;background-color:#1f1f24;-moz-tab-size:4;-o-tab-size:4;tab-size:4><table style=border-spacing:0;padding:0;margin:0;border:0><tr><td style=vertical-align:top;padding:0;margin:0;border:0><pre tabindex=0 style=color:#fff;background-color:#1f1f24;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f">1
Die Hashtable hat zwei Einträge:</p><table><thead><tr><th>Bezeichner</th><th>Bedeutung</th></tr></thead><tbody><tr><td><code>Name</code> (oder <code>Label</code>)</td><td>Name der neuen Eigenschaft</td></tr><tr><td><code>Expression</code></td><td>Scriptblock, der den Wert erzeugt</td></tr></tbody></table><p>Beispielsweise um die Eigenschaft &ldquo;Dienstname&rdquo; zu erzeugen, die den Namen eines Windows Dienstes enthält:</p><div class=highlight><div style=color:#fff;background-color:#1f1f24;-moz-tab-size:4;-o-tab-size:4;tab-size:4><table style=border-spacing:0;padding:0;margin:0;border:0><tr><td style=vertical-align:top;padding:0;margin:0;border:0><pre tabindex=0 style=color:#fff;background-color:#1f1f24;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f">1
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f">2
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f">3
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f">4
Expand Down
17 changes: 13 additions & 4 deletions de/2024/08/30/powershell-ntfs-alternate-data-streams/index.html

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions de/2024/09/12/powershell-array-plus/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion de/2024/09/20/powershell-wmi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</span></span><span style=display:flex><span>
</span></span><span style=display:flex><span><span style=color:#6c7986># WMI Daten inline in einem anderen Cmdlet abfragen und als Parameterwert verwenden</span>
</span></span><span style=display:flex><span><span style=color:#d0a8ff>New-TimeSpan</span> -Start (<span style=color:#d0a8ff>Get-CimInstance</span> -ClassName Win32_Bios -Property ReleaseDate).ReleaseDate -End (<span style=color:#d0a8ff>Get-Date</span>)
</span></span></code></pre></td></tr></table></div></div><h2 id=wmi-daten-filtern>WMI Daten filtern<a hidden class=anchor aria-hidden=true href=#wmi-daten-filtern>#</a></h2><p>Wenn ihr bei einer WMI Abfrage genauer filtern möchtet, dann geht das wahlweise mit einem kompletten WMI Query, oder mit dem <code>-Filter</code> Parameter. Die Syntax von WMI Filtern ist anders als sonst in PowerShell. Meiner Meinung nach eigentlich sogar ein bisschen intuitiver. Aber wenn man die ganze Zeit PowerShell verwendet, dann ist es doch wieder etwas ungewohnt.</p><p>Es gibt die einfachen Vergleichsoperatoren:</p><table><thead><tr><th style=text-align:left>Operator</th><th style=text-align:left>Description</th></tr></thead><tbody><tr><td style=text-align:left>=</td><td style=text-align:left>Equal to</td></tr><tr><td style=text-align:left>&lt;</td><td style=text-align:left>Less than</td></tr><tr><td style=text-align:left>></td><td style=text-align:left>Greater than</td></tr><tr><td style=text-align:left>&lt;=</td><td style=text-align:left>Less than or equal to</td></tr><tr><td style=text-align:left>>=</td><td style=text-align:left>Greater than or equal to</td></tr><tr><td style=text-align:left>!= or &lt;></td><td style=text-align:left>Not equal to</td></tr></tbody></table><p>Siehe dazu: <a href=https://learn.microsoft.com/en-us/windows/win32/wmisdk/wql-operators target=_blank>https://learn.microsoft.com/en-us/windows/win32/wmisdk/wql-operators</a></p><p>Und auch den <code>LIKE</code> Operator für eine Platzhaltersuche. Siehe dazu: <a href=https://learn.microsoft.com/en-us/windows/win32/wmisdk/like-operator target=_blank>https://learn.microsoft.com/en-us/windows/win32/wmisdk/like-operator</a></p><div class=highlight><div style=color:#fff;background-color:#1f1f24;-moz-tab-size:4;-o-tab-size:4;tab-size:4><table style=border-spacing:0;padding:0;margin:0;border:0><tr><td style=vertical-align:top;padding:0;margin:0;border:0><pre tabindex=0 style=color:#fff;background-color:#1f1f24;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f">1
</span></span></code></pre></td></tr></table></div></div><h2 id=wmi-daten-filtern>WMI Daten filtern<a hidden class=anchor aria-hidden=true href=#wmi-daten-filtern>#</a></h2><p>Wenn ihr bei einer WMI Abfrage genauer filtern möchtet, dann geht das wahlweise mit einem kompletten WMI Query, oder mit dem <code>-Filter</code> Parameter. Die Syntax von WMI Filtern ist anders als sonst in PowerShell. Meiner Meinung nach eigentlich sogar ein bisschen intuitiver. Aber wenn man die ganze Zeit PowerShell verwendet, dann ist es doch wieder etwas ungewohnt.</p><p>Es gibt die einfachen Vergleichsoperatoren:</p><table><thead><tr><th>Operator</th><th>Description</th></tr></thead><tbody><tr><td>=</td><td>Equal to</td></tr><tr><td>&lt;</td><td>Less than</td></tr><tr><td>></td><td>Greater than</td></tr><tr><td>&lt;=</td><td>Less than or equal to</td></tr><tr><td>>=</td><td>Greater than or equal to</td></tr><tr><td>!= or &lt;></td><td>Not equal to</td></tr></tbody></table><p>Siehe dazu: <a href=https://learn.microsoft.com/en-us/windows/win32/wmisdk/wql-operators target=_blank>https://learn.microsoft.com/en-us/windows/win32/wmisdk/wql-operators</a></p><p>Und auch den <code>LIKE</code> Operator für eine Platzhaltersuche. Siehe dazu: <a href=https://learn.microsoft.com/en-us/windows/win32/wmisdk/like-operator target=_blank>https://learn.microsoft.com/en-us/windows/win32/wmisdk/like-operator</a></p><div class=highlight><div style=color:#fff;background-color:#1f1f24;-moz-tab-size:4;-o-tab-size:4;tab-size:4><table style=border-spacing:0;padding:0;margin:0;border:0><tr><td style=vertical-align:top;padding:0;margin:0;border:0><pre tabindex=0 style=color:#fff;background-color:#1f1f24;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f">1
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f">2
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f">3
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:.4em;padding:0 .4em;color:#7f7f7f">4
Expand Down
12 changes: 9 additions & 3 deletions de/2024/11/02/powershell-cancel-loops/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit c5a1a30

Please sign in to comment.