User Tools

Site Tools


informatique:windows:powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
informatique:windows:powershell [2022/03/04 14:32] yahikoinformatique:windows:powershell [2022/06/10 12:41] yahiko
Line 15: Line 15:
 Attention, c'est très sale :  Attention, c'est très sale : 
 <codedoc code:batch> <codedoc code:batch>
-REM Powershell.exe -NoProfile -ExecutionPolicy bypass -File "\\IP_DU_SERVEUR\OU\EST\LE\script.ps1"+Powershell.exe -NoProfile -ExecutionPolicy bypass -File "\\IP_DU_SERVEUR\OU\EST\LE\script.ps1"
 </codedoc> </codedoc>
 Source : [[https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts]] Source : [[https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts]]
Line 99: Line 99:
 <codedoc code:powershell> <codedoc code:powershell>
 Add-Computer -DomainName DOMAINE.LOCAL -Credential DOMAINE\administrateur -Restart -Force Add-Computer -DomainName DOMAINE.LOCAL -Credential DOMAINE\administrateur -Restart -Force
 +</codedoc>
 +
 +===== Récupérer le GUID des volumes =====
 +<codedoc code:powershell>
 +GWMI -namespace root\cimv2 -class win32_volume | FL -property DriveLetter, DeviceID
 </codedoc> </codedoc>
  
  
informatique/windows/powershell.txt · Last modified: 2023/09/14 08:45 by yahiko

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki