Je mets ici quelques commandes PowerShell que je juge utiles.
PS C:\ > Install-WindowsFeature AD-domain-services -Restart -IncludeManagementTools PS C:\ > Import-Module ADDSDeployment PS C:\ > Install-AddsForest
PS C:\ > Install-WindowsFeature RSAT-ADDS
PS C:\ > $OU = "OU=Servers,DC=shebangthedolphins,DC=net" PS C:\ > $Domain = "shebangthedolphins.net" PS C:\ > $Cred = "shebangthedolphins.net\administrator" PS C:\ > Add-Computer -DomainName $Domain -OUPath $OU -Credential $Cred -Restart -Force
PS C:\ > Copy-Item C:\*.ini -Destination E:\Temp\
PS C:\ > Move-Item C:\*.txt -Destination E:\Temp\
PS C:\ > Set-Date -date "12/7/2017 3:57 PM"
PS C:\ > $a = Get-Item '.\Downloads\My_File.txt' PS C:\ > $a.LastWriteTime = "06/25/2016 8:00 AM"
PS C:\ > Get-WindowsFeature Hyper-V*
PS C:\ > Install-WindowsFeature Hyper-V -Restart -IncludeManagementTools
PS C:\ > Get-Module
PS C:\ > Get-Command -Module Hyper-V
PS C:\ > Rename-Computer NewName -Restart
PS C:\ > Get-WmiObject win32_product | Select-Object -Property Name,Version | Export-Csv -Path c:\My_Programs_List.csv
PS C:\ > Get-Service | Where-Object { $_.Status -eq "Running" } | Select-Object Status,Name,DisplayName | Export-Csv c:\Services_List.csv
PS C:\ > Get-NetIPAddress
PS C:\ > Get-NetIPConfiguration
PS C:\ > Get-NetIPInterface
PS C:\ > New-NetIPAddress -InterfaceAlias "InterfaceAlias" -IPAddress 192.168.1.10 -PrefixLength 24 -DefaultGateway 192.168.1.254 -AddressFamily IPv4 PS C:\ > Set-DnsClientServerAddress -InterfaceAlias "InterfaceAlias" -ServerAddresses 192.168.1.254
PS C:\ > Remove-NetIPAddress -InterfaceAlias "InterfaceAlias"
PS C:\ > Remove-NetIPAddress -InterfaceAlias "InterfaceAlias" -DefaultGateway 192.168.1.254
PS C:\ > Get-NetConnectionProfile
PS C:\ > Set-NetConnectionProfile -InterfaceAlias Ethernet2 -NetworkCategory private
PS C:\ > Set-NetConnectionProfile -InterfaceIndex 10 -NetworkCategory private
Contact :