Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

How to add log to this script?

$
0
0

All,

I am new to Powershell so please be kind.  I am creating a script that will call a .txt file with a list of specific pcs and then install a registry key on them.  I have this part working.  What I would like, is for it to output some kind of log to confirm which pcs received the reg keys and which didnt.  Is this possible?  

Thanks in advance,

Dustin

Text
Get-Content C:\pcs.txt
Start-Process reg -Argumentlist "import C:\Nautilus.reg"

Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>