You are on page 1of 3

UEE40111 Certificate IV in Computer Systems

Net Admin Fundamentals 2


Units: ICANWK403A, ICANWK402A, UEENEED104A, ICANWK409A

336108405
Setup
1) PowerShell Promt
a. Start a ServerA (or another Windows Server 2012 R2 virtual machine that is a domain
controller it probably doesnt matter if it is a DC for earlier exercises, but it will later). You
may want to install guest additions so that you can cut and paste to your VM.
b. Signon as Superman
c. Run Windows PowerShell ISE as administrator
or
You could use just the PowerShell command line, plus an editor like notepad++, note if your
scripts are not local then also run: set-executionpolicy unrestricted
2) Join a few client computers to the domain. You can use any earlier client VMs, eg MELPC01, PARTPC,
PC107.
3) Enable Windows Remoting on the clients.
a. Either use Group Policy: http://www.grouppolicy.biz/2014/05/enable-winrm-via-group-policy/
b. Or execute the following PowerShell command as admin on each client:
Enable-PSRemoting Force
c. If you are worried this is a bad idea, read: https://www.penflip.com/powershellorg/secrets-ofpowershell-remoting/blob/master/powershell-remoting-and-security.txt

(note in this worksheet, use the names of your VMs instead of


PartsPC etc)

4) Test remoting

a. Execute the following command from the server to test each client is working:
Invoke-command ComputerName PC107,PartsPC ScriptBlock {Get-Date}

Exercise
5) Execute the following command in PowerShell, and paste the command and its output here:
Invoke-Command -ScriptBlock {Get-EventLog system -Newest 10}

6) Execute the following command in PowerShell, and paste the command and its output here:
Invoke-Command ComputerName PartsPC -ScriptBlock {Get-EventLog system -Newest 10}

Note: the computer you specify needs to be on for this to work.

Page 1 of 3

UEE40111 Certificate IV in Computer Systems


Net Admin Fundamentals 2
Units: ICANWK403A, ICANWK402A, UEENEED104A, ICANWK409A

336108405
7) Execute the following command in PowerShell, and paste the command and its output here:
Invoke-Command ComputerName PartsPC -ScriptBlock {(get-host).version}

8) Execute the following command in PowerShell, and paste the command and its output here:
Invoke-Command ComputerName PartsPC -ScriptBlock {Get-Process}

9) Execute the following command in PowerShell, and paste the command and its output here:
Invoke-Command ComputerName PartsPC -ScriptBlock {Get-NetIPAddress | Format-Table}

10) Execute the following command in PowerShell, and paste the command and its output here:
Invoke-Command ComputerName PartsPC -ScriptBlock {Get-WmiObject ComputerName . Class
Win32_Volume | format-table auto DriveLetter,Label,Capacity,FreeSpace }

Page 2 of 3

UEE40111 Certificate IV in Computer Systems


Net Admin Fundamentals 2
Units: ICANWK403A, ICANWK402A, UEENEED104A, ICANWK409A

336108405
11) Follow the blog http://blogs.msmvps.com/russel/2014/11/26/getting-the-free-disk-space-of-remotecomputers/ until you are outputting disk utilization as a percentage.
Paste your commands and output here:
Get-WmiObject ComputerName partspc Class Win32_Volume `
| ft auto DriveLetter,`
Label,`
@{Label=Free(GB);Expression={{0:N0} F ($_.FreeSpace/1GB)}},`
@{Label=%Free;Expression={{0:P0} F ($_.FreeSpace/$_.Capacity)}}

12) Execute the following command in PowerShell, and paste the command and its output here:
Test-Connection -ComputerName PC107,PartsPC -Count 3

Note: the firewall on the remote computer will need to allow ping

Signof
Position
Systems
Programmer
(student)
Client
(instructor)

Name & Student


Id

Signature

Date

Ahmad HIJAZI
H201405293

17/09/2015

Nathaly Conlan

17/09/2015

Page 3 of 3

You might also like