Some more Powershell Commands

 

Add-ADPrincipalGroupMembership

Add-ADPrincipalGroupMembership

Adds a member to one or more Active Directory groups.

Add-DhcpServerv6Reservation

Add-DhcpServerv6Reservation

Adds an IPv6 Reservation to an IPv6 prefix or scope.

Configure-SMRemoting.exe

Configure-SMRemoting.exe -enable

Enable Server Manager remote management by using Windows PowerShell

From
http://technet.microsoft.com/en-us/library/hh921475.aspx
:

“To enable Server Manager remote management by using Windows PowerShell

On the computer that you want to manage remotely, do one of the following
to open a Windows PowerShell session with elevated user rights.

  • On the Windows desktop, right-click Windows PowerShell on the
    taskbar, and then click Run as Administrator.
  • On the Windows Start screen, right-click Windows PowerShell, and
    then on the app bar, click Run as Administrator.

Type the following, and then press Enter to enable all required firewall
rule exceptions.

Configure-SMRemoting.exe -enable

Enable-NetAdapterBinding

Enable-NetAdapterBinding

Enables a binding to a network adapter. Can be used to enable Windows Network
Virtualization Filter Driver in Hyper-V server 2012.

Enable-NetFirewallRule

Enable-NetFirewallRule

Enables a previously disabled firewall rule. Can be used to enable the
view of the event logs on another server.

Enable-VMResourceMetering

Enable-VMResourceMetering

Collects resource utilization data for a virtual machine or resource pool.

Install-ADDSDomain

Install-ADDSDomain

Installs a new Active Directory domain configuration.

Install-ADDSDomainController

Install-ADDSDomainController

Installs a domain controller in Active Directory.

Install-WindowsFeature

Install-WindowsFeature

Installs one or more roles, role services, or features on either the local or a specified remote server that is running Windows Server 2012 R2. It replaces Add-WindowsFeature on former OS.

Rename-ADObject

Rename-ADObject

Changes the name of an Active Directory object.

Set-ADAccountControl

Set-ADAccountControl

Modifies user account control (UAC) values for an Active Directory account.
Can also be used to disable a computer account, prevent a user from changing his password.

Set-ADGroup

Set-ADGroup

Modifies an Active Directory group. Can modify certain parameters, such as ManagedBy and others.

Set-AppLockerPolicy

Set-AppLockerPolicy

Sets the AppLocker policy for the specified Group Policy object (GPO). With
the merge parameter other policys can be merged.

Set-DnsClientServerAddress

Set-DnsClientServerAddress

Sets DNS server addresses associated with the TCP/IP properties on an
interface.

Set-GPPermissions

Set-GPPermissions

Grants a level of permissions to a security principal (i.e. User) for one GPO
or all the GPOs in a domain.

Set-NetFirewallRule

Set-NetFirewallRule

Modifies existing firewall rules.

Set-User

Set-User

Use the Set-User cmdlet to modify user attributes in Active Directory.

Powershell and background jobs

Get-ScheduledJob

manage scheduled jobs

Start-Job

start background jobs

Suspend-Job

pause background jobs

Remove-Job

delete background jobs

Did you like the article? Then I'm happy if you like and share it.
Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *