Friday, March 27, 2015

Microsoft 70-410 Installing and Configuring Windows Server 2012 Powershell Commands Study Guide

Here are the list of Powershell commands I came across while studying for the Microsoft 70-410 test.

I have made a google docs spreadsheet of these, and that link is accessible here for a more convenient format. This is not an exhaustive list, but should help with test crunch

CommandDescription
Enable-NetFirewallRuleenables a disabled firewall rule
Get-NetFirewallProfileretrieve information that is presented on the Windows Firewall with Advanced Security Properties MMC Console, with the tabs for Domain, Private and Public profiles.
Get-NetFirewallSettingretrieve global firewall settings. Does not matter what profile is in use.
Set-NetFirewallInterfaceFiltermodifies interfaces attached to firewall rules
Get-NetFirewallRulegets firewall rules from a computer. -policystore and grab all rules applied
Disable-NetFirewallRuleDisables an existing firewall rule, you can use -displayname to specifiy the rule
Get-NetFirewallAddressFiltergets the filtered ip addresses assigned to firewall rules
Remove-NetFirewallRuledeletes one or more firewall rules from policy store
Set-NetFirewallAddressFilterchanges the local or remote ip address filters assigned to a rule
Copy-NetFirewallRulecopy a firewall rule as well as any associated filters to a policy store. This will make copy of all firewall to the new policy store.
New-NetFirewallRulecreates a firewall rule that can be inbound or outbond
Set-NetFirewallRulechanges the existing firewall rule
Set-NetFirewallSettingchanges properties that apply to firewall and is not dependent on profile, it is a global setting
Show-NetFirewallRuledisplays firewall rules in a policy store
Rename-NetFirewallRuleRenames a firewall rule
Set-NetFirewallProfilechange profile level settings like enabling/disabling profile or changing logging for profiles including domain, public, private, and global
New-VHDCreates a New VHD in Hyper-V environments
Set-VMHostwith resourcemetering save interval parameter can specify how often data that tracks resources will be saved
create vdisk diskpartCreates a new virtual disk to be added to a system, it still must be initialized, partioned, formatted and assigned
New-VirtualDiskUsed for managing virtual disk properties in the Storage Spaces Disk Pool
Rename-VMUsed to change a VM name in Hyper-V manager
Set-VMchanges virtual machine settings, for example memory, cpu, autostart and autostop details
Set-VHDmanages VHD properties like physical sector size or parent VHD files
Measure-VMDesigned for reporting resource utilization data for one or more VMs, but it must first be enable at the host level
Rename-ItemCan be used to rename VHD's and other files
Enable-VMResourceMeteringdesigned to enable resource metering for a specific VM
Get-Countergets the memory from performance counters which can only get memory usage by OS or maximum amount configured, not what Hyper-V has allocated
Get-VMMemoryshows the VM's configured memory not actaul usage
Add disk diskpartCreates a mirror of a simple volume
Set-ItemCan be used to do things like add servers to a managed servers trusted host list
Set-ItemPropertycan be used to do things like change or add registry entries to overide UAC to permit access
Add-DNSserverResourceRecordcreates resource records inside a zone
Add-DNSServerPrimaryZoneCreates a new primary zone, For example "GlobalNames" which can replace WINS
Add-DNSserverForwarderadds forwarders to forward dns queries to other zones
Add-DNSserverResourceRecordDScreates DNSSEC resource records inside a zone
Disable-ADAccountdisables an ad account
Enable-ADAccountenables an ad account
Set-ADAccountExpirationsets an account expiration date
Set-ADuserconfigure properties of the account
remove-AdUserremoves Ad user accounts
Clear-ADAccountExprationcan set a user account to have no expiration date
Set-AddAccountPasswordconfigures the password of an ad account
Unlock-AdAccountunlock and ad user whose account has been locked out
Get-AdComputerUse to get information about the computer, for example -lastlogontimestamp parameter could be used to find the last time the computer logged on to the network or did something like reboot *****This was a test question for me based on this and dsquery -o
Get-ADGroupMembergets ad members in a specific group
Add-ADgroupMemberadd ad members to a group
Get-ADGroupuse to check for groups that match certain input criteria
Set-AdComputerchanges properties of a computer object like sAMAccountName, DNSHostname and Description
Set-ADObjectmodifies Active Directory Object properties and can do things like enable the global catalog
Set-ADDomainchanges properties of the domain such as DNS suffix, managed by or last logon replication interval
Set-ADOrganizationalUnitmodifies the attribute properties of an OU
new-netroutedefine interface to advertise ipv6 address out of and add to routing table
set-netipinterfaceAllow the interface to advertise the IPv6 address out of the interface
Set-NetIsatapConfigurationDefine the router and enable isatap on that router because it is disabled by default, also enables isatap on a client
Get-NetIPAddressget interfaces that is being used by ISATAP
Restart-ServiceCan be used to restart services like dns
Set-AppLockerPolicychange the properties of an existing applocker policy and can merge two policy with the -merge parameter
Set-AppLockerFileInformationgets applocker info from file or event logs
Get-AppLockerPolicygets an existing applocker policy
Import-GPOimports GPOs that have been backed up into GPO
New-GPOCreate a new GPO policy tath could include an applocker policy
Test-AppLockerPolicyTest whether specific files are allowed on local computer for specific user
DSCConfigurationNameCreatedAsAFunctioncall this configuraiton name with the -machinename parameter specified to to create the folder and MOF file that will be used in the DSCConfiguration
Start-DscConfigurationcalls the MOF file that will apply the DSC configuration
Test-DscConfigurationwill compare current standard to dsc drift
Set-GPPermissionchange the permissions of group policy objects in Active Directory
Get-GPPermissionretrieve permissions on existing group policies
Set-GPLinkused to link or unlink group policy objects
Set-GPInheritancesets an inheritance link for group policy objects
uninstall-WindowsFeatureuninstalls a windows feature, use the remove option to delete the feature from the harddisk
Install-WindowsFeature (Server-Gui-Mgmt-Infra)Installs the minimal server interface including Server Manager, MMC, Powershell and command line
Install-WindowsFeature (Server-Gui-Shell)depends on minimal interface and includes Desktop, Start Screen, Explorer, and Internet Explorer
Install-ADDSDomainused to install a new AD domain
Add-ADDSReadOnlyDomainControllerAccountIt is used to create a read-only domain controller
Install-ADDSDomainControllerinstalls a domain controller in a new or existing domain
Install-ADDSForestinstall a new AD forest
Add-VMNetworkAdapterACLapplies and ACL to traffic through a virtual machine network adapter
Add-PSWAAuthorizationRuleadds an authorization rule for the powershell web access gateway, inlcuding computers, users and credentials
Remove-PSWaAuthorizationRuleRemoves a specified rule from powershell web access gateway
Get-PswaAuthorizationRuleGets the poweshell web access gateway rules
test-PswaAuthorizationRuletest a rule to determine if a specific user or computer has access

No comments:

Post a Comment