Avatar of compdigit44
compdigit44

asked on 

PowerShell Send all resullts to one file

I am trying to write a simple Powershell script which I can run to query the environment and look for the presence of a directory

Here is what I am looking for as as example:

  $env:COMPUTERNAME ; Test-Path c:\users ;get-date

I would like all results display on the powershell console and append to a file the with each workstation result listed on one line each
Powershell

Avatar of undefined
Last Comment
oBdA

8/22/2022 - Mon