Powershell Commands

Submitted by: Submitted by

Views: 91

Words: 438

Pages: 2

Category: Science and Technology

Date Submitted: 02/16/2015 05:00 PM

Report This Essay

70-410 course

Powershell commands

Unit 1

None

Unit 2

Powershell.exe

In PowerShell:

Uninstall-WindowsFeature –Name Web-Server

Uninstall-WindowsFeature –Name Print-Services

Uninstall-WindowsFeature –Name GPMC

Uninstall-WindowsFeature –Name Windows-Server-Backup

Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart

Unit 3

Question 3

New-Partition –DiskNumber 3 –DriveLetter G –Size 10GB Format-Volume –DriveLetter G –FileSystem NTFS

Challenge

Remove-VirtualDisk –FriendlyName data1

Remove-StoragePool –FriendlyName pool1

Remove-Partition –DriveLetter g

Remove-Partition –DriveLetter f

Remove-Partition –DriveLetter e

Unit 4

Challenge

New-SmbShare –Name Xfer –Path c:\Users –FullAccess “adatum\Domain Admins” –ReadAccess “adatum\Domain Users”

Unit 7

Challenge 1

New-VM -Name "Vmachine2" -NewVHDPath Vmachine2.vhdx

–MemoryStartupBytes 512MB –Generation 2 –NewVHDSizeBytes 127GB

Challenge 2

Set-VMMemory Vmachine2 –DynamicMemoryEnabled $true –StartupBytes 256MB –MinimumBytes 128MB –MaximumBytes 480MB –Buffer 50 –Priority 100

Unit 9

Question 3

New-VMSwitch

-Name “Isolated Network”

–SwitchType Private

Add-VMNetworkAdapter

–VMName Vmachine6

–Name Private6

–SwitchName “Isolated Network”

Add-VMNetworkAdapter

–VMName Vmachine5

–Name Private5

–SwitchName “Isolated Network”

Unit 10

Challenge

Get-NetIPInterface

New-NetIPAddress –InterfaceIndex 16 -IPAddress 192.168.75.67 -PrefixLength 28

New-NetIPAddress –InterfaceIndex 16 –IPAddress fd00::0015:5dff:fe01:01C1 –PrefixLength 64 –AddressFamily IPv6

Set-DNSClientServerAddress –InterfaceIndex 16 -ServerAddresses 192.168.75.65

Remove-NetIPAddress –IPAddress 10.0.0.3

Unit 13

Lab Challenge...