microsoft:powershell
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| microsoft:powershell [2016/03/04 21:10] – felix | microsoft:powershell [2018/12/05 16:23] (current) – felix | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== PowerShell ===== | ||
| + | * [[https:// | ||
| + | *[[http:// | ||
| + | *[[http:// | ||
| + | *[[http:// | ||
| + | |||
| + | *[[http:// | ||
| + | |||
| + | * Youtube: [[http:// | ||
| + | * Youtube: [[https:// | ||
| + | * Youtube: [[https:// | ||
| + | |||
| + | |||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[https:// | ||
| + | |||
| + | * [[http:// | ||
| + | |||
| + | * **Kommentare** | ||
| + | * ''#'': | ||
| + | * ''<# | ||
| + | |||
| + | Backup-Skript mit PowerShell: | ||
| + | <code powershell> | ||
| + | $timestamp = Get-Date -Format yyyy-MM-dd_HHmmss | ||
| + | $zielPfad = " | ||
| + | $quellPfad = " | ||
| + | |||
| + | " | ||
| + | "und lokal unter $zielPfad speichern." | ||
| + | |||
| + | Compress-Archive -Path " | ||
| + | |||
| + | <code powershell> | ||
| + | Get-ChildItem *.jpg | Rename-Item -NewName {$_.name.PadLeft(9, | ||
| + | # Die 9 ist die Ziel-Dateinamenlänge; | ||
| + | </ | ||
| + | |||
| + | PowerShell-Skript über .bat-Datei aufrufen: | ||
| + | <code dos> | ||
| + | powershell.exe -command "& ' | ||
| + | </ | ||
