This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Deploy Multiple VMs to vCenter | |
.DESCRIPTION | |
VMs are deployed asynchronously based on a pre-configured csv file (DeployVM.csv) | |
.PARAMETER csvfile | |
Path to DeployVM.csv file with new VM info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Gets information of a port number | |
.DESCRIPTION | |
Function provides detailed information of port numbers, like - the service which use the port, Transport protocol and a small decsription. | |
.EXAMPLE | |
PS > Get-Port -Port 20,21,53 | |
Port Service Protocol Description | |
---- ------- -------- ----------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -Version 3.0 -Modules UpdateServices | |
<# | |
.SYNOPSIS | |
Accept License Agreements | |
.DESCRIPTION | |
Accept License Agreements for all Windows Server Update Services (WSUS) Updates | |
.PARAMETER Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creates PTR Records for all A Records in the specified -ZoneName. | |
# Uses a Class A Subnet for the reverse zone. | |
$computerName = 'dns-server01'; | |
# Get all the DNS A Records. | |
$records = Get-DnsServerResourceRecord -ZoneName 'zone.example.com' -RRType A -ComputerName $computerName; | |
foreach ($record in $records) | |
{ | |
# The reverse lookup domain name. This is the PTR Response. | |
$ptrDomain = $record.HostName + '.zone.example.com'; |