Professional Documents
Culture Documents
Get-Eventlog Get-Process Start-Process Stop-Process Get-ACL Set-ACL Restart-Computer Stop-Computer
Get-Eventlog Get-Process Start-Process Stop-Process Get-ACL Set-ACL Restart-Computer Stop-Computer
computer, it has a range of commands that can perform actions on remote computers:
Get-Eventlog
Get-Process
Start-Process
Stop-Process
Get-ACL
Set-ACL
Restart-Computer
Stop-Computer
You can even use PowerShell to connect to another computer, and then run whatever
commands you want on it. This is known as PowerShell remoting.
}
Scenario: Fullname Username Password
Your company wants a way to automate Mike Tyson mtyson KOmofo123
creation of new local user accounts in bulk,
rather than creating them manually. You
Connor cmgreggor ZoomInFU123
need to create a PowerShell script to do
McGreggor
this. Sample user accounts for testing are Alice Glass aglass DeathRay666
listed on the right.
A partial script has already been created, which reads the information from a CSV file. Can you finish the
script by adding in the New-LocalUser PowerShell command?