You are on page 1of 3

70-410 PowerShell Commands

To get a listing of all the users and their last logon date, you use the following command.
Get-ADUser -Filter * -Properties "LastLogonDate" |sort-object -property
lastlogondate -descending

To add a new authorization rule to Windows PowerShell Web Access authorization rule.
Add-PswaAuthorizationRule

To Specify the BranchCache computer authentication mode


Set-BCAuthentication

To configure the Windows PowerShell Web Access web Application in IIS.


Install-PswaWebApplication

To uninstalls the Windows PowerShell ISE


Uninstall-WindowsFeature PowerShell-ISE

How to manage one Server from another Server by using Server Manager
Run the Confiqure-SMRemoting.ps1script
Run the Set-ExecutionPolicycmdlet

Windows PowerShell cmdlet that activates firewall rules


Enable-NetFirewallRule

Which cmdlet imports the settings from a GPO backup into a specified target GPO.
New-GPO cmdlet and the Import- GPO cmdlet

PowerShell cmdlet that adds a primary zone to a DNS server.


Add-DnsServerPrimaryZone

PowerShell that changes forwarder settings on a DNS server


SET-DNSServerForwarder

PowerShell cmdlet that sets one or more IP addresses for DNS servers

© 2015 StormWind LLC. All rights reserved. Reproduction of part or all of the contents of this
document in any form is expressly prohibited other than for individual use only and may not be recopied
and/or shared with a third party.
Set-DNSclientServerAddresscmdlet

Modifies DNS Active Directory settings.


Set-DNSServerDSSetting

PowerShell commands to capture all of the inbound and outbound traffic


Get-VM "Server1" | Set-VMNetworkAdapter -PortMirroring Source
Get-VM "Server2" | Set-VMNetworkAdapter -PortMirroring Destination

PowerShell cmdlet that configures computers to receive Windows PowerShell remotely


Enable PSRemoting

PowerShell cmdlet that shows the amount of system resources used by virtual machine
Enable-VMResourceMetering cmdlet
Install the Windows Network Virtualization Filter Driver for adapters
Enable-NetAdapterBinding

PowerShell cmdlet that creates a new Active Directory service account


New- ADServiceAccountcmdlet

PowerShell cmdlet that shrinks the size of a vhd file


Convert-VHD

PowerShell cmdlet to Install a Windows Feature


Install WindowsFeature

PowerShell cmdlet that removes the specified NIC team from the host
Remove-NetLbfoTeam

Installs GUI onto a Server Core System


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

PowerShell cmdlet that modifies an Active Directory computer object


Set-ADComputer

PowerShell that installs a domain controllers


AD DS Deployment

© 2015 StormWind LLC. All rights reserved. Reproduction of part or all of the contents of this
document in any form is expressly prohibited other than for individual use only and may not be recopied
and/or shared with a third party.
PowerShell cmdlet that ensures all of the Web servers have the latest configurations
Start-DcsConfiguration

© 2015 StormWind LLC. All rights reserved. Reproduction of part or all of the contents of this
document in any form is expressly prohibited other than for individual use only and may not be recopied
and/or shared with a third party.

You might also like