write-host Questions
2
Solved
eg, if you execute this command in a powershell session
write-host 'hello' -ForegroundColor 'red' -BackgroundColor 'cyan'
resizing the window causes the background colour to fill the entire line:...
Bedell asked 9/2, 2021 at 17:12
2
Solved
I'm trying to write a small powershell script that does a few things
1) Parses Inbox items in my outlook
2) Searches for a RegEx string
3) Dumps the line that matches the RegEx string into a CSV
...
Avuncular asked 2/8, 2019 at 13:36
1
Solved
this is from VS code, also happens in PowerShell 7.3 in Windows Terminal
the code is this:
write-host "text text text" -ForegroundColor Magenta -BackgroundColor white
that's just for a...
Jacintojack asked 16/1, 2023 at 12:35
2
Is there any sane, reliable contract that dictates whether Write-Host is supported in a given PowerShell host implementation, in a script that could be run against any reasonable host implementatio...
Gaming asked 30/1, 2020 at 0:28
2
I'm wondering if it's possible to write some coloured-text in orange with Write-Host (or with another PowerShell Cmdlet).
It seems Orange is not an available color for the -ForegroundColor paramet...
Mont asked 28/1, 2015 at 8:21
1
Solved
Sorry if I'm being a dumb powershell noob, but what's wrong with jobs apparently being unable to write to the terminal? And how can I fix that?
# test.ps1
function myjob {
Write-Host "Hello, ...
Decoupage asked 15/1, 2022 at 19:46
3
Hello all and thanks for your time in advance;
I'm running into a slight issue.
I'm running a command and piping it into a variable so i can manipulate the output.
$variable = some command
thi...
Adenoidal asked 27/5, 2015 at 4:40
2
Solved
The txt file is just a bunch of UNC paths, i am trying to get a list of UNC paths from this text file put into another text file after the test-path is validated. it shows the validated paths on sc...
Idell asked 4/3, 2020 at 18:47
3
cmd/batch file could turn on and turn off "echo".
So in PowerShell, I have a bunch of "write-host" output, I want somewhere to turn on / off write-host for debugging convenience.
Does PowerShell h...
Elaterite asked 18/6, 2015 at 7:35
1
Solved
I am hashing all the files in one location, an origin folder, and writing the hashes to a variable and then doing the same to all the files in another location, a destination folder:
$origin = Get...
Stansbury asked 12/11, 2019 at 20:5
1
Solved
When I Write-Host from my .ps1 file I see:
Parentfolder >> ChildFolder
When I output to a file, I see:
ParentFolder
>>
ChildFolder
I am using a simple write-host ($childgroup.name...
Gleam asked 4/10, 2019 at 16:21
4
I am new to PowerShell and while doing some code I came through this thing.
While I use Write-Host and Write-Output to perform the same query, I get different results:
PS> Write-Output $PSVersi...
Vudimir asked 19/8, 2016 at 8:21
1
© 2022 - 2024 — McMap. All rights reserved.