OyvindLE
6/2/2016 - 11:25 AM

Nyttige powershell kommandoer

Nyttige powershell kommandoer

# Export HTML
Get-Service | ConvertTo-HTML -Property Name, Status > C:\services.htm

# Export CSV
Get-Service | Export-CSV c:\service.csv

# Write string 
Write-Host 'Something...'

# Change working dir
Set-Location C:\SomeFolder\