informatique:windows:powershell
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatique:windows:powershell [2022/02/10 09:17] – yahiko | informatique:windows:powershell [2022/06/10 12:41] – yahiko | ||
---|---|---|---|
Line 11: | Line 11: | ||
Powershell.exe -executionpolicy remotesigned -File NOMDUSCRIPT.ps1 | Powershell.exe -executionpolicy remotesigned -File NOMDUSCRIPT.ps1 | ||
</ | </ | ||
+ | |||
+ | ===== Lancer un script Powershell à partir d'un chemin UNC ===== | ||
+ | Attention, c'est très sale : | ||
+ | <codedoc code: | ||
+ | Powershell.exe -NoProfile -ExecutionPolicy bypass -File " | ||
+ | </ | ||
+ | Source : [[https:// | ||
===== Tester la présence d'un dossier ===== | ===== Tester la présence d'un dossier ===== | ||
Line 92: | Line 99: | ||
<codedoc code: | <codedoc code: | ||
Add-Computer -DomainName DOMAINE.LOCAL -Credential DOMAINE\administrateur -Restart -Force | Add-Computer -DomainName DOMAINE.LOCAL -Credential DOMAINE\administrateur -Restart -Force | ||
+ | </ | ||
+ | |||
+ | ===== Récupérer le GUID des volumes ===== | ||
+ | <codedoc code: | ||
+ | GWMI -namespace root\cimv2 -class win32_volume | FL -property DriveLetter, | ||
</ | </ | ||
informatique/windows/powershell.txt · Last modified: 2023/09/14 08:45 by yahiko