troubleshooting Question

Explain Powershell Command

Avatar of jskfan
jskfanFlag for Cyprus asked on
Powershell
6 Comments1 Solution109 ViewsLast Modified:
Explain Powershell Command

I have this Powershell code, I would like to have an Expert explain it. some of it is clear , some of it not sure what it does.
for instance:

 %
$env:temp

Thank you.



import-csv C:\CSVFILE.csv | % { Invoke-Command -ComputerName $($_.COMPUTERNAME) -ScriptBlock { copy "\\server\share\regFile.reg" $env:temp ;  reg.exe import $env:temp\regFile.reg } 
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros