//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// DATAPIPE WINDOWS POWERSHELL PSM //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// FUNCTIONS AS OF THIS RELEASE: DPAWSGetRegionCode - Displays the region code of an EC2 instance. DPAWSGetRegionName - Displays the region name of an EC2 instance. DPAWSSetTimezone - Automatically changes the timezone of an EC2 instance to match the region. DPDisbaleWindowsFW - Disables the private/public/domain Windows Firewall profiles. DPEnableMultipleRDP - Enables multiple RDP sessions. DPGetHBAInfo - Displays HBA information for physical servers. DPInstallNET452 - Installs .NET 4.5.2. DPInstallWindowsUpdates - Installs Windows Updates. DPJoinDomain - Joins the server to a domain. DPLOG - Logging function which all included functions leverage. DPNew2012DC - Installs AD services and promotes the server to the domain (2012 only). DPRenameServer - Renames a server. DPSetDNSServers - Sets up to 6 DNS servers. DPWinAwsCommands - Displays a list of all commands included in the PSM. DPWinAwsVersion - Displays the version # of the PSM. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// CHANGE LOG: V1.1.7 - 5/12/2015 CHANGE FUNCTION - [DPAWSGetRegionName] - Added AWS region - EU (Frankfurt) eu-central-1 CHANGE FUNCTION - [DPAWSSetTimezone] - Added timezone for eu-central-1 (W. Europe Standard Time) V1.0.5/V1.0.6 - 9/22/14 - 9/23/14 NEW PSM NAME - Changed the PSM name from: DPWinAws.psm1 to: DPWindowsPSM.psm1 ADDED FEATURE - PSM now checks for updates on toolkit. ADDED FUNCTION - [DPWindowsPSMUpdate] - Downloads the lates PSM and performs an in-place upgrade. CHANGE FUNCTION - [Commands] - Changed function name from COMMANDS to DPWinAWSCommands. CHANGE FUNCTION - [DPSetDNSServers] - Enabled logging by default. CHANGE FUNCTION - [DPJoinDomain] - Enabled logging by default. CHANGE FUNCTION - [DPAWSSetTimezone] - Enabled logging by default. CHANGE FUNCTION - [DPInstallNET452] - V1.0.1 - Updated download file code to Invoke-webRequest. ADDED FUNCTION - [DPWinAWSVersion] - Displays the PSM version. ADDED FUNCTION - [DPGetHBAInfo] - Shows HBA info for a physical server, including drivers and WWNs. ADDED FUNCTION - [DPEnableMultipleRDP] - Enables multiple RDP sessions. ADDED FUNCTION - [DPAWSSetNTP] - Detects AWS region and syncs with local DP NTP server. Also sets NTP mode. ADDED FUNCTION - [DPGetOSVersion] - Detects OS version. ADDED FUNCTION - [DPInstallNewADForest] - Installs a new 2012 AD Forest. V1.0.4 - 9/17/14 ADDED FUNCTION - [DPInstallNET452] - Install .NET 4.5.2. ADDED FUNCTION - [DPDisbaleWindowsFW] - Disables Windows Firewall (public/private/domain profiles). V1.0.3 - 9/16/14 ADDED FUNCTION - [DPNew2012DC] - Install AD services and promotes the server to the domain. FIXED FUNCTION - [DPInstallWindowsUpdates] - Removed old log commands which were no longer needed. V1.0.2 - 9/15/14 ADDED FUNCTION - [DPJoinDomain] - Joins servers to AD domains. V1.0.1 - 9/13/14 ADDED FEATURE - Version, date and a message on how to list available commands displays once the module is imported. ADDED FUNCTION - [Commands] - Displays a list of commands. ADDED FUNCTION - [DPSet-DNSServers] - Sets the server's DNS addresses. . //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ERROR CODES: DPInstallWindowsUpdates 1231 - Cannot ping the public internet. DPRenameServer 52 - The requested server name is already in use. 1010 - Could not verify the server name change from the registry. DPAWSSetTimezone 1011 - Timezone change was not verified. DPSetDNSServers 1200 - Could not match the supplied Base IP address to a NIC. 1201 - DNS servers failed to be configured. DPJoinDOmain 1355 - Could not contact the domain. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////