[PS] Write-host and tips

Write-host  (Alias: write)

Example for foreground color and background color:

Write-host “text” -ForegroundColor red -Background Color white

 

  • Using foreground and background will break a variable writing stored

Powershell has a built in color scheme

 

Write-warning (yellow on black)
Write-error (red on black)

 

 

epic
Author Details
Contributer and Author Enterprise Communications Engineer Hi Epic

testest test 

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments