diff --git a/CommonScripts/Add-AdRemoteUserToLocalGroup.ps1 b/CommonScripts/Add-AdRemoteUserToLocalGroup.ps1 index 99e5604ad..ef078f621 100644 --- a/CommonScripts/Add-AdRemoteUserToLocalGroup.ps1 +++ b/CommonScripts/Add-AdRemoteUserToLocalGroup.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Add-AdRemoteUserToLocalGroups.ps1 -## Purpose: Add a user from another active directory domain to the local builtin groups indicated. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Add-AdRemoteUserToLocalGroups.ps1 +# Purpose: Add a user from another active directory domain to the local builtin groups indicated. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Add-DFSFolder.ps1 b/CommonScripts/Add-DFSFolder.ps1 index 889b3c4ef..0852828a4 100644 --- a/CommonScripts/Add-DFSFolder.ps1 +++ b/CommonScripts/Add-DFSFolder.ps1 @@ -1,12 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Add-DFSFolder.ps1 -## Purpose: Add a DFS folder. -## Version: 1.1 (26 Jun, 2008) -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Add-DFSFolder.ps1 +# Purpose: Add a DFS folder. +# Version: 1.1 (26 Jun, 2008) +# ############################################################################## param( diff --git a/CommonScripts/Add-Printer.ps1 b/CommonScripts/Add-Printer.ps1 index 6eb22f43c..2a36b75de 100644 --- a/CommonScripts/Add-Printer.ps1 +++ b/CommonScripts/Add-Printer.ps1 @@ -1,12 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Add-Printer.ps1 -## Purpose: Add a printer -## Version: 1.2 (20 Aug, 2008) -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Add-Printer.ps1 +# Purpose: Add a printer +# Version: 1.2 (20 Aug, 2008) +# ############################################################################## Param( diff --git a/CommonScripts/Change-DomainUserPassword.ps1 b/CommonScripts/Change-DomainUserPassword.ps1 index 2b981b23b..97a4240a1 100644 --- a/CommonScripts/Change-DomainUserPassword.ps1 +++ b/CommonScripts/Change-DomainUserPassword.ps1 @@ -1,15 +1,14 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: PromoteDomainController # Usage : Install ADDS feature on the server and promote it to DC. # Params : [string]$DomainName: The name of the domain. # [string]$AdminPwd : The password of the Administrator. # Remark : A reboot is needed after promoting to DC. -#----------------------------------------------------------------------------- +############################################################################## + Param ( diff --git a/CommonScripts/Check-ReturnValue.ps1 b/CommonScripts/Check-ReturnValue.ps1 index d65531f5a..5f28b7b71 100644 --- a/CommonScripts/Check-ReturnValue.ps1 +++ b/CommonScripts/Check-ReturnValue.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Check-ReturnValue.ps1 -## Purpose: Check return value of the previous operation and dump the error message and information. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Check-ReturnValue.ps1 +# Purpose: Check return value of the previous operation and dump the error message and information. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param( diff --git a/CommonScripts/Config-FileSharing.ps1 b/CommonScripts/Config-FileSharing.ps1 index d7ca674c3..9f007e579 100644 --- a/CommonScripts/Config-FileSharing.ps1 +++ b/CommonScripts/Config-FileSharing.ps1 @@ -1,12 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Config-FileSharing.ps1 -## Purpose: Enable/Disable the FileSharing. -## Version: 1.1 (26 Jun, 2008) -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Config-FileSharing.ps1 +# Purpose: Enable/Disable the FileSharing. +# Version: 1.1 (26 Jun, 2008) +# ############################################################################## param( diff --git a/CommonScripts/Create-AdUserWithGroupMembership.ps1 b/CommonScripts/Create-AdUserWithGroupMembership.ps1 index 6a18ca183..88c88e3d2 100644 --- a/CommonScripts/Create-AdUserWithGroupMembership.ps1 +++ b/CommonScripts/Create-AdUserWithGroupMembership.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Create-AdUserWithGroupMembership.ps1 -## Purpose: Create a user in active directory local domain and add it to groups indicated. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Create-AdUserWithGroupMembership.ps1 +# Purpose: Create a user in active directory local domain and add it to groups indicated. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Create-DFSNamespace.ps1 b/CommonScripts/Create-DFSNamespace.ps1 index 01e022734..f8908104f 100644 --- a/CommonScripts/Create-DFSNamespace.ps1 +++ b/CommonScripts/Create-DFSNamespace.ps1 @@ -1,12 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Create-DFSNamespace.ps1 -## Purpose: Create a DFS namespace and add a DFS folder. -## Version: 1.1 (26 Jun, 2008) -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Create-DFSNamespace.ps1 +# Purpose: Create a DFS namespace and add a DFS folder. +# Version: 1.1 (26 Jun, 2008) +# ############################################################################## param( diff --git a/CommonScripts/Create-Folder.ps1 b/CommonScripts/Create-Folder.ps1 index a23cf1b54..98c42096b 100644 --- a/CommonScripts/Create-Folder.ps1 +++ b/CommonScripts/Create-Folder.ps1 @@ -1,12 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Create-Folder.ps1 -## Purpose: Create a new folder -## Version: 1.1 (26 Jun, 2008]) -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Create-Folder.ps1 +# Purpose: Create a new folder +# Version: 1.1 (26 Jun, 2008]) +# ############################################################################## param( diff --git a/CommonScripts/Create-ManagedServiceAccount.ps1 b/CommonScripts/Create-ManagedServiceAccount.ps1 index 3f43197dd..36dba0737 100644 --- a/CommonScripts/Create-ManagedServiceAccount.ps1 +++ b/CommonScripts/Create-ManagedServiceAccount.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Create-ManagedServiceAccount.ps1 -## Purpose: Create a managed service account in active directory local domain -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Create-ManagedServiceAccount.ps1 +# Purpose: Create a managed service account in active directory local domain +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Create-SelfSignedCert.ps1 b/CommonScripts/Create-SelfSignedCert.ps1 index fff56f445..e55eb25a3 100644 --- a/CommonScripts/Create-SelfSignedCert.ps1 +++ b/CommonScripts/Create-SelfSignedCert.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Create-SelfSignedCert.ps1 -## Purpose: Create self signed certificate for server authentication. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Create-SelfSignedCert.ps1 +# Purpose: Create self signed certificate for server authentication. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Create-ShadowCopy.ps1 b/CommonScripts/Create-ShadowCopy.ps1 index c59b64eb6..02bd095c9 100644 --- a/CommonScripts/Create-ShadowCopy.ps1 +++ b/CommonScripts/Create-ShadowCopy.ps1 @@ -1,12 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Create-ShadowCopy.ps1 -## Purpose: Create a shadow copy. -## Version: 1.1 (26 Jun, 2008) -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Create-ShadowCopy.ps1 +# Purpose: Create a shadow copy. +# Version: 1.1 (26 Jun, 2008) +# ############################################################################## param( diff --git a/CommonScripts/CreateLocalSideForestTrust.ps1 b/CommonScripts/CreateLocalSideForestTrust.ps1 index 605efffed..a6e76ece6 100644 --- a/CommonScripts/CreateLocalSideForestTrust.ps1 +++ b/CommonScripts/CreateLocalSideForestTrust.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. Param ( diff --git a/CommonScripts/Disable-ICMPRedirect.ps1 b/CommonScripts/Disable-ICMPRedirect.ps1 index 1b1b240af..b5f01f0de 100644 --- a/CommonScripts/Disable-ICMPRedirect.ps1 +++ b/CommonScripts/Disable-ICMPRedirect.ps1 @@ -1,12 +1,11 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------- +############################################################################## # Function: Disable-ICMPRedirect # Remark : Disable ICMP Redirect -#------------------------------------------------------------------------------- +############################################################################## + $regKey = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" if(Test-Path -Path $regKey) { diff --git a/CommonScripts/Disable-IPv6.ps1 b/CommonScripts/Disable-IPv6.ps1 index 183a98ec7..2215d5491 100644 --- a/CommonScripts/Disable-IPv6.ps1 +++ b/CommonScripts/Disable-IPv6.ps1 @@ -1,14 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: Disable-IPv6 # Usage : Disable IPv6 for this machine # Params : # Remark : -#----------------------------------------------------------------------------- +############################################################################## $Adapter = Get-NetAdapter $Name = $Adapter.Name diff --git a/CommonScripts/Disable_Firewall.ps1 b/CommonScripts/Disable_Firewall.ps1 index 23cbc7acf..df1717566 100644 --- a/CommonScripts/Disable_Firewall.ps1 +++ b/CommonScripts/Disable_Firewall.ps1 @@ -1,7 +1,6 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + #Disable Firewall netsh advfirewall set allprofiles state off diff --git a/CommonScripts/Enable-AdRecyleBin.ps1 b/CommonScripts/Enable-AdRecyleBin.ps1 index 3b2780e61..fe613358c 100644 --- a/CommonScripts/Enable-AdRecyleBin.ps1 +++ b/CommonScripts/Enable-AdRecyleBin.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Enable-AdRecycleBin.ps1 -## Purpose: Enable the recyle bin feature for Active Directory Domain Service. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Enable-AdRecycleBin.ps1 +# Purpose: Enable the recyle bin feature for Active Directory Domain Service. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/EnableRemoteAccess.ps1 b/CommonScripts/EnableRemoteAccess.ps1 index 50a58fcdd..5f5c072ec 100644 --- a/CommonScripts/EnableRemoteAccess.ps1 +++ b/CommonScripts/EnableRemoteAccess.ps1 @@ -1,11 +1,10 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## -#------------------------------------------------------------------------------- +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## # Function: EnableRemoteAccess # Usage : Enable RemoteAccess feature. -#------------------------------------------------------------------------------- +############################################################################## Import-Module ServerManager Add-WindowsFeature RemoteAccess -IncludeAllSubFeature -ErrorAction Stop ##-IncludeManagementTools diff --git a/CommonScripts/Execute-RemoteScript.ps1 b/CommonScripts/Execute-RemoteScript.ps1 index 921a58c5b..0b6ac060c 100644 --- a/CommonScripts/Execute-RemoteScript.ps1 +++ b/CommonScripts/Execute-RemoteScript.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Execute-RemoteScript.ps1 -## Purpose: Execute script on a remote machine. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Execute-RemoteScript.ps1 +# Purpose: Execute script on a remote machine. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Find-PtfConfigFiles.ps1 b/CommonScripts/Find-PtfConfigFiles.ps1 index 5263f3c0c..b0460480d 100644 --- a/CommonScripts/Find-PtfConfigFiles.ps1 +++ b/CommonScripts/Find-PtfConfigFiles.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Find-PtfConfigFiles.ps1 -## Purpose: Find PtfConfig files in both \bin and source\server\testcode\testsuite folders. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Find-PtfConfigFiles.ps1 +# Purpose: Find PtfConfig files in both \bin and source\server\testcode\testsuite folders. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Get-AdLdsInstanceId.ps1 b/CommonScripts/Get-AdLdsInstanceId.ps1 index c34d955f8..7927fd1f4 100644 --- a/CommonScripts/Get-AdLdsInstanceId.ps1 +++ b/CommonScripts/Get-AdLdsInstanceId.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Get-AdLdsInstanceId.ps1 -## Purpose: Get domain objectGuid and log it to system drive. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Get-AdLdsInstanceId.ps1 +# Purpose: Get domain objectGuid and log it to system drive. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Get-AvailablePort.ps1 b/CommonScripts/Get-AvailablePort.ps1 index 80b2a9e89..f95a19c8f 100644 --- a/CommonScripts/Get-AvailablePort.ps1 +++ b/CommonScripts/Get-AvailablePort.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param ( diff --git a/CommonScripts/Get-CertHash.ps1 b/CommonScripts/Get-CertHash.ps1 index 4996179df..9c59613f9 100644 --- a/CommonScripts/Get-CertHash.ps1 +++ b/CommonScripts/Get-CertHash.ps1 @@ -1,15 +1,13 @@ -############################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Get-CertHash.ps1 -## Purpose: Get the cert hash of a certificate in the store. -## Version: 1.0 (14 July, 2008) -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Get-CertHash.ps1 +# Purpose: Get the cert hash of a certificate in the store. +# Version: 1.0 (14 July, 2008) +# ############################################################################## param( diff --git a/CommonScripts/Get-DomainControllerParameters.ps1 b/CommonScripts/Get-DomainControllerParameters.ps1 index 46588c542..9bbc3c983 100644 --- a/CommonScripts/Get-DomainControllerParameters.ps1 +++ b/CommonScripts/Get-DomainControllerParameters.ps1 @@ -1,16 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Sripting -## File: SetAutoLogonWithDomainAccount.ps1 -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2012 -## ############################################################################## +# +# Microsoft Windows Powershell Sripting +# File: SetAutoLogonWithDomainAccount.ps1 +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2012 +# +############################################################################## + Param ( [Parameter(Mandatory=$true)] diff --git a/CommonScripts/Get-DomainGuid.ps1 b/CommonScripts/Get-DomainGuid.ps1 index 77fa50eaf..84b08a16e 100644 --- a/CommonScripts/Get-DomainGuid.ps1 +++ b/CommonScripts/Get-DomainGuid.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Get-DomainGuid.ps1 -## Purpose: Get domain objectGuid and log it to system drive. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Get-DomainGuid.ps1 +# Purpose: Get domain objectGuid and log it to system drive. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Get-DomainNetbiosName.ps1 b/CommonScripts/Get-DomainNetbiosName.ps1 index bbc18804a..a24030260 100644 --- a/CommonScripts/Get-DomainNetbiosName.ps1 +++ b/CommonScripts/Get-DomainNetbiosName.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Get-DomainNetbiosName.ps1 -## Purpose: Get domain Netbios name and log it to system drive. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Get-DomainNetbiosName.ps1 +# Purpose: Get domain Netbios name and log it to system drive. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Get-DomainSid.ps1 b/CommonScripts/Get-DomainSid.ps1 index 585155616..3646c1079 100644 --- a/CommonScripts/Get-DomainSid.ps1 +++ b/CommonScripts/Get-DomainSid.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Get-DomainSid.ps1 -## Purpose: Get domain objectSid and log it to system drive. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Get-DomainSid.ps1 +# Purpose: Get domain objectSid and log it to system drive. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Get-ForestFuncLvl.ps1 b/CommonScripts/Get-ForestFuncLvl.ps1 index 81bedbbed..78d2c1584 100644 --- a/CommonScripts/Get-ForestFuncLvl.ps1 +++ b/CommonScripts/Get-ForestFuncLvl.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Get-ForestFuncLvl.ps1 -## Purpose: Get forest functional level and log it to system drive. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Get-ForestFuncLvl.ps1 +# Purpose: Get forest functional level and log it to system drive. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Get-InstalledScriptPath.ps1 b/CommonScripts/Get-InstalledScriptPath.ps1 index 87ea693da..26ce9e4eb 100644 --- a/CommonScripts/Get-InstalledScriptPath.ps1 +++ b/CommonScripts/Get-InstalledScriptPath.ps1 @@ -1,14 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------- +############################################################################## # Function : Get-InstalledScriptPath.ps1 # Usage : Get the script path in the installed msi directory # and store this Information in the MSIInstalled.signal file # Parameter: $Name - Test Suite Name -#----------------------------------------------------- +############################################################################## Param( [parameter(Mandatory=$true)] diff --git a/CommonScripts/Get-OSVersion.ps1 b/CommonScripts/Get-OSVersion.ps1 index 414e2b0db..de8134ac7 100644 --- a/CommonScripts/Get-OSVersion.ps1 +++ b/CommonScripts/Get-OSVersion.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Get-OsVersion.ps1 -## Purpose: Get version of current operating system and log it to system drive. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Get-OsVersion.ps1 +# Purpose: Get version of current operating system and log it to system drive. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## param( diff --git a/CommonScripts/Get-OSVersionForADTests.ps1 b/CommonScripts/Get-OSVersionForADTests.ps1 index 3f493d550..c2988aba1 100644 --- a/CommonScripts/Get-OSVersionForADTests.ps1 +++ b/CommonScripts/Get-OSVersionForADTests.ps1 @@ -1,15 +1,13 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Get-OSVersionForADTests.ps1 -## Purpose: Get version of current operating system. -## Version: 1.1 (4 Aug, 2008) -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Get-OSVersionForADTests.ps1 +# Purpose: Get version of current operating system. +# Version: 1.1 (4 Aug, 2008) +# ############################################################################## param( diff --git a/CommonScripts/Get-OSVersionNumber.ps1 b/CommonScripts/Get-OSVersionNumber.ps1 index 6cdeb8f9f..306ef0ad6 100644 --- a/CommonScripts/Get-OSVersionNumber.ps1 +++ b/CommonScripts/Get-OSVersionNumber.ps1 @@ -1,10 +1,10 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## Purpose: Get OS version number. -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# Purpose: Get OS version number. +# ############################################################################## #---------------------------------------------------------------------------- diff --git a/CommonScripts/Get-Parameter.ps1 b/CommonScripts/Get-Parameter.ps1 index 89f1109ff..376d68954 100644 --- a/CommonScripts/Get-Parameter.ps1 +++ b/CommonScripts/Get-Parameter.ps1 @@ -1,10 +1,10 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## Purpose: Get Parameter which used in Protocol in XML file. -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# Purpose: Get Parameter which used in Protocol in XML file. +# ############################################################################## Param( diff --git a/CommonScripts/GetVMNameByComputerName.ps1 b/CommonScripts/GetVMNameByComputerName.ps1 index ae73401c0..adebc5579 100644 --- a/CommonScripts/GetVMNameByComputerName.ps1 +++ b/CommonScripts/GetVMNameByComputerName.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: GetVMNameByComputerName.ps1 -## Purpose: Get the hypervname of current vm from the test suite config file by the computer name. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: GetVMNameByComputerName.ps1 +# Purpose: Get the hypervname of current vm from the test suite config file by the computer name. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, and later. +# +############################################################################## Param ( diff --git a/CommonScripts/GetVmParameters.ps1 b/CommonScripts/GetVmParameters.ps1 index de784081e..7f4ec0876 100644 --- a/CommonScripts/GetVmParameters.ps1 +++ b/CommonScripts/GetVmParameters.ps1 @@ -1,9 +1,7 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +############################################################################## # # Microsoft Windows Powershell Script # File : GetVmParameters.ps1 @@ -17,6 +15,7 @@ # -ConfigFile : The config file from which parameters will # be read. ############################################################################## + param ( [parameter(Mandatory=$true)] diff --git a/CommonScripts/GetVmParametersByComputerName.ps1 b/CommonScripts/GetVmParametersByComputerName.ps1 index e9d9243ab..1aba7dc06 100644 --- a/CommonScripts/GetVmParametersByComputerName.ps1 +++ b/CommonScripts/GetVmParametersByComputerName.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param ( diff --git a/CommonScripts/Install-ADDS.ps1 b/CommonScripts/Install-ADDS.ps1 index 5f3fe76ab..a6a966c1c 100644 --- a/CommonScripts/Install-ADDS.ps1 +++ b/CommonScripts/Install-ADDS.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. try { Write-Host "Installing ADDS..." diff --git a/CommonScripts/Install-AdCertificateService-Feature.ps1 b/CommonScripts/Install-AdCertificateService-Feature.ps1 index b0049767a..22cd48ce7 100644 --- a/CommonScripts/Install-AdCertificateService-Feature.ps1 +++ b/CommonScripts/Install-AdCertificateService-Feature.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Install-AdCertificateService-Feature.ps1 -## Purpose: Install Active Directory Certificate Service. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Install-AdCertificateService-Feature.ps1 +# Purpose: Install Active Directory Certificate Service. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Import-Module ServerManager diff --git a/CommonScripts/Install-AdLds-Feature.ps1 b/CommonScripts/Install-AdLds-Feature.ps1 index 29758387d..6da5ba235 100644 --- a/CommonScripts/Install-AdLds-Feature.ps1 +++ b/CommonScripts/Install-AdLds-Feature.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Install-AdLds-Feature.ps1 -## Purpose: Install Active Directory Lightweight Directory Service. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Install-AdLds-Feature.ps1 +# Purpose: Install Active Directory Lightweight Directory Service. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Import-Module ServerManager diff --git a/CommonScripts/Install-AdLds-Instance.ps1 b/CommonScripts/Install-AdLds-Instance.ps1 index bc346f045..92e3285cc 100644 --- a/CommonScripts/Install-AdLds-Instance.ps1 +++ b/CommonScripts/Install-AdLds-Instance.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Install-AdLds-Instance.ps1 -## Purpose: Install instance for Active Directory Lightweight Directory Service. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Install-AdLds-Instance.ps1 +# Purpose: Install instance for Active Directory Lightweight Directory Service. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Install-DFSComponent.ps1 b/CommonScripts/Install-DFSComponent.ps1 index bb86b7b67..c6d029b93 100644 --- a/CommonScripts/Install-DFSComponent.ps1 +++ b/CommonScripts/Install-DFSComponent.ps1 @@ -1,12 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Install-DFSComponent.ps1 -## Purpose: Install DFS component (just used in w2k8). -## Version: 1.1 (26 Jun, 2008) -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Install-DFSComponent.ps1 +# Purpose: Install DFS component (just used in w2k8). +# Version: 1.1 (26 Jun, 2008) +# ############################################################################## #---------------------------------------------------------------------------- diff --git a/CommonScripts/Install-DfsManagement-Feature.ps1 b/CommonScripts/Install-DfsManagement-Feature.ps1 index fc4ce89eb..90d6ecac3 100644 --- a/CommonScripts/Install-DfsManagement-Feature.ps1 +++ b/CommonScripts/Install-DfsManagement-Feature.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Install-DfsManagement-Feature.ps1 -## Purpose: Install DFS Management Tools. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Install-DfsManagement-Feature.ps1 +# Purpose: Install DFS Management Tools. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Install-FSRM.ps1 b/CommonScripts/Install-FSRM.ps1 index a95044d05..23757b284 100644 --- a/CommonScripts/Install-FSRM.ps1 +++ b/CommonScripts/Install-FSRM.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. try { Install-WindowsFeature File-Services diff --git a/CommonScripts/Install-IIS.ps1 b/CommonScripts/Install-IIS.ps1 index 8602cea16..80c5466b3 100644 --- a/CommonScripts/Install-IIS.ps1 +++ b/CommonScripts/Install-IIS.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. try { #----------------------------------------------------------------------------------------------- diff --git a/CommonScripts/Install-Iis-Feature.ps1 b/CommonScripts/Install-Iis-Feature.ps1 index eb89abfe8..fa0fa5732 100644 --- a/CommonScripts/Install-Iis-Feature.ps1 +++ b/CommonScripts/Install-Iis-Feature.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Install-Iis-Feature.ps1 -## Purpose: Install IIS features and tools. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Install-Iis-Feature.ps1 +# Purpose: Install IIS features and tools. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Import-Module ServerManager diff --git a/CommonScripts/Install-SelfSignedCert.ps1 b/CommonScripts/Install-SelfSignedCert.ps1 index 1a9648a25..ef45152df 100644 --- a/CommonScripts/Install-SelfSignedCert.ps1 +++ b/CommonScripts/Install-SelfSignedCert.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Install-SelfSignedCert.ps1 -## Purpose: Install self signed certificate. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Install-SelfSignedCert.ps1 +# Purpose: Install self signed certificate. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/InstallADLDS.ps1 b/CommonScripts/InstallADLDS.ps1 index 7be5a2f1c..48f42ef78 100644 --- a/CommonScripts/InstallADLDS.ps1 +++ b/CommonScripts/InstallADLDS.ps1 @@ -1,13 +1,11 @@ -############################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Script: InstallADLDS # Usage : Install AD LDS on the computer. # Remark: A restart is needed after installation. -#----------------------------------------------------------------------------- +############################################################################## [CmdletBinding(DefaultParameterSetName="Unique")] Param diff --git a/CommonScripts/Join-Domain.ps1 b/CommonScripts/Join-Domain.ps1 index ed474f2e7..14c70c36d 100644 --- a/CommonScripts/Join-Domain.ps1 +++ b/CommonScripts/Join-Domain.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. ############################################################################## -## -## Microsoft Windows Powershell Scripting -## File: Join-Domain.ps1 -## Purpose: Join the machine to the specified domain. -## Version: 1.1 (26 June, 2008) -## +# +# Microsoft Windows Powershell Scripting +# File: Join-Domain.ps1 +# Purpose: Join the machine to the specified domain. +# Version: 1.1 (26 June, 2008) +# ############################################################################## Param( diff --git a/CommonScripts/Modify-ConfigFileNode.ps1 b/CommonScripts/Modify-ConfigFileNode.ps1 index b8635b69e..001ee655c 100644 --- a/CommonScripts/Modify-ConfigFileNode.ps1 +++ b/CommonScripts/Modify-ConfigFileNode.ps1 @@ -1,12 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Modify-ConfigFileNode.ps1 -## Purpose: Modify the node value for the ".deployment.ptfconfig" file. -## Version: 1.1 (26 June, 2008) -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Modify-ConfigFileNode.ps1 +# Purpose: Modify the node value for the ".deployment.ptfconfig" file. +# Version: 1.1 (26 June, 2008) +# ############################################################################## Param( diff --git a/CommonScripts/Modify-PtfConfigFiles.ps1 b/CommonScripts/Modify-PtfConfigFiles.ps1 index f0f28a79b..618f0e265 100644 --- a/CommonScripts/Modify-PtfConfigFiles.ps1 +++ b/CommonScripts/Modify-PtfConfigFiles.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Modify-PtfConfigFiles.ps1 -## Purpose: Modify PtfConfig files in both \bin and source\server\testcode\testsuite folders with specified property name and value. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Modify-PtfConfigFiles.ps1 +# Purpose: Modify PtfConfig files in both \bin and source\server\testcode\testsuite folders with specified property name and value. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Modify-TestRunConfig.ps1 b/CommonScripts/Modify-TestRunConfig.ps1 index 7f59831d3..1958afb70 100644 --- a/CommonScripts/Modify-TestRunConfig.ps1 +++ b/CommonScripts/Modify-TestRunConfig.ps1 @@ -1,15 +1,14 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## -## -## Microsoft Windows Powershell Scripting -## File: Modify-TestRunConfig.ps1 -## Purpose: Update .TestRunConfig file to make all deployment items' -## path refer to current directory, and check if each -## deployment item exists. -## Version: 1.0 (11 Sep, 2008) -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Modify-TestRunConfig.ps1 +# Purpose: Update .TestRunConfig file to make all deployment items' +# path refer to current directory, and check if each +# deployment item exists. +# Version: 1.0 (11 Sep, 2008) +# ############################################################################## Param( diff --git a/CommonScripts/PromoteChildDomain.ps1 b/CommonScripts/PromoteChildDomain.ps1 index 84ef675b3..fd2d31348 100644 --- a/CommonScripts/PromoteChildDomain.ps1 +++ b/CommonScripts/PromoteChildDomain.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: PromoteChildDomain.ps1 # Usage : Install ADDS feature on the server and promote it to a CDC. # Params : [string]$NewDomainName: The name of the child domain. @@ -12,7 +10,8 @@ # [string]$AdminPwd : The password of the Administrator. # [string]$DomainMode: The Mode of the child domain. # Remark : A reboot is needed after promoting to DC. -#----------------------------------------------------------------------------- +############################################################################## + Param ( [Parameter(Mandatory=$true)] diff --git a/CommonScripts/PromoteDomainController.ps1 b/CommonScripts/PromoteDomainController.ps1 index 5c4d2e173..d81d0b040 100644 --- a/CommonScripts/PromoteDomainController.ps1 +++ b/CommonScripts/PromoteDomainController.ps1 @@ -1,9 +1,7 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: PromoteDomainController # Usage : Install ADDS feature on the server and promote it to DC. # Params : [string]$DomainName : The name of the domain. @@ -12,7 +10,8 @@ # [boolean]$IsPrimary : indicator if its a primary domain. # [string]$ForestMode : ForestMode of the domain. # Remark : A reboot is needed after promoting to DC. -#----------------------------------------------------------------------------- +############################################################################## + Param ( [Parameter(Mandatory=$true)] diff --git a/CommonScripts/PromoteRODC.ps1 b/CommonScripts/PromoteRODC.ps1 index 1026fec9e..d6d64cb1d 100644 --- a/CommonScripts/PromoteRODC.ps1 +++ b/CommonScripts/PromoteRODC.ps1 @@ -1,16 +1,15 @@ -############################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: PromoteRODC # Usage : Install ADDS feature on the server and promote it to a RODC. # Params : [string]$DomainName: The name of the domain. # [string]$AdminUser : The username of the Administrator. # [string]$AdminPwd : The password of the Administrator. # Remark : A reboot is needed after promoting to DC. -#----------------------------------------------------------------------------- +############################################################################## + Param ( [Parameter(Mandatory=$true)] diff --git a/CommonScripts/Register-DbgSrv.ps1 b/CommonScripts/Register-DbgSrv.ps1 index 758d3307b..6cf3b84b9 100644 --- a/CommonScripts/Register-DbgSrv.ps1 +++ b/CommonScripts/Register-DbgSrv.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Register-DbgSrv.ps1 -## Purpose: Register the windbg dbgsrv for debugging purpose. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Register-DbgSrv.ps1 +# Purpose: Register the windbg dbgsrv for debugging purpose. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## if(Test-Path -Path "c:\temp\scripts\TTT\tttracer.exe" -PathType Leaf) diff --git a/CommonScripts/Replicate-DomainNc.ps1 b/CommonScripts/Replicate-DomainNc.ps1 index bf7cf34f1..4fe2c09de 100644 --- a/CommonScripts/Replicate-DomainNc.ps1 +++ b/CommonScripts/Replicate-DomainNc.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Replicate-DomainNc.ps1 -## Purpose: Replicate domain naming context from one DC to another. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Replicate-DomainNc.ps1 +# Purpose: Replicate domain naming context from one DC to another. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/RestartAndRun.ps1 b/CommonScripts/RestartAndRun.ps1 index 6f23adb17..9e27a7d36 100644 --- a/CommonScripts/RestartAndRun.ps1 +++ b/CommonScripts/RestartAndRun.ps1 @@ -1,9 +1,7 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: RestartAndRun # Usage : Restart the computer and run the specified script. # Params : -ScriptPath : The path of the script to be executed after @@ -22,7 +20,7 @@ # Remark : After calling this script, if you are not going to use it anymore # in your script, you must call RestartAndRunFinish.ps1 to clean up # the registry entry. -#----------------------------------------------------------------------------- +############################################################################## Param ( diff --git a/CommonScripts/RestartAndRunFinish.ps1 b/CommonScripts/RestartAndRunFinish.ps1 index e7db45b52..389c04caa 100644 --- a/CommonScripts/RestartAndRunFinish.ps1 +++ b/CommonScripts/RestartAndRunFinish.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: RestartAndRunFinish # Usage : Call this script to clean up the registry entry after calling # RestartAndRun.ps1. # Remark : This script should be called at the end of your script, if you # have ever called RestartAndRun.ps1. -#----------------------------------------------------------------------------- +############################################################################## $private:regRunPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" $private:regKeyName = "TKFRSAR" diff --git a/CommonScripts/Set-AdComputerPassword.ps1 b/CommonScripts/Set-AdComputerPassword.ps1 index e3e8ce375..7ebf5feeb 100644 --- a/CommonScripts/Set-AdComputerPassword.ps1 +++ b/CommonScripts/Set-AdComputerPassword.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-AdComputerPassword.ps1 -## Purpose: Set Active Directory computer password. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-AdComputerPassword.ps1 +# Purpose: Set Active Directory computer password. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-AdComputerPasswordOnPDC.ps1 b/CommonScripts/Set-AdComputerPasswordOnPDC.ps1 index c1846295c..f1c5e051e 100644 --- a/CommonScripts/Set-AdComputerPasswordOnPDC.ps1 +++ b/CommonScripts/Set-AdComputerPasswordOnPDC.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-AdComputerPasswordOnPDC.ps1 -## Purpose: Set Active Directory computer password. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-AdComputerPasswordOnPDC.ps1 +# Purpose: Set Active Directory computer password. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-AdUserPwdPolicy.ps1 b/CommonScripts/Set-AdUserPwdPolicy.ps1 index 1aba63602..24ed12dd4 100644 --- a/CommonScripts/Set-AdUserPwdPolicy.ps1 +++ b/CommonScripts/Set-AdUserPwdPolicy.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-AdUserPwdPolicy.ps1 -## Purpose: Set Active Directory domain adminitrator password can not be changed and never expires. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-AdUserPwdPolicy.ps1 +# Purpose: Set Active Directory domain adminitrator password can not be changed and never expires. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-AlternateDns.ps1 b/CommonScripts/Set-AlternateDns.ps1 index 317aa6203..1d13a6a28 100644 --- a/CommonScripts/Set-AlternateDns.ps1 +++ b/CommonScripts/Set-AlternateDns.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-AlternateDns.ps1 -## Purpose: Set alternate dns for this computer. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-AlternateDns.ps1 +# Purpose: Set alternate dns for this computer. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-AutoLogon.ps1 b/CommonScripts/Set-AutoLogon.ps1 index 3383131ca..44af242c1 100644 --- a/CommonScripts/Set-AutoLogon.ps1 +++ b/CommonScripts/Set-AutoLogon.ps1 @@ -1,18 +1,16 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-AutoLogon.ps1 -## Purpose: Set the computer to be able to auto logon by the providing username -## and pasword. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-AutoLogon.ps1 +# Purpose: Set the computer to be able to auto logon by the providing username +# and pasword. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-ExecutionPolicy-Unrestricted.ps1 b/CommonScripts/Set-ExecutionPolicy-Unrestricted.ps1 index d0c0a1ec2..07ae091df 100644 --- a/CommonScripts/Set-ExecutionPolicy-Unrestricted.ps1 +++ b/CommonScripts/Set-ExecutionPolicy-Unrestricted.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-ExecutionPolicy-Unrestricted.ps1 -## Purpose: Set PowerShell execution policy as unrestricted. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-ExecutionPolicy-Unrestricted.ps1 +# Purpose: Set PowerShell execution policy as unrestricted. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force diff --git a/CommonScripts/Set-IisSslBinding.ps1 b/CommonScripts/Set-IisSslBinding.ps1 index 01f4e6aeb..f2a25c88e 100644 --- a/CommonScripts/Set-IisSslBinding.ps1 +++ b/CommonScripts/Set-IisSslBinding.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-IisSslBinding.ps1 -## Purpose: Set SSL binding for IIS website to use the self-signed certificate -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-IisSslBinding.ps1 +# Purpose: Set SSL binding for IIS website to use the self-signed certificate +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-KdcService.ps1 b/CommonScripts/Set-KdcService.ps1 index 68832d168..07c275264 100644 --- a/CommonScripts/Set-KdcService.ps1 +++ b/CommonScripts/Set-KdcService.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Turnoff-KdcService.ps1 -## Purpose: Turn off the KDC service for this computer. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Turnoff-KdcService.ps1 +# Purpose: Turn off the KDC service for this computer. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-MsDSAdditonalDnsHostName.ps1 b/CommonScripts/Set-MsDSAdditonalDnsHostName.ps1 index d457f1516..86d61c37f 100644 --- a/CommonScripts/Set-MsDSAdditonalDnsHostName.ps1 +++ b/CommonScripts/Set-MsDSAdditonalDnsHostName.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-MsDsAdditionalDnsHostName.ps1 -## Purpose: Set msDs-AdditionalDnsHostName attribute. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-MsDsAdditionalDnsHostName.ps1 +# Purpose: Set msDs-AdditionalDnsHostName attribute. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-MsDsAllowToActOnBehalfOfOtherIdentity.ps1 b/CommonScripts/Set-MsDsAllowToActOnBehalfOfOtherIdentity.ps1 index d910b8f82..25c697cd8 100644 --- a/CommonScripts/Set-MsDsAllowToActOnBehalfOfOtherIdentity.ps1 +++ b/CommonScripts/Set-MsDsAllowToActOnBehalfOfOtherIdentity.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-MsDsAllowToActOnBehalfOfOtherIdentity.ps1 -## Purpose: Set msDs-AllowToActOnBehalfOfOtherIdentity attribute. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-MsDsAllowToActOnBehalfOfOtherIdentity.ps1 +# Purpose: Set msDs-AllowToActOnBehalfOfOtherIdentity attribute. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-MsDsBehaviorVersion.ps1 b/CommonScripts/Set-MsDsBehaviorVersion.ps1 index 22409fc79..52b53cc75 100644 --- a/CommonScripts/Set-MsDsBehaviorVersion.ps1 +++ b/CommonScripts/Set-MsDsBehaviorVersion.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-MsDsBehaviorVersion.ps1 -## Purpose: Set msDS-Behavior-Version attribute. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-MsDsBehaviorVersion.ps1 +# Purpose: Set msDS-Behavior-Version attribute. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-MsDsOtherSettings.ps1 b/CommonScripts/Set-MsDsOtherSettings.ps1 index 532b3ce26..bf4ad85c6 100644 --- a/CommonScripts/Set-MsDsOtherSettings.ps1 +++ b/CommonScripts/Set-MsDsOtherSettings.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-MsDsOtherSettings.ps1 -## Purpose: Set msDS-Other-Settings attribute: ADAMAllowADAMSecurityPrincipalsInConfigPartition=1. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-MsDsOtherSettings.ps1 +# Purpose: Set msDS-Other-Settings attribute: ADAMAllowADAMSecurityPrincipalsInConfigPartition=1. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-NetlogonRegKeyAndPolicy.ps1 b/CommonScripts/Set-NetlogonRegKeyAndPolicy.ps1 index dcd962127..8a42219d4 100644 --- a/CommonScripts/Set-NetlogonRegKeyAndPolicy.ps1 +++ b/CommonScripts/Set-NetlogonRegKeyAndPolicy.ps1 @@ -1,18 +1,16 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-NetlogonRegKeyAndPolicy.ps1 -## Purpose: Set password change, netlogon, and create object rights for registry key and group policy for this computer. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## Notice: There must be a GptTmpl.txt template file exist to apply the policy -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-NetlogonRegKeyAndPolicy.ps1 +# Purpose: Set password change, netlogon, and create object rights for registry key and group policy for this computer. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# Notice: There must be a GptTmpl.txt template file exist to apply the policy +# ############################################################################## Param diff --git a/CommonScripts/Set-NetworkConfiguration.ps1 b/CommonScripts/Set-NetworkConfiguration.ps1 index 85bdc7b2f..faab0bb30 100644 --- a/CommonScripts/Set-NetworkConfiguration.ps1 +++ b/CommonScripts/Set-NetworkConfiguration.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-NetworkConfiguration.ps1 -## Purpose: Set the network adaptors configuration. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-NetworkConfiguration.ps1 +# Purpose: Set the network adaptors configuration. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/Set-NetworkLocation.ps1 b/CommonScripts/Set-NetworkLocation.ps1 index 801aad720..ebc27ca81 100644 --- a/CommonScripts/Set-NetworkLocation.ps1 +++ b/CommonScripts/Set-NetworkLocation.ps1 @@ -1,13 +1,13 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## -#------------------------------------------------------------------------------- +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## # Function: Set-NetworkLocation # Usage : Set network location to public or private # Params : -NetworkLocation : Indicate the network location which # Must be either public or private. -#------------------------------------------------------------------------------- +############################################################################## + Param ( [parameter(mandatory=$true)] diff --git a/CommonScripts/Set-Parameter.ps1 b/CommonScripts/Set-Parameter.ps1 index 7b83b39c7..2dbd095c0 100644 --- a/CommonScripts/Set-Parameter.ps1 +++ b/CommonScripts/Set-Parameter.ps1 @@ -1,10 +1,10 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## Purpose: Set Parameter which used in Protocol in XML file. -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# Purpose: Set Parameter which used in Protocol in XML file. +# ############################################################################## Param( diff --git a/CommonScripts/Set-SecurityLevel.ps1 b/CommonScripts/Set-SecurityLevel.ps1 index 18d0e37e0..0bdf17f98 100644 --- a/CommonScripts/Set-SecurityLevel.ps1 +++ b/CommonScripts/Set-SecurityLevel.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-SecurityLevel.ps1 -## Purpose: Set security level for this computer. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-SecurityLevel.ps1 +# Purpose: Set security level for this computer. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## $ObjWMIService = New-Object -comobject WbemScripting.SWbemLocator diff --git a/CommonScripts/SetStartupScript.ps1 b/CommonScripts/SetStartupScript.ps1 index 7ed5dd16d..fc288fe56 100644 --- a/CommonScripts/SetStartupScript.ps1 +++ b/CommonScripts/SetStartupScript.ps1 @@ -1,12 +1,11 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------- +############################################################################## # Function: Set-StartupScript # Usage : Set startup script in Group Policy -#----------------------------------------------------- +############################################################################## + Param ( [parameter(Mandatory=$true)] diff --git a/CommonScripts/Share-Folder.ps1 b/CommonScripts/Share-Folder.ps1 index 4b7a9a1d1..ffd99bb2d 100644 --- a/CommonScripts/Share-Folder.ps1 +++ b/CommonScripts/Share-Folder.ps1 @@ -1,12 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Share-Folder.ps1 -## Purpose: Share a folder for everyone. -## Version: 1.1 (26 Jun, 2008) -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Share-Folder.ps1 +# Purpose: Share a folder for everyone. +# Version: 1.1 (26 Jun, 2008) +# ############################################################################## Param( diff --git a/CommonScripts/TurnOff-FileReadonly.ps1 b/CommonScripts/TurnOff-FileReadonly.ps1 index 8df58821e..67f4d0c5d 100644 --- a/CommonScripts/TurnOff-FileReadonly.ps1 +++ b/CommonScripts/TurnOff-FileReadonly.ps1 @@ -1,12 +1,11 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## Purpose: Turn off readonly attribute for a file. -## -############################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. +############################################################################## +# Microsoft Windows Powershell Scripting +# Purpose: Turn off readonly attribute for a file. +# +############################################################################## param( [string]$filePath diff --git a/CommonScripts/Turnoff-UAC.ps1 b/CommonScripts/Turnoff-UAC.ps1 index 05b99d685..3a35c6cd9 100644 --- a/CommonScripts/Turnoff-UAC.ps1 +++ b/CommonScripts/Turnoff-UAC.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Turnoff-UAC -## Purpose: Turn off the user account control. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Turnoff-UAC +# Purpose: Turn off the user account control. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Set-ItemProperty -path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -name "EnableLUA" -value "0" diff --git a/CommonScripts/UpdateRegistryKey.ps1 b/CommonScripts/UpdateRegistryKey.ps1 index d597b76fe..2c4917edc 100644 --- a/CommonScripts/UpdateRegistryKey.ps1 +++ b/CommonScripts/UpdateRegistryKey.ps1 @@ -1,17 +1,16 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Sripting -## File: UpdateRegistryKey.ps1 -## Purpose: Remove or add key value to Windows registry. -## Requirements: Windows PowerShell 2.0 -## Supported OS: Windows Server 2012 or later versions -## ############################################################################## +# +# Microsoft Windows PowerShell Sripting +# File: UpdateRegistryKey.ps1 +# Purpose: Remove or add key value to Windows registry. +# Requirements: Windows PowerShell 2.0 +# Supported OS: Windows Server 2012 or later versions +# +############################################################################## + Param( [Parameter(Mandatory=$true)] [ValidateSet('Add', 'Remove')] diff --git a/CommonScripts/Verify-ForestTrust.ps1 b/CommonScripts/Verify-ForestTrust.ps1 index 0fe132f72..caad4371c 100644 --- a/CommonScripts/Verify-ForestTrust.ps1 +++ b/CommonScripts/Verify-ForestTrust.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Verify-ForestTrust.ps1 -## Purpose: Verify the bidirectional forest trust. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016 and later -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Verify-ForestTrust.ps1 +# Purpose: Verify the bidirectional forest trust. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016 and later +# ############################################################################## Param diff --git a/CommonScripts/WaitFor-ComputerReady.ps1 b/CommonScripts/WaitFor-ComputerReady.ps1 index 489d85fb5..40efea978 100644 --- a/CommonScripts/WaitFor-ComputerReady.ps1 +++ b/CommonScripts/WaitFor-ComputerReady.ps1 @@ -1,21 +1,19 @@ -############################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: WaitFor-ComputerReady.ps1 -## Purpose: This script pause the script until the specified file on remote machine is ready for accessing. -## Scenarios: 1) Wait for a computer starting up. In this case, will wait for ADMIN$ -## 2) Wait for something done in another computer (such as server config, or testing on client). -## a) If "config.finished.signal" found, that means the configuration finished successfully; -## b) If "config.error.signal" found, that means the configuration terminated with exceptions; -## c) If "test.finished.signal" found, that means the testing finished successfully; -## d) If "test.error.signal" found, that means the testing terminated with exceptions; -## Version: 1.1 (26 June, 2008) -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: WaitFor-ComputerReady.ps1 +# Purpose: This script pause the script until the specified file on remote machine is ready for accessing. +# Scenarios: 1) Wait for a computer starting up. In this case, will wait for ADMIN$ +# 2) Wait for something done in another computer (such as server config, or testing on client). +# a) If "config.finished.signal" found, that means the configuration finished successfully; +# b) If "config.error.signal" found, that means the configuration terminated with exceptions; +# c) If "test.finished.signal" found, that means the testing finished successfully; +# d) If "test.error.signal" found, that means the testing terminated with exceptions; +# Version: 1.1 (26 June, 2008) +# ############################################################################## Param ( diff --git a/CommonScripts/Write-Error.ps1 b/CommonScripts/Write-Error.ps1 index d1a19a14d..38c4cbea7 100644 --- a/CommonScripts/Write-Error.ps1 +++ b/CommonScripts/Write-Error.ps1 @@ -1,13 +1,14 @@ -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Write-Error.ps1 -## Purpose: Writes error log to the screen with time stamp. -## Requirements: Windows Powershell 2.0 -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -######################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Write-Error.ps1 +# Purpose: Writes error log to the screen with time stamp. +# Requirements: Windows Powershell 2.0 +# +############################################################################## <# .SYNOPSIS Writes the log message with the time stamp. diff --git a/CommonScripts/Write-Info.ps1 b/CommonScripts/Write-Info.ps1 index 834318586..64f4b55e1 100644 --- a/CommonScripts/Write-Info.ps1 +++ b/CommonScripts/Write-Info.ps1 @@ -1,13 +1,14 @@ -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Write-Info.ps1 -## Purpose: Writes log to the screen with time stamp. -## Requirements: Windows Powershell 2.0 -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -######################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Write-Info.ps1 +# Purpose: Writes log to the screen with time stamp. +# Requirements: Windows Powershell 2.0 +# +############################################################################## <# .SYNOPSIS Writes the log message with the time stamp. diff --git a/CommonScripts/Write-Log.ps1 b/CommonScripts/Write-Log.ps1 index 0b7ea5674..09b69708e 100644 --- a/CommonScripts/Write-Log.ps1 +++ b/CommonScripts/Write-Log.ps1 @@ -1,10 +1,10 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## Purpose: Write logs according to LogLevel configured in ParamConfig.xml. -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# Purpose: Write logs according to LogLevel configured in ParamConfig.xml. +# ############################################################################## Param( diff --git a/InstallPrerequisites/Install-NetFx3.ps1 b/InstallPrerequisites/Install-NetFx3.ps1 index a87a941eb..f8f8814d9 100644 --- a/InstallPrerequisites/Install-NetFx3.ps1 +++ b/InstallPrerequisites/Install-NetFx3.ps1 @@ -1,4 +1,4 @@ -# Copyright (c) Microsoft. All rights reserved. +# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # Check or enable .NET Framework 3.5 diff --git a/InstallPrerequisites/InstallPrerequisites.ps1 b/InstallPrerequisites/InstallPrerequisites.ps1 index 032e9f93e..33d8431b6 100644 --- a/InstallPrerequisites/InstallPrerequisites.ps1 +++ b/InstallPrerequisites/InstallPrerequisites.ps1 @@ -1,4 +1,4 @@ -# Copyright (c) Microsoft. All rights reserved. +# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. <# @@ -432,7 +432,6 @@ Function GetVSInstallationPaths } } - # ================================ # Script starts here # ================================ diff --git a/ProtoSDK/CryptoLib/NativeMethods.cs b/ProtoSDK/CryptoLib/NativeMethods.cs index f57944ddd..a0d3a196d 100644 --- a/ProtoSDK/CryptoLib/NativeMethods.cs +++ b/ProtoSDK/CryptoLib/NativeMethods.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft. All rights reserved. +// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; diff --git a/ProtoSDK/MS-DRSR/Client/DrsrRpcStubFormatString.cs b/ProtoSDK/MS-DRSR/Client/DrsrRpcStubFormatString.cs index 040bd45a6..dc7b157ca 100644 --- a/ProtoSDK/MS-DRSR/Client/DrsrRpcStubFormatString.cs +++ b/ProtoSDK/MS-DRSR/Client/DrsrRpcStubFormatString.cs @@ -1,7 +1,6 @@ -// Copyright (c) Microsoft. All rights reserved. +// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. - using System; using Microsoft.Protocols.TestTools.StackSdk.Networking.Rpce; diff --git a/ProtoSDK/MS-DRSR/Client/DrsuapiClient.cs b/ProtoSDK/MS-DRSR/Client/DrsuapiClient.cs index b394caded..12b10bcc0 100644 --- a/ProtoSDK/MS-DRSR/Client/DrsuapiClient.cs +++ b/ProtoSDK/MS-DRSR/Client/DrsuapiClient.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. - using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; diff --git a/ProtoSDK/MS-DRSR/Client/DrsuapiRpcAdapter.cs b/ProtoSDK/MS-DRSR/Client/DrsuapiRpcAdapter.cs index 770355bc2..2171ec606 100644 --- a/ProtoSDK/MS-DRSR/Client/DrsuapiRpcAdapter.cs +++ b/ProtoSDK/MS-DRSR/Client/DrsuapiRpcAdapter.cs @@ -1,7 +1,6 @@ -// Copyright (c) Microsoft. All rights reserved. +// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. - using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; diff --git a/ProtoSDK/MS-DRSR/Client/DsaopClient.cs b/ProtoSDK/MS-DRSR/Client/DsaopClient.cs index 9fe468a5d..7292ef3f5 100644 --- a/ProtoSDK/MS-DRSR/Client/DsaopClient.cs +++ b/ProtoSDK/MS-DRSR/Client/DsaopClient.cs @@ -1,7 +1,6 @@ -// Copyright (c) Microsoft. All rights reserved. +// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. - using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; diff --git a/ProtoSDK/MS-XCA/PlainLZ77/PlainLZ77Decompressor.cs b/ProtoSDK/MS-XCA/PlainLZ77/PlainLZ77Decompressor.cs index 50a82396b..9ea628243 100644 --- a/ProtoSDK/MS-XCA/PlainLZ77/PlainLZ77Decompressor.cs +++ b/ProtoSDK/MS-XCA/PlainLZ77/PlainLZ77Decompressor.cs @@ -1,7 +1,6 @@ -// Copyright (c) Microsoft. All rights reserved. +// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. - namespace Microsoft.Protocols.TestTools.StackSdk.Compression.Xpress { /// diff --git a/ProtocolTestManager/Kernel/StringResource.Designer.cs b/ProtocolTestManager/Kernel/StringResource.Designer.cs index 74190fe27..137804ca4 100644 --- a/ProtocolTestManager/Kernel/StringResource.Designer.cs +++ b/ProtocolTestManager/Kernel/StringResource.Designer.cs @@ -1,4 +1,7 @@ -//------------------------------------------------------------------------------ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 diff --git a/ProtocolTestManager/Plugins/BranchCachePlugin/BranchCachePlugin/DetectionResultControl.xaml.cs b/ProtocolTestManager/Plugins/BranchCachePlugin/BranchCachePlugin/DetectionResultControl.xaml.cs index 05c9cea68..b90d0e2fa 100644 --- a/ProtocolTestManager/Plugins/BranchCachePlugin/BranchCachePlugin/DetectionResultControl.xaml.cs +++ b/ProtocolTestManager/Plugins/BranchCachePlugin/BranchCachePlugin/DetectionResultControl.xaml.cs @@ -1,6 +1,5 @@ -//------------------------------------------------------------------------------ -// Copyright (c) Microsoft Corporation. All rights reserved. -//------------------------------------------------------------------------------ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; diff --git a/ProtocolTestManager/Plugins/SMBDPlugin/SMBDPlugin/Detector/ExecutePowerShellCommand.cs b/ProtocolTestManager/Plugins/SMBDPlugin/SMBDPlugin/Detector/ExecutePowerShellCommand.cs index 88713e659..7c7004fe5 100644 --- a/ProtocolTestManager/Plugins/SMBDPlugin/SMBDPlugin/Detector/ExecutePowerShellCommand.cs +++ b/ProtocolTestManager/Plugins/SMBDPlugin/SMBDPlugin/Detector/ExecutePowerShellCommand.cs @@ -1,5 +1,6 @@ -// Copyright(c) Microsoft.All rights reserved. +// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. + using System; using System.Collections.Generic; using System.Dynamic; diff --git a/ProtocolTestManager/PtmCli/StringResources.Designer.cs b/ProtocolTestManager/PtmCli/StringResources.Designer.cs index 997e48056..930567b65 100644 --- a/ProtocolTestManager/PtmCli/StringResources.Designer.cs +++ b/ProtocolTestManager/PtmCli/StringResources.Designer.cs @@ -1,4 +1,7 @@ -//------------------------------------------------------------------------------ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 diff --git a/ProtocolTestManager/UI/Properties/Resources.Designer.cs b/ProtocolTestManager/UI/Properties/Resources.Designer.cs index 2c42f4264..3081be119 100644 --- a/ProtocolTestManager/UI/Properties/Resources.Designer.cs +++ b/ProtocolTestManager/UI/Properties/Resources.Designer.cs @@ -1,4 +1,7 @@ -//------------------------------------------------------------------------------ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 diff --git a/ProtocolTestManager/UI/Properties/Settings.Designer.cs b/ProtocolTestManager/UI/Properties/Settings.Designer.cs index 3d32c61d2..423ae11fd 100644 --- a/ProtocolTestManager/UI/Properties/Settings.Designer.cs +++ b/ProtocolTestManager/UI/Properties/Settings.Designer.cs @@ -1,4 +1,7 @@ -//------------------------------------------------------------------------------ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.33440 diff --git a/ProtocolTestManager/UI/StringResources.Designer.cs b/ProtocolTestManager/UI/StringResources.Designer.cs index 6bf56706f..e3f260db0 100644 --- a/ProtocolTestManager/UI/StringResources.Designer.cs +++ b/ProtocolTestManager/UI/StringResources.Designer.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft. All rights reserved. +// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. //------------------------------------------------------------------------------ diff --git a/RemoteRun/trigger-prototest.ps1 b/RemoteRun/trigger-prototest.ps1 index 96730a67c..8adfee0d4 100644 --- a/RemoteRun/trigger-prototest.ps1 +++ b/RemoteRun/trigger-prototest.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + Param ( [Parameter(Mandatory=$true)] diff --git a/RemoteRun/trigger-prototest.sh b/RemoteRun/trigger-prototest.sh index 935f1bdb4..8db059272 100644 --- a/RemoteRun/trigger-prototest.sh +++ b/RemoteRun/trigger-prototest.sh @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + username=iolab machine=192.168.0.16 taskname=ProtoTest diff --git a/TestSuites/ADFamily/Setup/Scripts/Config-CDC.ps1 b/TestSuites/ADFamily/Setup/Scripts/Config-CDC.ps1 index caad82ef6..3215ffb01 100644 --- a/TestSuites/ADFamily/Setup/Scripts/Config-CDC.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/Config-CDC.ps1 @@ -1,24 +1,23 @@ -########################################################################################### -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Config-CDC.ps1 -## Purpose: Configure Domain Controller in Child Domain for Active Directory Family Test Suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Config-CDC.ps1 +# Purpose: Configure Domain Controller in Child Domain for Active Directory Family Test Suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/ADFamily/Setup/Scripts/Config-DM.ps1 b/TestSuites/ADFamily/Setup/Scripts/Config-DM.ps1 index be50182b4..ebfdf652a 100644 --- a/TestSuites/ADFamily/Setup/Scripts/Config-DM.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/Config-DM.ps1 @@ -1,24 +1,23 @@ -########################################################################################### -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Config-DM.ps1 -## Purpose: Configure Domain Member Server in Local Domain for Active Directory Family Test Suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Config-DM.ps1 +# Purpose: Configure Domain Member Server in Local Domain for Active Directory Family Test Suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/ADFamily/Setup/Scripts/Config-ENDPOINT.ps1 b/TestSuites/ADFamily/Setup/Scripts/Config-ENDPOINT.ps1 index b4e3bdf21..d32118577 100644 --- a/TestSuites/ADFamily/Setup/Scripts/Config-ENDPOINT.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/Config-ENDPOINT.ps1 @@ -1,24 +1,25 @@ -########################################################################################### -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### +############################################################################## +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. +############################################################################## -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Config-ENDPOINT.ps1 -## Purpose: Configure Endpoint Server (Test Driver) in Local Domain for Active Directory Family Test Suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Config-ENDPOINT.ps1 +# Purpose: Configure Endpoint Server (Test Driver) in Local Domain for Active Directory Family Test Suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/ADFamily/Setup/Scripts/Config-PDC.ps1 b/TestSuites/ADFamily/Setup/Scripts/Config-PDC.ps1 index f14329536..d6f06d3f9 100644 --- a/TestSuites/ADFamily/Setup/Scripts/Config-PDC.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/Config-PDC.ps1 @@ -1,24 +1,23 @@ -########################################################################################### -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Config-PDC.ps1 -## Purpose: Configure Primary Domain Controller in Local Domain for Active Directory Family Test Suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Config-PDC.ps1 +# Purpose: Configure Primary Domain Controller in Local Domain for Active Directory Family Test Suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/ADFamily/Setup/Scripts/Config-RODC.ps1 b/TestSuites/ADFamily/Setup/Scripts/Config-RODC.ps1 index a38ca03f5..1145f68d6 100644 --- a/TestSuites/ADFamily/Setup/Scripts/Config-RODC.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/Config-RODC.ps1 @@ -1,24 +1,23 @@ -########################################################################################### -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Config-RODC.ps1 -## Purpose: Configure Read-Only Domain Controller in Local Domain for Active Directory Family Test Suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Config-RODC.ps1 +# Purpose: Configure Read-Only Domain Controller in Local Domain for Active Directory Family Test Suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/ADFamily/Setup/Scripts/Config-SDC.ps1 b/TestSuites/ADFamily/Setup/Scripts/Config-SDC.ps1 index c15d1a91a..e06b9388a 100644 --- a/TestSuites/ADFamily/Setup/Scripts/Config-SDC.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/Config-SDC.ps1 @@ -1,24 +1,23 @@ -########################################################################################### -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Config-SDC.ps1 -## Purpose: Configure Secondary Domain Controller in Local Domain for Active Directory Family Test Suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Config-SDC.ps1 +# Purpose: Configure Secondary Domain Controller in Local Domain for Active Directory Family Test Suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/ADFamily/Setup/Scripts/Config-TDC.ps1 b/TestSuites/ADFamily/Setup/Scripts/Config-TDC.ps1 index a80c7a1bd..2c0edacf0 100644 --- a/TestSuites/ADFamily/Setup/Scripts/Config-TDC.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/Config-TDC.ps1 @@ -1,24 +1,23 @@ -########################################################################################### -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Config-TDC.ps1 -## Purpose: Configure Primary Domain Controller in Trusted Domain for Active Directory Family Test Suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Config-TDC.ps1 +# Purpose: Configure Primary Domain Controller in Trusted Domain for Active Directory Family Test Suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/ADFamily/Setup/Scripts/ConfigGroupPolicyForClaims.ps1 b/TestSuites/ADFamily/Setup/Scripts/ConfigGroupPolicyForClaims.ps1 index 6a52e9a9d..28ce36d95 100644 --- a/TestSuites/ADFamily/Setup/Scripts/ConfigGroupPolicyForClaims.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/ConfigGroupPolicyForClaims.ps1 @@ -1,11 +1,10 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------------------------- +############################################################################## # Configure Group Policy for Claims -#----------------------------------------------------------------------------------------------- +############################################################################## + Param ( [string]$capName diff --git a/TestSuites/ADFamily/Setup/Scripts/Create-ADObject.ps1 b/TestSuites/ADFamily/Setup/Scripts/Create-ADObject.ps1 index c3c9e47b9..48ccd07be 100644 --- a/TestSuites/ADFamily/Setup/Scripts/Create-ADObject.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/Create-ADObject.ps1 @@ -1,18 +1,15 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Create-ADObject.ps1 -## Purpose: Create new object in an Active Directory Domain Controller -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2 / Windows Server 8 -## ############################################################################## - +# +# Microsoft Windows Powershell Scripting +# File: Create-ADObject.ps1 +# Purpose: Create new object in an Active Directory Domain Controller +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2 / Windows Server 8 +# +############################################################################## Param( #DC IP address diff --git a/TestSuites/ADFamily/Setup/Scripts/Create-Account.ps1 b/TestSuites/ADFamily/Setup/Scripts/Create-Account.ps1 index 74e03b44b..e2b6d9576 100644 --- a/TestSuites/ADFamily/Setup/Scripts/Create-Account.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/Create-Account.ps1 @@ -1,15 +1,13 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Create-Account.ps1 -## Purpose: Create a new user account (Domain user or Local user). -## Version: 1.1 (26 June, 2008) -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Create-Account.ps1 +# Purpose: Create a new user account (Domain user or Local user). +# Version: 1.1 (26 June, 2008) +# ############################################################################## Param ( diff --git a/TestSuites/ADFamily/Setup/Scripts/CreateLocalSideForestTrust.ps1 b/TestSuites/ADFamily/Setup/Scripts/CreateLocalSideForestTrust.ps1 index a46c4f1c1..a6e76ece6 100644 --- a/TestSuites/ADFamily/Setup/Scripts/CreateLocalSideForestTrust.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/CreateLocalSideForestTrust.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. Param ( diff --git a/TestSuites/ADFamily/Setup/Scripts/Get-CertHash.ps1 b/TestSuites/ADFamily/Setup/Scripts/Get-CertHash.ps1 index eaf660489..9c59613f9 100644 --- a/TestSuites/ADFamily/Setup/Scripts/Get-CertHash.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/Get-CertHash.ps1 @@ -1,15 +1,13 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Get-CertHash.ps1 -## Purpose: Get the cert hash of a certificate in the store. -## Version: 1.0 (14 July, 2008) -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Get-CertHash.ps1 +# Purpose: Get the cert hash of a certificate in the store. +# Version: 1.0 (14 July, 2008) +# ############################################################################## param( diff --git a/TestSuites/ADFamily/Setup/Scripts/GetAvailablePort.ps1 b/TestSuites/ADFamily/Setup/Scripts/GetAvailablePort.ps1 index b1da20098..f95a19c8f 100644 --- a/TestSuites/ADFamily/Setup/Scripts/GetAvailablePort.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/GetAvailablePort.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param ( diff --git a/TestSuites/ADFamily/Setup/Scripts/GetLDSInstanceGUID.ps1 b/TestSuites/ADFamily/Setup/Scripts/GetLDSInstanceGUID.ps1 index 67640a29c..80b338653 100644 --- a/TestSuites/ADFamily/Setup/Scripts/GetLDSInstanceGUID.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/GetLDSInstanceGUID.ps1 @@ -1,11 +1,9 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Get LDS Instance GUID -#----------------------------------------------------------------------------- +############################################################################## Param ( diff --git a/TestSuites/ADFamily/Setup/Scripts/GetVmParameters.ps1 b/TestSuites/ADFamily/Setup/Scripts/GetVmParameters.ps1 index 2251b1bc1..7f4ec0876 100644 --- a/TestSuites/ADFamily/Setup/Scripts/GetVmParameters.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/GetVmParameters.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +############################################################################## # # Microsoft Windows Powershell Script # File : GetVmParameters.ps1 @@ -17,6 +15,7 @@ # -ConfigFile : The config file from which parameters will # be read. ############################################################################## + param ( [parameter(Mandatory=$true)] diff --git a/TestSuites/ADFamily/Setup/Scripts/GetVmParametersByComputerName.ps1 b/TestSuites/ADFamily/Setup/Scripts/GetVmParametersByComputerName.ps1 index e9d9243ab..1aba7dc06 100644 --- a/TestSuites/ADFamily/Setup/Scripts/GetVmParametersByComputerName.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/GetVmParametersByComputerName.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param ( diff --git a/TestSuites/ADFamily/Setup/Scripts/InstallADLDS.ps1 b/TestSuites/ADFamily/Setup/Scripts/InstallADLDS.ps1 index 1417dc3f9..09b14e0b0 100644 --- a/TestSuites/ADFamily/Setup/Scripts/InstallADLDS.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/InstallADLDS.ps1 @@ -1,13 +1,11 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Script: InstallADLDS # Usage : Install AD LDS on the computer. # Remark: A restart is needed after installation. -#----------------------------------------------------------------------------- +############################################################################## [CmdletBinding(DefaultParameterSetName="Unique")] Param diff --git a/TestSuites/ADFamily/Setup/Scripts/Join-Domain.ps1 b/TestSuites/ADFamily/Setup/Scripts/Join-Domain.ps1 index 48f666366..7d7ee6646 100644 --- a/TestSuites/ADFamily/Setup/Scripts/Join-Domain.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/Join-Domain.ps1 @@ -1,15 +1,13 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. ############################################################################## -## -## Microsoft Windows Powershell Scripting -## File: Join-Domain.ps1 -## Purpose: Join the machine to the specified domain. -## Version: 1.1 (26 June, 2008) -## +# +# Microsoft Windows Powershell Scripting +# File: Join-Domain.ps1 +# Purpose: Join the machine to the specified domain. +# Version: 1.1 (26 June, 2008) +# ############################################################################## Param( diff --git a/TestSuites/ADFamily/Setup/Scripts/NewCentralAccessPolicy.ps1 b/TestSuites/ADFamily/Setup/Scripts/NewCentralAccessPolicy.ps1 index 3fc715622..c82fdfdce 100644 --- a/TestSuites/ADFamily/Setup/Scripts/NewCentralAccessPolicy.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/NewCentralAccessPolicy.ps1 @@ -1,11 +1,10 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------------------------- +############################################################################## # Define a New Central Access Policy -#----------------------------------------------------------------------------------------------- +############################################################################## + Param ( [string]$Name, diff --git a/TestSuites/ADFamily/Setup/Scripts/NewCentralAccessRule.ps1 b/TestSuites/ADFamily/Setup/Scripts/NewCentralAccessRule.ps1 index bd109eab2..d1a4eba43 100644 --- a/TestSuites/ADFamily/Setup/Scripts/NewCentralAccessRule.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/NewCentralAccessRule.ps1 @@ -1,11 +1,10 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------------------------- +############################################################################## # Define a New Central Access Rule -#----------------------------------------------------------------------------------------------- +############################################################################## + Param ( [string]$Name, diff --git a/TestSuites/ADFamily/Setup/Scripts/NewClaimType.ps1 b/TestSuites/ADFamily/Setup/Scripts/NewClaimType.ps1 index 99ec0a862..4690ec357 100644 --- a/TestSuites/ADFamily/Setup/Scripts/NewClaimType.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/NewClaimType.ps1 @@ -1,11 +1,10 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------------------------- +############################################################################## # Define a New Claim Type -#----------------------------------------------------------------------------------------------- +############################################################################## + Param ( [ValidateSet("User", "Computer", "Both")] diff --git a/TestSuites/ADFamily/Setup/Scripts/NewResourceProperty.ps1 b/TestSuites/ADFamily/Setup/Scripts/NewResourceProperty.ps1 index 23d351305..0c6ba7059 100644 --- a/TestSuites/ADFamily/Setup/Scripts/NewResourceProperty.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/NewResourceProperty.ps1 @@ -1,11 +1,10 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------------------------- +############################################################################## # Define a New Claim Type -#----------------------------------------------------------------------------------------------- +############################################################################## + Param ( [string]$Name, diff --git a/TestSuites/ADFamily/Setup/Scripts/PromoteChildDomain.ps1 b/TestSuites/ADFamily/Setup/Scripts/PromoteChildDomain.ps1 index b43c91372..8b2803832 100644 --- a/TestSuites/ADFamily/Setup/Scripts/PromoteChildDomain.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/PromoteChildDomain.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: PromoteChildDomain.ps1 # Usage : Install ADDS feature on the server and promote it to a CDC. # Params : [string]$NewDomainName: The name of the child domain. @@ -11,7 +9,8 @@ # [string]$AdminUser : The username of the Administrator. # [string]$AdminPwd : The password of the Administrator. # Remark : A reboot is needed after promoting to DC. -#----------------------------------------------------------------------------- +############################################################################## + Param ( [Parameter(Mandatory=$true)] diff --git a/TestSuites/ADFamily/Setup/Scripts/PromoteDomainController.ps1 b/TestSuites/ADFamily/Setup/Scripts/PromoteDomainController.ps1 index 5c4d2e173..d81d0b040 100644 --- a/TestSuites/ADFamily/Setup/Scripts/PromoteDomainController.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/PromoteDomainController.ps1 @@ -1,9 +1,7 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: PromoteDomainController # Usage : Install ADDS feature on the server and promote it to DC. # Params : [string]$DomainName : The name of the domain. @@ -12,7 +10,8 @@ # [boolean]$IsPrimary : indicator if its a primary domain. # [string]$ForestMode : ForestMode of the domain. # Remark : A reboot is needed after promoting to DC. -#----------------------------------------------------------------------------- +############################################################################## + Param ( [Parameter(Mandatory=$true)] diff --git a/TestSuites/ADFamily/Setup/Scripts/PromoteRODC.ps1 b/TestSuites/ADFamily/Setup/Scripts/PromoteRODC.ps1 index 62f8da874..ddc69e1bb 100644 --- a/TestSuites/ADFamily/Setup/Scripts/PromoteRODC.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/PromoteRODC.ps1 @@ -1,16 +1,15 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: PromoteRODC # Usage : Install ADDS feature on the server and promote it to a RODC. # Params : [string]$DomainName: The name of the domain. # [string]$AdminUser : The username of the Administrator. # [string]$AdminPwd : The password of the Administrator. # Remark : A reboot is needed after promoting to DC. -#----------------------------------------------------------------------------- +############################################################################## + Param ( [Parameter(Mandatory=$true)] diff --git a/TestSuites/ADFamily/Setup/Scripts/RestartAndRun.ps1 b/TestSuites/ADFamily/Setup/Scripts/RestartAndRun.ps1 index 44b078a28..5b1fbc55f 100644 --- a/TestSuites/ADFamily/Setup/Scripts/RestartAndRun.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/RestartAndRun.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: RestartAndRun # Usage : Restart the computer and run the specified script. # Params : -ScriptPath : The path of the script to be executed after @@ -22,7 +20,7 @@ # Remark : After calling this script, if you are not going to use it anymore # in your script, you must call RestartAndRunFinish.ps1 to clean up # the registry entry. -#----------------------------------------------------------------------------- +############################################################################## Param ( diff --git a/TestSuites/ADFamily/Setup/Scripts/RestartAndRunFinish.ps1 b/TestSuites/ADFamily/Setup/Scripts/RestartAndRunFinish.ps1 index 88ef308e4..389c04caa 100644 --- a/TestSuites/ADFamily/Setup/Scripts/RestartAndRunFinish.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/RestartAndRunFinish.ps1 @@ -1,15 +1,13 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: RestartAndRunFinish # Usage : Call this script to clean up the registry entry after calling # RestartAndRun.ps1. # Remark : This script should be called at the end of your script, if you # have ever called RestartAndRun.ps1. -#----------------------------------------------------------------------------- +############################################################################## $private:regRunPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" $private:regKeyName = "TKFRSAR" diff --git a/TestSuites/ADFamily/Setup/Scripts/SetAutoLogon.ps1 b/TestSuites/ADFamily/Setup/Scripts/SetAutoLogon.ps1 index 4e621f773..a0278e516 100644 --- a/TestSuites/ADFamily/Setup/Scripts/SetAutoLogon.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/SetAutoLogon.ps1 @@ -1,13 +1,11 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------- +############################################################################## # Function: SetAutoLogon # Usage : Set the computer to be able to auto logon by the providing username # and pasword. -#----------------------------------------------------------------------------- +############################################################################## Param ( diff --git a/TestSuites/ADFamily/Setup/Scripts/SetNetworkConfiguration.ps1 b/TestSuites/ADFamily/Setup/Scripts/SetNetworkConfiguration.ps1 index d9333f806..614a902fc 100644 --- a/TestSuites/ADFamily/Setup/Scripts/SetNetworkConfiguration.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/SetNetworkConfiguration.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. Param ( diff --git a/TestSuites/ADFamily/Setup/Scripts/WaitFor-ComputerReady.ps1 b/TestSuites/ADFamily/Setup/Scripts/WaitFor-ComputerReady.ps1 index 90f58c868..40efea978 100644 --- a/TestSuites/ADFamily/Setup/Scripts/WaitFor-ComputerReady.ps1 +++ b/TestSuites/ADFamily/Setup/Scripts/WaitFor-ComputerReady.ps1 @@ -1,21 +1,19 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: WaitFor-ComputerReady.ps1 -## Purpose: This script pause the script until the specified file on remote machine is ready for accessing. -## Scenarios: 1) Wait for a computer starting up. In this case, will wait for ADMIN$ -## 2) Wait for something done in another computer (such as server config, or testing on client). -## a) If "config.finished.signal" found, that means the configuration finished successfully; -## b) If "config.error.signal" found, that means the configuration terminated with exceptions; -## c) If "test.finished.signal" found, that means the testing finished successfully; -## d) If "test.error.signal" found, that means the testing terminated with exceptions; -## Version: 1.1 (26 June, 2008) -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: WaitFor-ComputerReady.ps1 +# Purpose: This script pause the script until the specified file on remote machine is ready for accessing. +# Scenarios: 1) Wait for a computer starting up. In this case, will wait for ADMIN$ +# 2) Wait for something done in another computer (such as server config, or testing on client). +# a) If "config.finished.signal" found, that means the configuration finished successfully; +# b) If "config.error.signal" found, that means the configuration terminated with exceptions; +# c) If "test.finished.signal" found, that means the testing finished successfully; +# d) If "test.error.signal" found, that means the testing terminated with exceptions; +# Version: 1.1 (26 June, 2008) +# ############################################################################## Param ( diff --git a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/ConfigNTLMRegistryKey.ps1 b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/ConfigNTLMRegistryKey.ps1 index 897ccacd5..8fb550b46 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/ConfigNTLMRegistryKey.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/ConfigNTLMRegistryKey.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PDCName = $PTFProp_Common_WritableDC1_NetbiosName $TDCName = $PTFProp_Common_TDC_NetbiosName diff --git a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/GetDCBlockValue.ps1 b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/GetDCBlockValue.ps1 index 97cfc8512..b533fac86 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/GetDCBlockValue.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/GetDCBlockValue.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. try { diff --git a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/GetDCException.ps1 b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/GetDCException.ps1 index 54ca6eb2a..bfd9732e3 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/GetDCException.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/GetDCException.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. try { diff --git a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/RestoreNTLMRegistryKey.ps1 b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/RestoreNTLMRegistryKey.ps1 index 0bf359b5e..862f2da53 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/RestoreNTLMRegistryKey.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/RestoreNTLMRegistryKey.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PDCName = $PTFProp_Common_WritableDC1_NetbiosName $TDCName = $PTFProp_Common_TDC_NetbiosName diff --git a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2A2.ps1 b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2A2.ps1 index 47a65257f..d51cda649 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2A2.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2A2.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $MachineName = $PTFProp_Common_WritableDC1_NetbiosName $DomainName = $PTFProp_Common_PrimaryDomain_DNSName diff --git a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2AF.ps1 b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2AF.ps1 index 243bc82ae..085359045 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2AF.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2AF.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $MachineName = $PTFProp_Common_TDC_NetbiosName $DomainName = $PTFProp_Common_TrustDomain_DNSName diff --git a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2AFServiceAccount.ps1 b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2AFServiceAccount.ps1 index 3451e8c21..b0e9273c2 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2AFServiceAccount.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetA2AFServiceAccount.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $MachineName = $PTFProp_Common_WritableDC1_NetbiosName $DomainName = $PTFProp_Common_PrimaryDomain_DNSName diff --git a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetDCBlockValue.ps1 b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetDCBlockValue.ps1 index 13b1371b8..c2f88cda2 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetDCBlockValue.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetDCBlockValue.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. try { diff --git a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetDCException.ps1 b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetDCException.ps1 index 208f4ff39..9f9bc4742 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetDCException.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetDCException.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. try { diff --git a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetProtectedUser.ps1 b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetProtectedUser.ps1 index c43c5b85a..ff65905ab 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetProtectedUser.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-APDS/SUTControlAdapter/SetProtectedUser.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $MachineName = $PTFProp_Common_TDC_NetbiosName $DomainName = $PTFProp_Common_TrustDomain_DNSName diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/EndDomainRename.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/EndDomainRename.ps1 index a2f323bfc..2c9e30812 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/EndDomainRename.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/EndDomainRename.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # End the domain rename operation. Removes the restrictions placed on the Directory Service # during the rename operation. diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/OfflineDirectoryService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/OfflineDirectoryService.ps1 index 83eb666e6..0a3ce16a0 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/OfflineDirectoryService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/OfflineDirectoryService.ps1 @@ -1,6 +1,4 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Stop the directory services on a specified DC diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/OnlineDirectoryService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/OnlineDirectoryService.ps1 index f13a7c4a5..1773a4956 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/OnlineDirectoryService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/OnlineDirectoryService.ps1 @@ -1,6 +1,4 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Start the directory services on a specified DC diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/UploadDomainRenameScript.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/UploadDomainRenameScript.ps1 index 9d2ab1dcd..0edf9643e 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/UploadDomainRenameScript.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/NonWindowsSUTImplementation/UploadDomainRenameScript.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Upload the domain rename script into the directory that will perform the domain rename related directory changes # on all domain controllers. diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/ChangeReplTrafficStatus.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/ChangeReplTrafficStatus.ps1 index 0a637b266..c5a0991b7 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/ChangeReplTrafficStatus.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/ChangeReplTrafficStatus.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# - +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $pwd = ConvertTo-SecureString $remotePassword -AsPlainText -Force diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/CreateLingeringObject.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/CreateLingeringObject.ps1 index 4fa1728de..a3f18d8dc 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/CreateLingeringObject.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/CreateLingeringObject.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $pwd = ConvertTo-SecureString $remotePassword -AsPlainText -Force $cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $userName, $pwd diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/CreateLingeringObjectRemote.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/CreateLingeringObjectRemote.ps1 index 8da357f30..5ae39f180 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/CreateLingeringObjectRemote.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/CreateLingeringObjectRemote.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Create lingering object on DC2 diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/DisableAuditingOnServer.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/DisableAuditingOnServer.ps1 index 2e7953ec3..5eeefecd7 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/DisableAuditingOnServer.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/DisableAuditingOnServer.ps1 @@ -1,13 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------ +############################################################################## # Script function description: # This script's function is to disable auditing on SUT. # Param $computerName: The computer name of the SUT, string type. -#------------------------------------------------------------------------------ +############################################################################## + param( [string]$computerName = $computerName, [string]$usr = $usr, diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EnableAuditingOnServer.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EnableAuditingOnServer.ps1 index 15d203987..5992185e9 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EnableAuditingOnServer.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EnableAuditingOnServer.ps1 @@ -1,20 +1,18 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------ +############################################################################## # Script function description: # This script's function is to enable auditing on SUT. # Param $computerName: The computer name of the SUT, string type. -#------------------------------------------------------------------------------ +############################################################################## + param( [string]$computerName = $computerName, [string]$usr = $usr, [string]$pwd = $pwd ) - #---------------------------------------------------------------------------- # Connect Remote Computer #---------------------------------------------------------------------------- diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EnableBasicAuth.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EnableBasicAuth.ps1 index a56c4c00b..7e597e311 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EnableBasicAuth.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EnableBasicAuth.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $pwd = ConvertTo-SecureString $remotePassword -AsPlainText -Force $cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $userName, $pwd diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EndDomainRename.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EndDomainRename.ps1 index cf0d3701a..d8574b5cb 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EndDomainRename.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/EndDomainRename.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # End the domain rename operation. Removes the restrictions placed on the Directory Service # during the rename operation. diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/RemoveLingeringObject.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/RemoveLingeringObject.ps1 index d28470bae..77a85c668 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/RemoveLingeringObject.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/RemoveLingeringObject.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. Param( [string]$dc1Name, diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/RemoveLingeringObjectRemote.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/RemoveLingeringObjectRemote.ps1 index 087e21b49..ee13c91c4 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/RemoveLingeringObjectRemote.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/RemoveLingeringObjectRemote.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #remove lingering object on DC2 diff --git a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/UploadDomainRenameScript.ps1 b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/UploadDomainRenameScript.ps1 index 2f866c8ca..1855b7ea1 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/UploadDomainRenameScript.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-DRSR/SUTControlAdapter/UploadDomainRenameScript.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Upload the domain rename script into the directory that will perform the domain rename related directory changes # on all domain controllers. diff --git a/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/IsDirectoryServiceStopped.ps1 b/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/IsDirectoryServiceStopped.ps1 index 82e5b8f8d..6058acb22 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/IsDirectoryServiceStopped.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/IsDirectoryServiceStopped.ps1 @@ -1,12 +1,10 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#---------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is to get the status of Active Directory Domain Control service on DC computer # if stopped, return $true, else return $false -#---------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/ReadPtfConfig.ps1 b/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/ReadPtfConfig.ps1 index 5ad6858ed..16a641868 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/ReadPtfConfig.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/ReadPtfConfig.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Read the property value which has the given property name from ptfconfig. # param string $name The name of the property to find. diff --git a/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/StartDirectoryService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/StartDirectoryService.ps1 index 610e549fd..cdd900de8 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/StartDirectoryService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/StartDirectoryService.ps1 @@ -1,12 +1,10 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#---------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is to start Active Directory Domain Control service on DC computer # if Running, return $true, else return $false -#---------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/StopDirectoryService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/StopDirectoryService.ps1 index 1e6605dfb..93529beb7 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/StopDirectoryService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-LSAD/NonWindowsSUTImplementation/StopDirectoryService.ps1 @@ -1,12 +1,10 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#---------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is to stop Active Directory Domain Control service on DC computer # if stopped, return $true, else return $false -#---------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/IsDirectoryServiceStopped.ps1 b/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/IsDirectoryServiceStopped.ps1 index 61614bb19..dc4725213 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/IsDirectoryServiceStopped.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/IsDirectoryServiceStopped.ps1 @@ -1,16 +1,14 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: IsDirectoryServiceStopped.ps1 -## Purpose: Get Active Directory Domain Control Service Status -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2 -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: IsDirectoryServiceStopped.ps1 +# Purpose: Get Active Directory Domain Control Service Status +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2 +# ############################################################################## $retVal = $false diff --git a/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/ReadPtfConfig.ps1 b/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/ReadPtfConfig.ps1 index 8504aaed2..88bc1d3b7 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/ReadPtfConfig.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/ReadPtfConfig.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Read the property value which has the given property name from ptfconfig. # param string $name The name of the property to find. diff --git a/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/StartDirectoryService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/StartDirectoryService.ps1 index 2d462d2c8..d6e410cad 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/StartDirectoryService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/StartDirectoryService.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $retVal = $false try diff --git a/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/StopDirectoryService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/StopDirectoryService.ps1 index 9d0815325..3bba483c2 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/StopDirectoryService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-LSAD/SUTControlAdapter/StopDirectoryService.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $retVal = $true try diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ChangeNonDCMachineAccountStatus.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ChangeNonDCMachineAccountStatus.ps1 index 2ef1b0395..3aa0aed59 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ChangeNonDCMachineAccountStatus.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ChangeNonDCMachineAccountStatus.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step 1: This script's first step is to Check the ADAM service is available, # if the parameter $machineObj is null, means the service is not available; @@ -11,6 +9,6 @@ # Step 2: Configure the Account is enable or disable, if the parameter $isEnable # is true, then change the ADAM's value "AccountDisabled"'s status to 0, # otherwise,change it to 1. -#------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ConfigServer.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ConfigServer.ps1 index 247a32f31..034f0f04d 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ConfigServer.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ConfigServer.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is to change the status of the value # "RefusePasswordChange".If the $refusePasswordChange's status is false, # Then change the value "RefusePasswordChange" to 1, # else change the value "RefusePasswordChange" to 0. -#------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ConfigServerRejectMD5Client.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ConfigServerRejectMD5Client.ps1 index b44c33849..2fd82bfef 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ConfigServerRejectMD5Client.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ConfigServerRejectMD5Client.ps1 @@ -1,15 +1,13 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#---------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step 1: This script's first step is to change the status of the value # "RefusePasswordChange".If the $rejectMD5Clients's status is false, # Then change the value "RejectMD5Clients" to 1, # else change the value "RejectMD5Clients" to 0. # Step 2: Restart the NetLogon service -#---------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetAdministratorObjPath.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetAdministratorObjPath.ps1 index 2f31009a6..a95be37a4 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetAdministratorObjPath.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetAdministratorObjPath.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#---------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is recompose the format of the parameter # $objectPath. It must recompose the value for $objectPath to be @@ -12,6 +10,6 @@ # give paraemter $domainNameSuffix's value to dc=$domainNameSuffix; # The last format of $objectPath is this: # cn=Administrator, cn=Users, dc=$domainNetBiosName, dc=$domainNameSuffix -#---------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetAttributeValueFromAD.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetAttributeValueFromAD.ps1 index b63deafed..e40f86f81 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetAttributeValueFromAD.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetAttributeValueFromAD.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#---------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step 1: This script's first step is to check the value $objectPath is available # or not,then use $objectPath to determine the $objectInstance's value. @@ -11,6 +9,6 @@ # Step 2: Second step is to verify the parameter $attribute is available. # if it's available ,then give the $attribute to $value,otherwise, return # null -#---------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetBadPwdCountAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetBadPwdCountAttribute.ps1 index 0ce9a98e2..a4ff793b9 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetBadPwdCountAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetBadPwdCountAttribute.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is give the parameter $objectPath's value from # script "GetAdministratorObjPath.ps1" and give parameter $attribute's value to # another scripts "GetAttributeValueFromAD.ps1", # then get the scripts "GetAttributeValueFromAD.ps1"'s return value. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetClientObjPath.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetClientObjPath.ps1 index 25237f172..2f30fab75 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetClientObjPath.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetClientObjPath.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is recompose the format of the parameter # $objectPath.It must recompose the value for $objectPath to be @@ -13,6 +11,6 @@ # parameter $domainNameSuffix's value to dc=$domainNameSuffix; # The last format of $objectPath is like this: # cn=$clientNetBiosName, cn=computers, dc=$domainNetBiosName, dc=$domainNameSuffix -#----------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetDnsHostNameAttributeOfClient.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetDnsHostNameAttributeOfClient.ps1 index a1ce0364a..f4f69b409 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetDnsHostNameAttributeOfClient.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetDnsHostNameAttributeOfClient.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is give the parameter $objectPath's value from # script "GetClientObjPath.ps1" and give parameter $attribute's value to # another scripts "GetAttributeValueFromAD.ps1", # then get the scripts "GetAttributeValueFromAD.ps1"'s return value. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetHomeDirectoryAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetHomeDirectoryAttribute.ps1 index 0ce9a98e2..a4ff793b9 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetHomeDirectoryAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetHomeDirectoryAttribute.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is give the parameter $objectPath's value from # script "GetAdministratorObjPath.ps1" and give parameter $attribute's value to # another scripts "GetAttributeValueFromAD.ps1", # then get the scripts "GetAttributeValueFromAD.ps1"'s return value. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetHomeDriveAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetHomeDriveAttribute.ps1 index 0ce9a98e2..a4ff793b9 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetHomeDriveAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetHomeDriveAttribute.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is give the parameter $objectPath's value from # script "GetAdministratorObjPath.ps1" and give parameter $attribute's value to # another scripts "GetAttributeValueFromAD.ps1", # then get the scripts "GetAttributeValueFromAD.ps1"'s return value. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetLastLogonAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetLastLogonAttribute.ps1 index 62c30fbed..837d640a0 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetLastLogonAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetLastLogonAttribute.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step 1: This script's first step is recompose the parameter $objectInstance's value # to ADsPath's format,then check it. @@ -11,6 +9,6 @@ # if it's available ,then give the $attribute to $value. # Step 3: Third step is to recompose the format of $lowPart and $highPart by using # these two parameters to assemble like $lowPart+$highPart. -#------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetLogonCountAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetLogonCountAttribute.ps1 index 0ce9a98e2..a4ff793b9 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetLogonCountAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetLogonCountAttribute.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is give the parameter $objectPath's value from # script "GetAdministratorObjPath.ps1" and give parameter $attribute's value to # another scripts "GetAttributeValueFromAD.ps1", # then get the scripts "GetAttributeValueFromAD.ps1"'s return value. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetOperatingSystemAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetOperatingSystemAttribute.ps1 index a1ce0364a..f4f69b409 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetOperatingSystemAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetOperatingSystemAttribute.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is give the parameter $objectPath's value from # script "GetClientObjPath.ps1" and give parameter $attribute's value to # another scripts "GetAttributeValueFromAD.ps1", # then get the scripts "GetAttributeValueFromAD.ps1"'s return value. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetPdcObjPath.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetPdcObjPath.ps1 index 1783cfd45..614cd622c 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetPdcObjPath.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetPdcObjPath.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#----------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is recompose the format of the parameter # $objectPath.It must recompose the value for $objectPath to be @@ -13,6 +11,6 @@ # parameter $domainNameSuffix's value to dc=$domainNameSuffix; # The last format of $objectPath is like this: # cn=$pdcNetBiosName, cn=computers, dc=$domainNetBiosName, dc=$domainNameSuffix -#----------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetProfilePathAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetProfilePathAttribute.ps1 index cc24766b3..13700792d 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetProfilePathAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetProfilePathAttribute.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is give the parameter $objectPath's value from # script "GetAdministratorObjPath.ps1" and give parameter $attribute's value to # another scripts "GetAttributeValueFromAD.ps1", # then get the scripts "GetAttributeValueFromAD.ps1"'s return value. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetPwdLastSetAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetPwdLastSetAttribute.ps1 index 3a6b4d9d9..fa9ffc082 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetPwdLastSetAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetPwdLastSetAttribute.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step 1: This script's function is give the parameter $objectPath's value from # script "GetAdministratorObjPath.ps1" then give it to $objectInstance to @@ -12,6 +10,6 @@ # Step 2: Verify the parameter $adsLargeInteger is available. # Step 3: Third step is to recompose the format of $lowPart and $highPart by using # these two parameters to assemble like $lowPart+$highPart. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetSamAccountNameAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetSamAccountNameAttribute.ps1 index 0ce9a98e2..a4ff793b9 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetSamAccountNameAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetSamAccountNameAttribute.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is give the parameter $objectPath's value from # script "GetAdministratorObjPath.ps1" and give parameter $attribute's value to # another scripts "GetAttributeValueFromAD.ps1", # then get the scripts "GetAttributeValueFromAD.ps1"'s return value. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetScriptPathAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetScriptPathAttribute.ps1 index 0ce9a98e2..a4ff793b9 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetScriptPathAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetScriptPathAttribute.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is give the parameter $objectPath's value from # script "GetAdministratorObjPath.ps1" and give parameter $attribute's value to # another scripts "GetAttributeValueFromAD.ps1", # then get the scripts "GetAttributeValueFromAD.ps1"'s return value. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetServicePrincipalNameAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetServicePrincipalNameAttribute.ps1 index a1ce0364a..f4f69b409 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetServicePrincipalNameAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/GetServicePrincipalNameAttribute.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step : This script's function is give the parameter $objectPath's value from # script "GetClientObjPath.ps1" and give parameter $attribute's value to # another scripts "GetAttributeValueFromAD.ps1", # then get the scripts "GetAttributeValueFromAD.ps1"'s return value. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/PauseNetlogonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/PauseNetlogonService.ps1 index 2d32337aa..ce8ce5173 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/PauseNetlogonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/PauseNetlogonService.ps1 @@ -1,15 +1,13 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step 1: This script's function is change the service's state # that designated from parameter $computerName's value.It must be the # computer's name that have NetLogon service.Then suspend # the appointed computer's netlogon service. # Step 2: Using GC to garbage collection. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ReadPtfConfig.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ReadPtfConfig.ps1 index 5793697a1..a94563e62 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ReadPtfConfig.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ReadPtfConfig.ps1 @@ -1,12 +1,10 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------ +############################################################################## # Script function description: # This script's function is to read the property value which has the given # property name from ptfconfig file. -#------------------------------------------------------------------------------ +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/RestartNetlogonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/RestartNetlogonService.ps1 index 91c04b5af..334e1ea60 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/RestartNetlogonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/RestartNetlogonService.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step 1: This script's function is restart the service that designated from parameter # $computerName's value.It must be the computer's name that have NetLogon # service. # Step 2: Using GC to garbage collection -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/RestoreNetlogonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/RestoreNetlogonService.ps1 index e5e948b68..91e5b5b43 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/RestoreNetlogonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/RestoreNetlogonService.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step 1: This script's function is change the service's state # that designated from parameter $pdcName's value and $tdcName's value. @@ -12,6 +10,6 @@ # netlogon service.If the value equals to "Stopped" then stop the appointed # computer's netlogong serivce. # Step 2: Using GC to garbage collection. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ResumeNetlogonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ResumeNetlogonService.ps1 index f2ad3cdd3..235256214 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ResumeNetlogonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/ResumeNetlogonService.ps1 @@ -1,9 +1,7 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step 1: This script's function is change the service's state # that designated from parameter $computerName's value.First is make sure the @@ -13,6 +11,6 @@ # value.It must be the computer's name that have NetLogon service.then pause # the appointed computer's netlogon service. # Step 2: Using GC to garbage collection. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/SetDnsHostNameAttributeOfClient.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/SetDnsHostNameAttributeOfClient.ps1 index 3c59c06f3..b86600008 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/SetDnsHostNameAttributeOfClient.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/SetDnsHostNameAttributeOfClient.ps1 @@ -1,14 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------ +############################################################################## # This script is used to set the DnsHostName for a clent computer # on Domain Controller Computer. # # Return Value: If this script set the dnsHostName successfully, return TRUE; # Otherwise, return FALSE. -#------------------------------------------------------------------------------ +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/StartNetlogonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/StartNetlogonService.ps1 index c68942406..ec0e3fa5f 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/StartNetlogonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/StartNetlogonService.ps1 @@ -1,15 +1,13 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step 1: This script's function is change the service's state # that designated from parameter $computerName's value.It must be the # computer's name that have NetLogon service.Then start # the appointed computer's netlogon service in force. # Step 2: Using GC to garbage collection. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/StopNetlonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/StopNetlonService.ps1 index 198cbc7ca..8e8756bd2 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/StopNetlonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/NonWindowsSUTImplementation/StopNetlonService.ps1 @@ -1,15 +1,13 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#-------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Step 1: This script's function is change the service's state # that designated from parameter $computerName's value.It must be the # computer's name that have NetLogon service.Then stop # the appointed computer's netlogon service. # Step 2: Using GC to garbage collection. -#-------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ChangeNonDCMachineAccountStatus.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ChangeNonDCMachineAccountStatus.ps1 index 4682bfad0..bf665d666 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ChangeNonDCMachineAccountStatus.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ChangeNonDCMachineAccountStatus.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $computerName = $PTFProp_Common_ENDPOINT_NetbiosName $domainName = $PTFProp_Common_PrimaryDomain_DNSName diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ConfigServer.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ConfigServer.ps1 index c9c70ace8..a32d669b7 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ConfigServer.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ConfigServer.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $computerName = $PTFProp_Common_WritableDC1_NetbiosName diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ConfigServerRejectMD5Client.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ConfigServerRejectMD5Client.ps1 index 796247613..e2b3f1af7 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ConfigServerRejectMD5Client.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ConfigServerRejectMD5Client.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $computerName = $PTFProp_Common_WritableDC1_NetbiosName diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetAdministratorObjPath.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetAdministratorObjPath.ps1 index 751c1c3b7..21b6cd337 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetAdministratorObjPath.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetAdministratorObjPath.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $domainName = $PTFProp_Common_PrimaryDomain_DNSName $normalDomainUserAccount = $PTFProp_Common_DomainAdministratorName diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetAttributeValueFromAD.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetAttributeValueFromAD.ps1 index 74db5df91..e668332aa 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetAttributeValueFromAD.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetAttributeValueFromAD.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Verify required parameters if ($objectPath -eq $null -or $objectPath -eq "") diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetBadPwdCountAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetBadPwdCountAttribute.ps1 index 6f70d0594..447414862 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetBadPwdCountAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetBadPwdCountAttribute.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetClientObjPath.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetClientObjPath.ps1 index 0c4783def..b735cd6ea 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetClientObjPath.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetClientObjPath.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $clientNetBiosName = $PTFProp_Common_ENDPOINT_NetbiosName $domainName = $PTFProp_Common_PrimaryDomain_DNSName diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetDnsHostNameAttributeOfClient.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetDnsHostNameAttributeOfClient.ps1 index 873392649..ccd42f2e2 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetDnsHostNameAttributeOfClient.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetDnsHostNameAttributeOfClient.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetHomeDirectoryAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetHomeDirectoryAttribute.ps1 index 51f9b36f0..585fd9f66 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetHomeDirectoryAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetHomeDirectoryAttribute.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetHomeDriveAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetHomeDriveAttribute.ps1 index 166a73531..5bf1ad690 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetHomeDriveAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetHomeDriveAttribute.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetLastLogonAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetLastLogonAttribute.ps1 index 6d6856418..60a1f5d11 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetLastLogonAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetLastLogonAttribute.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetLogonCountAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetLogonCountAttribute.ps1 index 21bc288a3..ca0b71d26 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetLogonCountAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetLogonCountAttribute.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetOperatingSystemAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetOperatingSystemAttribute.ps1 index e85af65c8..f6be38360 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetOperatingSystemAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetOperatingSystemAttribute.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetPdcObjPath.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetPdcObjPath.ps1 index 39e2f38a4..8d1f4d6e7 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetPdcObjPath.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetPdcObjPath.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $pdcNetBiosName = $PTFProp_Common_WritableDC1_NetbiosName $domainName = $PTFProp_Common_PrimaryDomain_DNSName diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetProfilePathAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetProfilePathAttribute.ps1 index 0ee9cd8df..707d117d9 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetProfilePathAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetProfilePathAttribute.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetPwdLastSetAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetPwdLastSetAttribute.ps1 index 56ec974b3..a932210ce 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetPwdLastSetAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetPwdLastSetAttribute.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # [MethodHelp(@"This method is used to get the PwdLastSet attribute of the Administrator 'users object on the PDC")] # long GetPwdLastSetAttribute(string username, string password); diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetSamAccountNameAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetSamAccountNameAttribute.ps1 index 8970f1e9f..0fb2afbc7 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetSamAccountNameAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetSamAccountNameAttribute.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetScriptPathAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetScriptPathAttribute.ps1 index fd9cd0463..d84cc1134 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetScriptPathAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetScriptPathAttribute.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetServicePrincipalNameAttribute.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetServicePrincipalNameAttribute.ps1 index 35d5e7c85..e809f9ab2 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetServicePrincipalNameAttribute.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/GetServicePrincipalNameAttribute.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/PauseNetlogonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/PauseNetlogonService.ps1 index cbacbb754..f9e8d9ed6 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/PauseNetlogonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/PauseNetlogonService.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. New-Item -Force -ItemType directory -Path c:\temp\ $strFileName="c:\temp\changednetlogonservicestatus.txt" diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ReadPtfConfig.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ReadPtfConfig.ps1 index 02c249c18..3857854da 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ReadPtfConfig.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ReadPtfConfig.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Read the property value which has the given property name from ptfconfig. # param string $name The name of the property to find. diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/RestartNetlogonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/RestartNetlogonService.ps1 index cfd782611..bceb3900a 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/RestartNetlogonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/RestartNetlogonService.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #[MethodHelp(@"This method is used to restart the Netlogon service on the Endpoint and TDC")] # void RestartNetlogonService(string endpointName, string tdcName); diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/RestoreNetlogonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/RestoreNetlogonService.ps1 index ac484ab04..6a1f36d08 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/RestoreNetlogonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/RestoreNetlogonService.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # [MethodHelp(@"This method is used to restore the Netlogon service on the PDC and TDC")] # void RestoreNetlogonService(string pdcName, string tdcName); diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ResumeNetlogonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ResumeNetlogonService.ps1 index d87a47aa5..0d7e21ee5 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ResumeNetlogonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/ResumeNetlogonService.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $waitingTime = $PTFProp_MS_NRPC_Adapter_WaitingTime diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/SetDnsHostNameAttributeOfClient.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/SetDnsHostNameAttributeOfClient.ps1 index c62a9c5d2..2e5450360 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/SetDnsHostNameAttributeOfClient.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/SetDnsHostNameAttributeOfClient.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition Push-Location $PSScriptRoot diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/StartNetlogonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/StartNetlogonService.ps1 index 33e654a24..07aaead0f 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/StartNetlogonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/StartNetlogonService.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $computerName = $PTFProp_Common_WritableDC1_NetbiosName diff --git a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/StopNetlogonService.ps1 b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/StopNetlogonService.ps1 index 994d339ef..12cbdd69d 100644 --- a/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/StopNetlogonService.ps1 +++ b/TestSuites/ADFamily/src/Adapter/MS-NRPC/SUTControlAdapter/StopNetlogonService.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. New-Item -Force -ItemType directory -Path c:\temp\ $strFileName="c:\temp\changednetlogonservicestatus.txt" diff --git a/TestSuites/ADFamily/src/Batch/RunDRSR.ps1 b/TestSuites/ADFamily/src/Batch/RunDRSR.ps1 index e8b69284d..a8b648b01 100644 --- a/TestSuites/ADFamily/src/Batch/RunDRSR.ps1 +++ b/TestSuites/ADFamily/src/Batch/RunDRSR.ps1 @@ -1,7 +1,5 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. switch -Wildcard ([environment]::OSVersion.Version) { diff --git a/TestSuites/BranchCache/Scripts/BindSSLCert.ps1 b/TestSuites/BranchCache/Scripts/BindSSLCert.ps1 index 444bac78b..49798e10a 100644 --- a/TestSuites/BranchCache/Scripts/BindSSLCert.ps1 +++ b/TestSuites/BranchCache/Scripts/BindSSLCert.ps1 @@ -1,11 +1,10 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # This function is used to import the cert with password into the appointed cert store -#------------------------------------------------------------------------------------- +############################################################################## + param( [String]$certhash="5873ce11f1c4ed311a61d0510f998a90bf7331c9", [String]$appid="{d673f5ee-a714-454d-8de2-492e4c1bd8f8}", diff --git a/TestSuites/BranchCache/Scripts/ConfigContentServer.ps1 b/TestSuites/BranchCache/Scripts/ConfigContentServer.ps1 index 4fc3250c1..7b51e93ee 100644 --- a/TestSuites/BranchCache/Scripts/ConfigContentServer.ps1 +++ b/TestSuites/BranchCache/Scripts/ConfigContentServer.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/BranchCache/Scripts/ConfigHostedCacheServer.ps1 b/TestSuites/BranchCache/Scripts/ConfigHostedCacheServer.ps1 index 92f75fa0d..e487e750f 100644 --- a/TestSuites/BranchCache/Scripts/ConfigHostedCacheServer.ps1 +++ b/TestSuites/BranchCache/Scripts/ConfigHostedCacheServer.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/BranchCache/Scripts/CreateRODC.ps1 b/TestSuites/BranchCache/Scripts/CreateRODC.ps1 index 790a70982..f0c5fa51a 100644 --- a/TestSuites/BranchCache/Scripts/CreateRODC.ps1 +++ b/TestSuites/BranchCache/Scripts/CreateRODC.ps1 @@ -1,13 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/BranchCache/Scripts/DeployTestFile.ps1 b/TestSuites/BranchCache/Scripts/DeployTestFile.ps1 index 4ebca79b0..44c87fa6f 100644 --- a/TestSuites/BranchCache/Scripts/DeployTestFile.ps1 +++ b/TestSuites/BranchCache/Scripts/DeployTestFile.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/BranchCache/Scripts/TrustHostedCacheServer.ps1 b/TestSuites/BranchCache/Scripts/TrustHostedCacheServer.ps1 index 5cc7366be..78c7ae2c8 100644 --- a/TestSuites/BranchCache/Scripts/TrustHostedCacheServer.ps1 +++ b/TestSuites/BranchCache/Scripts/TrustHostedCacheServer.ps1 @@ -1,11 +1,10 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#---------------------------------------------------------------------------- +############################################################################## # This function is used to add the cert with password into cert store -#---------------------------------------------------------------------------- +############################################################################## + param( [String]$certpath="c:\temp\Data\Certificate.pfx", [String]$rootCertStore = "LocalMachine", @@ -26,7 +25,6 @@ $env:Path += ";$scriptPath;$scriptPath\Scripts" try { Stop-Transcript -ErrorAction SilentlyContinue } catch {} # Ignore Stop-Transcript error messages Start-Transcript -Path "$logFile" -Append -Force - #---------------------------------------------------------------------------- # Define common functions #---------------------------------------------------------------------------- diff --git a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearCache.ps1 b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearCache.ps1 index 9075d01cd..c4ad47ab9 100644 --- a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearCache.ps1 +++ b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearCache.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $credential = ./WindowsSUTControlAdapter/CreatePSCredential.ps1 Invoke-Command -ComputerName $computerName {netsh branchcache flush} -Credential $credential diff --git a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearHTTPHash.ps1 b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearHTTPHash.ps1 index 9075d01cd..c4ad47ab9 100644 --- a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearHTTPHash.ps1 +++ b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearHTTPHash.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $credential = ./WindowsSUTControlAdapter/CreatePSCredential.ps1 Invoke-Command -ComputerName $computerName {netsh branchcache flush} -Credential $credential diff --git a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearSMB2Hash.ps1 b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearSMB2Hash.ps1 index 30bbcee01..18cbfaeb1 100644 --- a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearSMB2Hash.ps1 +++ b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/ClearSMB2Hash.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $credential = ./WindowsSUTControlAdapter/CreatePSCredential.ps1 Invoke-Command -ComputerName $computerName { param($path) hashgen -d $path } -Args $path -Credential $credential diff --git a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/CreatePSCredential.ps1 b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/CreatePSCredential.ps1 index 96aaf5893..491339f45 100644 --- a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/CreatePSCredential.ps1 +++ b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/CreatePSCredential.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. [string]$domain = $PtfProp_DomainName [string]$userName = $PtfProp_UserName diff --git a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/GenerateSMB2Hash.ps1 b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/GenerateSMB2Hash.ps1 index 931e3fe7d..73be4a376 100644 --- a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/GenerateSMB2Hash.ps1 +++ b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/GenerateSMB2Hash.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $credential = ./WindowsSUTControlAdapter/CreatePSCredential.ps1 Invoke-Command -ComputerName $computerName { param($path) hashgen $path } -Args $path -Credential $credential diff --git a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/IsHTTPHashExisted.ps1 b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/IsHTTPHashExisted.ps1 index ef1bebdcb..d7d906260 100644 --- a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/IsHTTPHashExisted.ps1 +++ b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/IsHTTPHashExisted.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $credential = ./WindowsSUTControlAdapter/CreatePSCredential.ps1 $status = Invoke-Command -ComputerName $computerName {netsh branchcache show publicationcache} -Credential $credential diff --git a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/IsLocalCacheExisted.ps1 b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/IsLocalCacheExisted.ps1 index 36c93fa71..645bab0a0 100644 --- a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/IsLocalCacheExisted.ps1 +++ b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/IsLocalCacheExisted.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $credential = ./WindowsSUTControlAdapter/CreatePSCredential.ps1 $status = Invoke-Command -ComputerName $computerName {netsh branchcache show localcache} -Credential $credential diff --git a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/RestartBranchCacheService.ps1 b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/RestartBranchCacheService.ps1 index 9e2db24a5..39bfb9533 100644 --- a/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/RestartBranchCacheService.ps1 +++ b/TestSuites/BranchCache/src/Adapter/WindowsSUTControlAdapter/RestartBranchCacheService.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $credential = ./WindowsSUTControlAdapter/CreatePSCredential.ps1 Invoke-Command -ComputerName $computerName {restart-service peerdistsvc} -Credential $credential diff --git a/TestSuites/BranchCache/src/Batch/RunBranchCacheTestCases.cmd b/TestSuites/BranchCache/src/Batch/RunBranchCacheTestCases.cmd index 4a434451e..040dd55d4 100644 --- a/TestSuites/BranchCache/src/Batch/RunBranchCacheTestCases.cmd +++ b/TestSuites/BranchCache/src/Batch/RunBranchCacheTestCases.cmd @@ -1,3 +1,6 @@ +:: Copyright (c) Microsoft. All rights reserved. +:: Licensed under the MIT license. See LICENSE file in the project root for full license information. + @echo off :choosesut diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ClearApplicationBuffer.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ClearApplicationBuffer.ps1 index e6bac034b..4fef84041 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ClearApplicationBuffer.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ClearApplicationBuffer.ps1 @@ -1,15 +1,13 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Clear the internet browser cache on the computer that is designated from parameter # $computerName's value. # Step 1: Kill internet browser process. # Step 2: Delete all files and settings of the browsing history. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$remoteComputer = $computerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ClearBranchCacheBuffer.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ClearBranchCacheBuffer.ps1 index edc8d60bf..ff4faeb26 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ClearBranchCacheBuffer.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ClearBranchCacheBuffer.ps1 @@ -1,16 +1,14 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: This script's function is to clear the branch cache buffer on the remote # server that is designated from parameter $computerName's value. # Step 1: stop the branch cache service on the remote server. # Step 2: Clear the branch cache's local cache on the remote server. # Step 3: Start the branch cache service on the remote server. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$ServerComputerName = $computerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/EndTaskandRestartService.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/EndTaskandRestartService.ps1 index 07fe32119..69ba9d9bf 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/EndTaskandRestartService.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/EndTaskandRestartService.ps1 @@ -1,9 +1,7 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: End Task and restart branch cache service on the computer # that is designated from parameter $SUTName's value. @@ -12,7 +10,7 @@ # $ProcessName's value. # Step 3: Restart the branch cache service designeted from parameter $serviceName's value. # Step 4: Clean cache including branch cache's local cache and download or upload cache. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$ServerComputerName = $SUTName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/GetHashComputationStatus.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/GetHashComputationStatus.ps1 index 061968d8c..80b309e00 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/GetHashComputationStatus.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/GetHashComputationStatus.ps1 @@ -1,13 +1,11 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Get the status whether the hash computation is completed. # Step 1: Get the status whether the hash computation is completed. # Step 2: Write the status into $ENV:HOMEDRIVE\MS-PCCRTP\isFinished.txt. -#------------------------------------------------------------------------------------- +############################################################################## cmd /c exit \ No newline at end of file diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/IsHashComputationFinished.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/IsHashComputationFinished.ps1 index e2cdc1435..ae13042ef 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/IsHashComputationFinished.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/IsHashComputationFinished.ps1 @@ -1,9 +1,7 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Get the status whether the hash computation is completed on the remote # computer which is designated from the parameter $sutName's value. @@ -12,7 +10,7 @@ # invoking RemoteExecuteCommand script. # Step 2: Get the content from the specified file # \\$ServerComputerName\MS-PCCRTP\IsFinished.txt -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$ServerComputerName = $sutName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ModifyHostedCacheProtocolPort.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ModifyHostedCacheProtocolPort.ps1 index e8c88a97e..609f02bea 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ModifyHostedCacheProtocolPort.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/ModifyHostedCacheProtocolPort.ps1 @@ -1,9 +1,7 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Fuction: Modify the hosted cache protocol port which is designated by the parameter # $newPort's value. @@ -14,7 +12,7 @@ # Or modify the hosted cache listen port on the hosted cache server which is # designated by the parameter $hostedServerComputerName's value through updating # the registry remotely from a 32 bit application. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$hostedClient = $hostedClientComputerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/RemoteExecuteCommand.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/RemoteExecuteCommand.ps1 index 8d0ca66f9..81a7004ff 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/RemoteExecuteCommand.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/RemoteExecuteCommand.ps1 @@ -1,15 +1,13 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Execute a command on a remote computer which is designated from the parameter # $computerName's value. The command is specified by $cmdLine's value. # Step 1: Connect to the remote computer. # Step 2: Remote execute command. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$computerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/RestartService.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/RestartService.ps1 index 3bad27c40..600fcdb32 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/RestartService.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/RestartService.ps1 @@ -1,14 +1,12 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Restart a service on a remote computer which is designated from parameter # $remoteComputerName's value. The service is specified by $serviceName's value. # Step 1: Restart the service. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$ServerComputerName = $remoteComputerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetBackoffTimer.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetBackoffTimer.ps1 index 05d42791c..afaaf3f90 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetBackoffTimer.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetBackoffTimer.ps1 @@ -1,16 +1,14 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Set backoff timer about protocol pccrr on a remote computer which is # designated from parameter $computerName's value. # The backoff timer is specified by $timerInMilliseconds's value. # Step 1: Set backoff timer about protocol pccrr through updating the registry # remotely from a 32 bit application. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$value = $timerInMilliseconds, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetHostedCacheAuthentication.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetHostedCacheAuthentication.ps1 index 05756df6a..eedaeb09f 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetHostedCacheAuthentication.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetHostedCacheAuthentication.ps1 @@ -1,9 +1,7 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Set hosted cache client authentication mechanism # on a remote computer which is designated from parameter $sutComputer's value. @@ -11,7 +9,7 @@ # $isAuthentication's value. # Step 1: Execute the client authentication set command line on the remote computer # through invoking RemoteExecuteCommand script. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$isAuthentication = $isAuthentication, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetRequestPort.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetRequestPort.ps1 index b29d475fd..292f8dad8 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetRequestPort.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetRequestPort.ps1 @@ -1,16 +1,14 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Set request port about pccrr on a remote computer which is designated # from parameter $computerName's value. The port is specified by parameter # $port's value. # Step 1: Set request port about pccrr through updating the registry remotely from # a 32 bit application. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$value = $port, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetRequestTimer.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetRequestTimer.ps1 index 47dd991c1..70833ce78 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetRequestTimer.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/SetRequestTimer.ps1 @@ -1,16 +1,14 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Funtion: Set request timer about pccrr on a remote computer which is designated from # parameter $computerName's value. The timer is specified by parameter # $timerInMilliseconds's value. # Step 1: Set request timer about pccrr through updating the registry remotely from # a 32 bit application. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$value = $timerInMilliseconds, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/StartService.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/StartService.ps1 index 39ec4530d..48d971b58 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/StartService.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/StartService.ps1 @@ -1,15 +1,13 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Start a service on a remote computer which is designated from parameter # $remoteComputerName's value. The service is specified by $serviceName's value. # Step 1: Start the remote computer's specified service. # Step 2: Using GC to garbage collection. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$computerName = $remoteComputerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/StopService.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/StopService.ps1 index 08522ea22..058af8633 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/StopService.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/StopService.ps1 @@ -1,15 +1,13 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Stop a service on a remote computer which is designated from parameter # $remoteComputerName's value. The service is specified by $serviceName's value. # Step 1: Stop the remote computer's specified service. # Step 2: Using GC to garbage collection. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$computerName = $remoteComputerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/TriggerPeerClientSendMSGGETBLKLIST.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/TriggerPeerClientSendMSGGETBLKLIST.ps1 index 7dde3f9ba..e7d57db50 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/TriggerPeerClientSendMSGGETBLKLIST.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/TriggerPeerClientSendMSGGETBLKLIST.ps1 @@ -1,9 +1,7 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Trigger peer client send gGETBLKLIST message. # The peer client is designated from parameter $SUTName's value. @@ -17,7 +15,7 @@ # in Step 2 on peer client. # Step 4: Run the schedule task "Welcome" created in Step 3 to execute the created # bache file on peer client. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$ServerComputerName = $SUTName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/TriggerPeerGetContentCache.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/TriggerPeerGetContentCache.ps1 index b7ff4a915..78f47aead 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/TriggerPeerGetContentCache.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/NonWindowsSUTImplementation/TriggerPeerGetContentCache.ps1 @@ -1,9 +1,7 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -#------------------------------------------------------------------------------------- +############################################################################## # Script function description: # Function: Trigger the peer client to get content from # the content server which is designated from parameter $contentServerName's @@ -11,7 +9,7 @@ # The content is specified by the parameter $contentUri's value. # Step 1: Clear the cache including browser cache and branch cache on the peer client. # Step 2: Open the browser to get the content from the content server on the peer client. -#------------------------------------------------------------------------------------- +############################################################################## param( [string]$ServerComputerName = $peerServerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ClearApplicationBuffer.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ClearApplicationBuffer.ps1 index 254b03d47..c25f4d1c2 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ClearApplicationBuffer.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ClearApplicationBuffer.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$remoteComputer = $computerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ClearBranchCacheBuffer.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ClearBranchCacheBuffer.ps1 index 2ddbcef3c..fa3ccaf11 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ClearBranchCacheBuffer.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ClearBranchCacheBuffer.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$ServerComputerName = $computerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/EndTaskandRestartService.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/EndTaskandRestartService.ps1 index faacdcc4a..29f05dff3 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/EndTaskandRestartService.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/EndTaskandRestartService.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$ServerComputerName = $SUTName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/GetHashComputationStatus.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/GetHashComputationStatus.ps1 index c2e44ae52..15a2b0085 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/GetHashComputationStatus.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/GetHashComputationStatus.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $isFinished = $false diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/IsHashComputationFinished.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/IsHashComputationFinished.ps1 index 2c22b73ca..76ab3abfe 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/IsHashComputationFinished.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/IsHashComputationFinished.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #---------------------------------------------------------------------------- # Set commandline paramter value. diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ModifyHostedCacheProtocolPort.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ModifyHostedCacheProtocolPort.ps1 index 4b2575d2d..193129f3d 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ModifyHostedCacheProtocolPort.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/ModifyHostedCacheProtocolPort.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$hostedClient = $hostedClientComputerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/RemoteExecuteCommand.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/RemoteExecuteCommand.ps1 index 55078ab13..e78e2f2a3 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/RemoteExecuteCommand.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/RemoteExecuteCommand.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$computerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/RestartService.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/RestartService.ps1 index c560957b8..69d121201 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/RestartService.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/RestartService.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$ServerComputerName = $remoteComputerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetBackoffTimer.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetBackoffTimer.ps1 index 52a2afe2a..5966045b5 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetBackoffTimer.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetBackoffTimer.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$value = $timerInMilliseconds, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetHostedCacheAuthentication.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetHostedCacheAuthentication.ps1 index 04cd192e0..439674ccc 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetHostedCacheAuthentication.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetHostedCacheAuthentication.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$isAuthentication = $isAuthentication, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetRequestPort.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetRequestPort.ps1 index 5eb9cf3eb..5e2de358b 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetRequestPort.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetRequestPort.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$value = $port, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetRequestTimer.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetRequestTimer.ps1 index f169b55c7..299ad9076 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetRequestTimer.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/SetRequestTimer.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$value = $timerInMilliseconds, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/StartService.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/StartService.ps1 index 88a38705e..197d886d1 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/StartService.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/StartService.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$computerName = $computerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/StopService.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/StopService.ps1 index e3ab99aea..e40f394b0 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/StopService.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/StopService.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$computerName = $computerName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/TriggerPeerClientSendMSGGETBLKLIST.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/TriggerPeerClientSendMSGGETBLKLIST.ps1 index 0bf704016..f320c3d93 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/TriggerPeerClientSendMSGGETBLKLIST.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/TriggerPeerClientSendMSGGETBLKLIST.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$ServerComputerName = $SUTName, diff --git a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/TriggerPeerGetContentCache.ps1 b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/TriggerPeerGetContentCache.ps1 index 284462934..235ac62b4 100644 --- a/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/TriggerPeerGetContentCache.ps1 +++ b/TestSuites/BranchCache/src/COMMON/SUTControlAdapter/SUTControlAdapter/TriggerPeerGetContentCache.ps1 @@ -1,7 +1,5 @@ -###################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -###################################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$ServerComputerName = $peerServerName, diff --git a/TestSuites/FileServer/Setup/Scripts/Check-ClusterNodeStatus.ps1 b/TestSuites/FileServer/Setup/Scripts/Check-ClusterNodeStatus.ps1 index 8da12b4d9..3898c3445 100644 --- a/TestSuites/FileServer/Setup/Scripts/Check-ClusterNodeStatus.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Check-ClusterNodeStatus.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( $workingDir = "$env:SystemDrive\Temp", diff --git a/TestSuites/FileServer/Setup/Scripts/Check-DCStatus.ps1 b/TestSuites/FileServer/Setup/Scripts/Check-DCStatus.ps1 index dc3da350a..5b332537b 100644 --- a/TestSuites/FileServer/Setup/Scripts/Check-DCStatus.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Check-DCStatus.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( $workingDir = "$env:SystemDrive\Temp", diff --git a/TestSuites/FileServer/Setup/Scripts/Check-StorageStatus.ps1 b/TestSuites/FileServer/Setup/Scripts/Check-StorageStatus.ps1 index e2be91975..001be1d1f 100644 --- a/TestSuites/FileServer/Setup/Scripts/Check-StorageStatus.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Check-StorageStatus.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [ValidateSet("CreateCheckerTask", "StartChecker")] diff --git a/TestSuites/FileServer/Setup/Scripts/Config-AsymmetryMode.ps1 b/TestSuites/FileServer/Setup/Scripts/Config-AsymmetryMode.ps1 index 4c443329e..65e8e6150 100644 --- a/TestSuites/FileServer/Setup/Scripts/Config-AsymmetryMode.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Config-AsymmetryMode.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/FileServer/Setup/Scripts/Config-ClusterNode2.ps1 b/TestSuites/FileServer/Setup/Scripts/Config-ClusterNode2.ps1 index 49202578d..bbc41040a 100644 --- a/TestSuites/FileServer/Setup/Scripts/Config-ClusterNode2.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Config-ClusterNode2.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param($workingDir = "$env:SystemDrive\Temp", $protocolConfigFile = "$workingDir\Protocol.xml") diff --git a/TestSuites/FileServer/Setup/Scripts/Config-ForceLevel2.ps1 b/TestSuites/FileServer/Setup/Scripts/Config-ForceLevel2.ps1 index 91477e225..f80622da6 100644 --- a/TestSuites/FileServer/Setup/Scripts/Config-ForceLevel2.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Config-ForceLevel2.ps1 @@ -1,8 +1,5 @@ -############################################################################# # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -# -############################################################################# param($workingDir = "$env:SystemDrive\Temp", $protocolConfigFile = "$workingDir\Protocol.xml") diff --git a/TestSuites/FileServer/Setup/Scripts/Config-GroupPolicyForClaims.ps1 b/TestSuites/FileServer/Setup/Scripts/Config-GroupPolicyForClaims.ps1 index 2f6059b97..8df482c97 100644 --- a/TestSuites/FileServer/Setup/Scripts/Config-GroupPolicyForClaims.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Config-GroupPolicyForClaims.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/FileServer/Setup/Scripts/Connect-IscsiTarget.ps1 b/TestSuites/FileServer/Setup/Scripts/Connect-IscsiTarget.ps1 index 4daae59e3..79e8824a9 100644 --- a/TestSuites/FileServer/Setup/Scripts/Connect-IscsiTarget.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Connect-IscsiTarget.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param($workingDir = "$env:SystemDrive\Temp", $protocolConfigFile = "$workingDir\Protocol.xml") diff --git a/TestSuites/FileServer/Setup/Scripts/Copy-Vhdx.ps1 b/TestSuites/FileServer/Setup/Scripts/Copy-Vhdx.ps1 index b8a2ad8bf..50b603b55 100644 --- a/TestSuites/FileServer/Setup/Scripts/Copy-Vhdx.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Copy-Vhdx.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param($workingDir = "$env:SystemDrive\Temp", $protocolConfigFile = "$workingDir\Protocol.xml") diff --git a/TestSuites/FileServer/Setup/Scripts/Create-AuthEnv.ps1 b/TestSuites/FileServer/Setup/Scripts/Create-AuthEnv.ps1 index 6799a7335..bf98e8aeb 100644 --- a/TestSuites/FileServer/Setup/Scripts/Create-AuthEnv.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Create-AuthEnv.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/FileServer/Setup/Scripts/Create-CbacObjectsInDC.ps1 b/TestSuites/FileServer/Setup/Scripts/Create-CbacObjectsInDC.ps1 index 91e409f5c..2c15a74e8 100644 --- a/TestSuites/FileServer/Setup/Scripts/Create-CbacObjectsInDC.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Create-CbacObjectsInDC.ps1 @@ -1,8 +1,6 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + param($workingDir = "$env:SystemDrive\Temp") #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/FileServer/Setup/Scripts/Create-DFSCEnv.ps1 b/TestSuites/FileServer/Setup/Scripts/Create-DFSCEnv.ps1 index a8f28395d..714a5e28f 100644 --- a/TestSuites/FileServer/Setup/Scripts/Create-DFSCEnv.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Create-DFSCEnv.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param($workingDir = "$env:SystemDrive\Temp", $protocolConfigFile = "$workingDir\Protocol.xml") diff --git a/TestSuites/FileServer/Setup/Scripts/Create-DNSRecords.ps1 b/TestSuites/FileServer/Setup/Scripts/Create-DNSRecords.ps1 index dbf6d67d8..6ce862085 100644 --- a/TestSuites/FileServer/Setup/Scripts/Create-DNSRecords.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Create-DNSRecords.ps1 @@ -1,22 +1,20 @@ -########################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Create-DNSRecords.ps1 -## Purpose: Create static DNS records for Cluster and GeneralFS. -## Requirements: Windows Powershell 5.0 -## Supported OS: Windows Server 2012 R2, Windows Server 2016, and later. -## Input parameter is -## workingDir : The working directory for the script execution -## protocolConfigFile : Path to the XML configuration file for the current test environment -## Process: -## 1. Read the host names and IP addresses of Cluster and GeneralFS from XML configuration file. -## 2. Add static DNS records to resolve host names to host IP addresses. -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Create-DNSRecords.ps1 +# Purpose: Create static DNS records for Cluster and GeneralFS. +# Requirements: Windows Powershell 5.0 +# Supported OS: Windows Server 2012 R2, Windows Server 2016, and later. +# Input parameter is +# workingDir : The working directory for the script execution +# protocolConfigFile : Path to the XML configuration file for the current test environment +# Process: +# 1. Read the host names and IP addresses of Cluster and GeneralFS from XML configuration file. +# 2. Add static DNS records to resolve host names to host IP addresses. +############################################################################## param($workingDir = "$env:SystemDrive\Temp", $protocolConfigFile = "$workingDir\Protocol.xml") diff --git a/TestSuites/FileServer/Setup/Scripts/Create-FSAEnv.ps1 b/TestSuites/FileServer/Setup/Scripts/Create-FSAEnv.ps1 index 88c567680..594efa932 100644 --- a/TestSuites/FileServer/Setup/Scripts/Create-FSAEnv.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Create-FSAEnv.ps1 @@ -1,14 +1,14 @@ -######################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -## Microsoft Windows Powershell Scripting -## File: Create-FSAEnv.ps1 -## Purpose: Create ShareFolder and relevant files in SUT for MS-FSA test suite -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2012, Windows Server 2012 R2 -## -######################################################################################### +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Create-FSAEnv.ps1 +# Purpose: Create ShareFolder and relevant files in SUT for MS-FSA test suite +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2012, Windows Server 2012 R2 +# +############################################################################## #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/FileServer/Setup/Scripts/Create-IscsiTarget.ps1 b/TestSuites/FileServer/Setup/Scripts/Create-IscsiTarget.ps1 index 6c93b2ce0..538060ffc 100644 --- a/TestSuites/FileServer/Setup/Scripts/Create-IscsiTarget.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Create-IscsiTarget.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param($workingDir = "$env:SystemDrive\Temp", $protocolConfigFile = "$workingDir\Protocol.xml") diff --git a/TestSuites/FileServer/Setup/Scripts/Create-SMB2Env.ps1 b/TestSuites/FileServer/Setup/Scripts/Create-SMB2Env.ps1 index 673c146a6..eb28fd94d 100644 --- a/TestSuites/FileServer/Setup/Scripts/Create-SMB2Env.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Create-SMB2Env.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param($workingDir = "$env:SystemDrive\Temp", $protocolConfigFile = "$workingDir\Protocol.xml") diff --git a/TestSuites/FileServer/Setup/Scripts/Create-SMBShare.ps1 b/TestSuites/FileServer/Setup/Scripts/Create-SMBShare.ps1 index 757c1a553..49b3800c3 100644 --- a/TestSuites/FileServer/Setup/Scripts/Create-SMBShare.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Create-SMBShare.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param([string]$Name,[string]$Path,[string]$FullAccess,[string]$CachingMode="none",[bool]$EncryptData=$false) diff --git a/TestSuites/FileServer/Setup/Scripts/Create-ServerFailoverEnv.ps1 b/TestSuites/FileServer/Setup/Scripts/Create-ServerFailoverEnv.ps1 index 2612ef047..0c92f5f8f 100644 --- a/TestSuites/FileServer/Setup/Scripts/Create-ServerFailoverEnv.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Create-ServerFailoverEnv.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param($workingDir = "$env:SystemDrive\Temp", $protocolConfigFile = "$workingDir\Protocol.xml") diff --git a/TestSuites/FileServer/Setup/Scripts/Import-GPOForClaims.ps1 b/TestSuites/FileServer/Setup/Scripts/Import-GPOForClaims.ps1 index ac9a26deb..faab67755 100644 --- a/TestSuites/FileServer/Setup/Scripts/Import-GPOForClaims.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Import-GPOForClaims.ps1 @@ -1,8 +1,6 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + param($workingDir = "$env:SystemDrive\Temp") #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/FileServer/Setup/Scripts/Install-WindowsFeature.ps1 b/TestSuites/FileServer/Setup/Scripts/Install-WindowsFeature.ps1 index 78d027ee5..505141fab 100644 --- a/TestSuites/FileServer/Setup/Scripts/Install-WindowsFeature.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Install-WindowsFeature.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/FileServer/Setup/Scripts/Set-ComputerPassword.ps1 b/TestSuites/FileServer/Setup/Scripts/Set-ComputerPassword.ps1 index f4316c162..b3ea11365 100644 --- a/TestSuites/FileServer/Setup/Scripts/Set-ComputerPassword.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Set-ComputerPassword.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/FileServer/Setup/Scripts/Set-RequireSigning.ps1 b/TestSuites/FileServer/Setup/Scripts/Set-RequireSigning.ps1 index 54c5ee621..52af8592d 100644 --- a/TestSuites/FileServer/Setup/Scripts/Set-RequireSigning.ps1 +++ b/TestSuites/FileServer/Setup/Scripts/Set-RequireSigning.ps1 @@ -1,8 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. #---------------------------------------------------------------------------- # Global variables diff --git a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/DisableClusterNode.ps1 b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/DisableClusterNode.ps1 index b695fc420..2409fe36f 100644 --- a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/DisableClusterNode.ps1 +++ b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/DisableClusterNode.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. [string]$nodeName [string]$domain = $PtfProp_Common_DomainName diff --git a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/EnableClusterNode.ps1 b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/EnableClusterNode.ps1 index ec11ea694..be073c3fb 100644 --- a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/EnableClusterNode.ps1 +++ b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/EnableClusterNode.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. [string]$nodeName [string]$domain = $PtfProp_Common_DomainName diff --git a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/FlushDNS.ps1 b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/FlushDNS.ps1 index d6de99c11..3b41fd356 100644 --- a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/FlushDNS.ps1 +++ b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/FlushDNS.ps1 @@ -1,6 +1,4 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. ipconfig /flushdns diff --git a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/GetClusterNodeStatus.ps1 b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/GetClusterNodeStatus.ps1 index 44db60cd1..06ccc9366 100644 --- a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/GetClusterNodeStatus.ps1 +++ b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/GetClusterNodeStatus.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. [string]$nodeName [string]$clusterName = $PtfProp_Cluster_ClusterName diff --git a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/GetClusterResourceOwner.ps1 b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/GetClusterResourceOwner.ps1 index bb4b705c3..2deb49c08 100644 --- a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/GetClusterResourceOwner.ps1 +++ b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/GetClusterResourceOwner.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. [string]$resName [string]$clusterName = $PtfProp_Cluster_ClusterName diff --git a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/MoveClusterResourceOwner.ps1 b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/MoveClusterResourceOwner.ps1 index eaed88cef..d29e046a0 100644 --- a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/MoveClusterResourceOwner.ps1 +++ b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/MoveClusterResourceOwner.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. [string]$resName [string]$nodeName diff --git a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/MoveSmbWitnessClient.ps1 b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/MoveSmbWitnessClient.ps1 index a3a268d57..ecab744f9 100644 --- a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/MoveSmbWitnessClient.ps1 +++ b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/MoveSmbWitnessClient.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. [string]$clientName [string]$nodeName diff --git a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/RefreshNetAdapter.ps1 b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/RefreshNetAdapter.ps1 index 2a3266895..b28d927e1 100644 --- a/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/RefreshNetAdapter.ps1 +++ b/TestSuites/FileServer/src/ServerFailover/Adapter/WindowsSutControlAdapter/RefreshNetAdapter.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. [string]$IPAddress [string]$nodeName diff --git a/TestSuites/Kerberos/Setup/Scripts/Configure-AP01.ps1 b/TestSuites/Kerberos/Setup/Scripts/Configure-AP01.ps1 index 5a8fbe1a4..338c714a3 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Configure-AP01.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Configure-AP01.ps1 @@ -1,25 +1,24 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Configure-AP01.ps1 -## Purpose: Configure the Local Realm Application Server computer for Kerberos -## Server test suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Configure-AP01.ps1 +# Purpose: Configure the Local Realm Application Server computer for Kerberos +# Server test suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/Kerberos/Setup/Scripts/Configure-AP02.ps1 b/TestSuites/Kerberos/Setup/Scripts/Configure-AP02.ps1 index c0f1c8291..0a4cf16d9 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Configure-AP02.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Configure-AP02.ps1 @@ -1,25 +1,24 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Configure-AP02.ps1 -## Purpose: Configure the Trust Realm Application Server computer for Kerberos -## Server test suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Configure-AP02.ps1 +# Purpose: Configure the Trust Realm Application Server computer for Kerberos +# Server test suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/Kerberos/Setup/Scripts/Configure-DC01.ps1 b/TestSuites/Kerberos/Setup/Scripts/Configure-DC01.ps1 index a1d97ce32..a48a8747c 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Configure-DC01.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Configure-DC01.ps1 @@ -1,24 +1,23 @@ -############################################################################# # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Configure-DC01.ps1 -## Purpose: Configure the Local Realm KDC computer for Kerberos Server test suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Configure-DC01.ps1 +# Purpose: Configure the Local Realm KDC computer for Kerberos Server test suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/Kerberos/Setup/Scripts/Configure-DC02.ps1 b/TestSuites/Kerberos/Setup/Scripts/Configure-DC02.ps1 index ff666767e..71cc8e784 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Configure-DC02.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Configure-DC02.ps1 @@ -1,24 +1,23 @@ -############################################################################# # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Configure-DC02.ps1 -## Purpose: Configure the Trust Realm KDC computer for Kerberos Server test suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Configure-DC02.ps1 +# Purpose: Configure the Trust Realm KDC computer for Kerberos Server test suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] @@ -135,7 +134,6 @@ Function Init-Environment() Read-ConfigParameters } - #------------------------------------------------------------------------------------------ # Function: Complete-Configure # Write signal file, stop the transcript logging and remove the scedule task @@ -155,7 +153,6 @@ Function Complete-Configure RestartAndRunFinish.ps1 } - #------------------------------------------------------------------------------------------ # Function: Config-DC02 # Configure the environment DC02: diff --git a/TestSuites/Kerberos/Setup/Scripts/Configure-ENDPOINT.ps1 b/TestSuites/Kerberos/Setup/Scripts/Configure-ENDPOINT.ps1 index 1b72e72a2..55a6cc63d 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Configure-ENDPOINT.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Configure-ENDPOINT.ps1 @@ -1,24 +1,25 @@ ############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. ############################################################################# -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Configure-ENDPOINT.ps1 -## Purpose: Configure the driver computer for Kerberos Server test suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Configure-ENDPOINT.ps1 +# Purpose: Configure the driver computer for Kerberos Server test suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( [alias("h")] diff --git a/TestSuites/Kerberos/Setup/Scripts/Configure-PROXY.ps1 b/TestSuites/Kerberos/Setup/Scripts/Configure-PROXY.ps1 index 70bbf6894..887c75939 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Configure-PROXY.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Configure-PROXY.ps1 @@ -1,18 +1,16 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: Configure-PROXY.ps1 -## Purpose: Configure the proxy computer for Kerberos Server test suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, -## Windows Server 2016, and later. -## -########################################################################################### +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Configure-PROXY.ps1 +# Purpose: Configure the proxy computer for Kerberos Server test suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, +# Windows Server 2016, and later. +# +############################################################################## #------------------------------------------------------------------------------------------ # Parameters: @@ -217,7 +215,6 @@ Function Config-Proxy() Pop-Location } - #------------------------------------------------------------------------------------------ # Main Function #------------------------------------------------------------------------------------------ diff --git a/TestSuites/Kerberos/Setup/Scripts/Configure-UsersAndComputers.ps1 b/TestSuites/Kerberos/Setup/Scripts/Configure-UsersAndComputers.ps1 index 27da66ba2..511179e03 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Configure-UsersAndComputers.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Configure-UsersAndComputers.ps1 @@ -1,11 +1,11 @@ -########################################################################################### -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### +############################################################################## +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. +############################################################################## -########################################################################################### -## Add AD Users Accounts for Kerberos test suite -########################################################################################### +############################################################################## +# Add AD Users Accounts for Kerberos test suite +############################################################################## $ldifOpFileName = ".\ldifopfile.ldif" $queryOutFileName = ".\outputdata.ldf" diff --git a/TestSuites/Kerberos/Setup/Scripts/Extract-ZipFile.ps1 b/TestSuites/Kerberos/Setup/Scripts/Extract-ZipFile.ps1 index 874cdd651..4622b1439 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Extract-ZipFile.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Extract-ZipFile.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. Param ( [Parameter(Mandatory=$true)] diff --git a/TestSuites/Kerberos/Setup/Scripts/Get-IADComputer.ps1 b/TestSuites/Kerberos/Setup/Scripts/Get-IADComputer.ps1 index 1f1f4ad13..45ea7e1a6 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Get-IADComputer.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Get-IADComputer.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Get-IADComputer.ps1 -## Purpose: Get all computer objects in a domain according to the options specified. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows Powershell 2.0 CTP -## Supported OS: Windows 7, Windows 8 -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Get-IADComputer.ps1 +# Purpose: Get all computer objects in a domain according to the options specified. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows Powershell 2.0 CTP +# Supported OS: Windows 7, Windows 8 +# ############################################################################## function Get-IADComputer { diff --git a/TestSuites/Kerberos/Setup/Scripts/Get-IADSearchRoot.ps1 b/TestSuites/Kerberos/Setup/Scripts/Get-IADSearchRoot.ps1 index c7e0a71c5..4787c3ced 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Get-IADSearchRoot.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Get-IADSearchRoot.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Get-IADSearchRoot.ps1 -## Purpose: Get the search root of an Active Directory in a specified DC (Server) according to the object DN provided. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows Powershell 2.0 CTP -## Supported OS: Windows 7, Windows 8 -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Get-IADSearchRoot.ps1 +# Purpose: Get the search root of an Active Directory in a specified DC (Server) according to the object DN provided. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows Powershell 2.0 CTP +# Supported OS: Windows 7, Windows 8 +# ############################################################################## function Get-IADSearchRoot { diff --git a/TestSuites/Kerberos/Setup/Scripts/Kerberos-AP01-Postscript.ps1 b/TestSuites/Kerberos/Setup/Scripts/Kerberos-AP01-Postscript.ps1 index 127551fd5..9fd0f0ac0 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Kerberos-AP01-Postscript.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Kerberos-AP01-Postscript.ps1 @@ -1,13 +1,12 @@ -########################################################################################### # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( $WorkingPath = "C:\Temp" diff --git a/TestSuites/Kerberos/Setup/Scripts/Kerberos-AP02-Postscript.ps1 b/TestSuites/Kerberos/Setup/Scripts/Kerberos-AP02-Postscript.ps1 index c4a52a349..abb821961 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Kerberos-AP02-Postscript.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Kerberos-AP02-Postscript.ps1 @@ -1,13 +1,12 @@ -########################################################################################### # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( $WorkingPath = "C:\Temp" diff --git a/TestSuites/Kerberos/Setup/Scripts/Kerberos-DC01-Postscript.ps1 b/TestSuites/Kerberos/Setup/Scripts/Kerberos-DC01-Postscript.ps1 index 8fe476dfa..f1d80bf28 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Kerberos-DC01-Postscript.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Kerberos-DC01-Postscript.ps1 @@ -1,13 +1,12 @@ -########################################################################################### # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( $WorkingPath = "C:\Temp", diff --git a/TestSuites/Kerberos/Setup/Scripts/Kerberos-DC02-Postscript.ps1 b/TestSuites/Kerberos/Setup/Scripts/Kerberos-DC02-Postscript.ps1 index 2b832cf6c..62c170616 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Kerberos-DC02-Postscript.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Kerberos-DC02-Postscript.ps1 @@ -1,13 +1,12 @@ -########################################################################################### # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( $WorkingPath = "C:\Temp", diff --git a/TestSuites/Kerberos/Setup/Scripts/Kerberos-ENDPOINT01-Postscript.ps1 b/TestSuites/Kerberos/Setup/Scripts/Kerberos-ENDPOINT01-Postscript.ps1 index 6ce90d8af..accd64304 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Kerberos-ENDPOINT01-Postscript.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Kerberos-ENDPOINT01-Postscript.ps1 @@ -1,13 +1,12 @@ -########################################################################################### # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( $WorkingPath = "C:\Temp" diff --git a/TestSuites/Kerberos/Setup/Scripts/Kerberos-PROXY01-Postscript.ps1 b/TestSuites/Kerberos/Setup/Scripts/Kerberos-PROXY01-Postscript.ps1 index ff4df2fae..75a51c028 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Kerberos-PROXY01-Postscript.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Kerberos-PROXY01-Postscript.ps1 @@ -1,13 +1,12 @@ -########################################################################################### # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -########################################################################################### -#------------------------------------------------------------------------------------------ +############################################################################## # Parameters: # Help: whether to display the help information # Step: Current step for configuration -#------------------------------------------------------------------------------------------ +############################################################################## + Param ( $WorkingPath = "C:\Temp" @@ -79,7 +78,6 @@ Function Read-ConfigParameters() $Parameters } - #------------------------------------------------------------------------------------------ # Function: Config-Phase1 # Configure the environment phase 1: diff --git a/TestSuites/Kerberos/Setup/Scripts/Modify-ConfigFileNodeWithGroup.ps1 b/TestSuites/Kerberos/Setup/Scripts/Modify-ConfigFileNodeWithGroup.ps1 index 17b1f0ac8..89ce8102f 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Modify-ConfigFileNodeWithGroup.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Modify-ConfigFileNodeWithGroup.ps1 @@ -1,12 +1,11 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -############################################################################# -## -## Microsoft Windows Powershell Scripting -## Purpose: Modify the node value for the ".deployment.ptfconfig" file. -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# +# Microsoft Windows Powershell Scripting +# Purpose: Modify the node value for the ".deployment.ptfconfig" file. +# ############################################################################## Param( diff --git a/TestSuites/Kerberos/Setup/Scripts/Set-IADComputer.ps1 b/TestSuites/Kerberos/Setup/Scripts/Set-IADComputer.ps1 index ce103fe3c..f17adf490 100644 --- a/TestSuites/Kerberos/Setup/Scripts/Set-IADComputer.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/Set-IADComputer.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Set-IADComputer.ps1 -## Purpose: Modify attributes of a computer object in Active Directory. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows Powershell 2.0 CTP -## Supported OS: Windows 7, Windows 8 -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Set-IADComputer.ps1 +# Purpose: Modify attributes of a computer object in Active Directory. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows Powershell 2.0 CTP +# Supported OS: Windows 7, Windows 8 +# ############################################################################## #================Flags for "userAccountControl" Property===================# @@ -38,7 +36,6 @@ $PASSWORD_EXPIRED = 0x800000 $TRUSTED_TO_AUTH_FOR_DELEGATION = 0x1000000 $PRE_AUTHENTICATION_NOT_REQUIRED = 0x2000000 - #=================================================================# filter Set-IADComputer { diff --git a/TestSuites/Kerberos/Setup/Scripts/UpdateConfigFile.ps1 b/TestSuites/Kerberos/Setup/Scripts/UpdateConfigFile.ps1 index c97518e84..bb2f97b2f 100644 --- a/TestSuites/Kerberos/Setup/Scripts/UpdateConfigFile.ps1 +++ b/TestSuites/Kerberos/Setup/Scripts/UpdateConfigFile.ps1 @@ -1,7 +1,6 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + param( [string]$WorkingPath = "C:\temp" # Script working path ) diff --git a/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/ClearTrustRealmEncType.ps1 b/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/ClearTrustRealmEncType.ps1 index bdff341d4..7bfed82bc 100644 --- a/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/ClearTrustRealmEncType.ps1 +++ b/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/ClearTrustRealmEncType.ps1 @@ -1,7 +1,5 @@ -############################################################################# # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# [string]$RemotePassword = $PtfProp_LocalRealm_Users_Admin_Password [string]$RemoteUserName = $PtfProp_LocalRealm_Users_Admin_Username diff --git a/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/RestoreSupportedEncryptionTypes.ps1 b/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/RestoreSupportedEncryptionTypes.ps1 index fa81af655..e94dd2631 100644 --- a/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/RestoreSupportedEncryptionTypes.ps1 +++ b/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/RestoreSupportedEncryptionTypes.ps1 @@ -1,7 +1,5 @@ -############################################################################# # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# [string]$LocalRealmRemoteUserName = $PtfProp_LocalRealm_RealmName + '\' + $PtfProp_LocalRealm_Users_Admin_Username [string]$TrustedRealmRemoteUserName = $PtfProp_TrustedRealm_RealmName + '\' + $PtfProp_TrustedRealm_Users_Admin_Username diff --git a/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/SetSupportedEncryptionTypesAsRc4.ps1 b/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/SetSupportedEncryptionTypesAsRc4.ps1 index c65344839..2cc396e9b 100644 --- a/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/SetSupportedEncryptionTypesAsRc4.ps1 +++ b/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/SetSupportedEncryptionTypesAsRc4.ps1 @@ -1,7 +1,5 @@ -############################################################################# # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# [string]$remoteComputerName [string]$remoteUsername diff --git a/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/SetTrustRealmEncTypeAsAes.ps1 b/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/SetTrustRealmEncTypeAsAes.ps1 index e843e16a7..98a83d4b3 100644 --- a/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/SetTrustRealmEncTypeAsAes.ps1 +++ b/TestSuites/Kerberos/src/Adapter/IClientControlAdapter/SetTrustRealmEncTypeAsAes.ps1 @@ -1,7 +1,5 @@ -############################################################################# # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# [string]$RemotePassword = $PtfProp_LocalRealm_Users_Admin_Password [string]$RemoteUserName = $PtfProp_LocalRealm_Users_Admin_Username diff --git a/TestSuites/MS-ADFSPIP/Setup/Scripts/ADFSLib.psm1 b/TestSuites/MS-ADFSPIP/Setup/Scripts/ADFSLib.psm1 index 180be2ec7..b5962e88e 100644 --- a/TestSuites/MS-ADFSPIP/Setup/Scripts/ADFSLib.psm1 +++ b/TestSuites/MS-ADFSPIP/Setup/Scripts/ADFSLib.psm1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Sripting -## File : ADFSLib.PSM1 -## Requirements : Windows Powershell 3.0 -## Supported OS : Windows Server 2012 -## +############################################################################## +# +# Microsoft Windows Powershell Sripting +# File : ADFSLib.PSM1 +# Requirements : Windows Powershell 3.0 +# Supported OS : Windows Server 2012 +# ############################################################################## function Install-DomainController { diff --git a/TestSuites/MS-ADFSPIP/Setup/Scripts/Config-DCCA.ps1 b/TestSuites/MS-ADFSPIP/Setup/Scripts/Config-DCCA.ps1 index bd256d8ec..a8542cf93 100644 --- a/TestSuites/MS-ADFSPIP/Setup/Scripts/Config-DCCA.ps1 +++ b/TestSuites/MS-ADFSPIP/Setup/Scripts/Config-DCCA.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Sripting -## File : Config-DCCA.ps1 -## Requirements : Windows Powershell 3.0 -## Supported OS : Windows Server 2012R2 -## +############################################################################## +# +# Microsoft Windows Powershell Sripting +# File : Config-DCCA.ps1 +# Requirements : Windows Powershell 3.0 +# Supported OS : Windows Server 2012R2 +# ############################################################################## Param @@ -155,7 +153,6 @@ Function Config-Environment Add-AdfsDnsRecord -ZoneName $driver.domain -IPv4Address $driver.ip } - #------------------------------------------------------------------------------------------ # Main Function #------------------------------------------------------------------------------------------ diff --git a/TestSuites/MS-ADFSPIP/Setup/Scripts/Config-Driver.ps1 b/TestSuites/MS-ADFSPIP/Setup/Scripts/Config-Driver.ps1 index 3b78d880d..58be9e510 100644 --- a/TestSuites/MS-ADFSPIP/Setup/Scripts/Config-Driver.ps1 +++ b/TestSuites/MS-ADFSPIP/Setup/Scripts/Config-Driver.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Sripting -## File : Config-Driver.ps1 -## Requirements : Windows Powershell 3.0 -## Supported OS : Windows Server 2012R2 -## +############################################################################## +# +# Microsoft Windows Powershell Sripting +# File : Config-Driver.ps1 +# Requirements : Windows Powershell 3.0 +# Supported OS : Windows Server 2012R2 +# ############################################################################## Param @@ -146,7 +144,6 @@ Function Config-Environment Enable-Remoting } - #------------------------------------------------------------------------------------------ # Main Function #------------------------------------------------------------------------------------------ diff --git a/TestSuites/MS-ADFSPIP/Setup/Scripts/Modify-ConfigGroupFileNode.ps1 b/TestSuites/MS-ADFSPIP/Setup/Scripts/Modify-ConfigGroupFileNode.ps1 index 27c1cf9ed..3ad7efbd2 100644 --- a/TestSuites/MS-ADFSPIP/Setup/Scripts/Modify-ConfigGroupFileNode.ps1 +++ b/TestSuites/MS-ADFSPIP/Setup/Scripts/Modify-ConfigGroupFileNode.ps1 @@ -1,12 +1,12 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Modify-ConfigGroupFileNode.ps1 -## Purpose: Modify the node value for the ".deployment.ptfconfig" file. -## Version: 1.1 (26 June, 2008) -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: Modify-ConfigGroupFileNode.ps1 +# Purpose: Modify the node value for the ".deployment.ptfconfig" file. +# Version: 1.1 (26 June, 2008) +# ############################################################################## Param( @@ -65,7 +65,6 @@ if ($nodeName -eq $null -or $nodeName -eq "") Throw "Parameter nodeName is required." } - #---------------------------------------------------------------------------- # Modify the content of the node #---------------------------------------------------------------------------- diff --git a/TestSuites/MS-ADFSPIP/Setup/Scripts/UpdatePTFConfig.ps1 b/TestSuites/MS-ADFSPIP/Setup/Scripts/UpdatePTFConfig.ps1 index fd1a02c75..613aa06c1 100644 --- a/TestSuites/MS-ADFSPIP/Setup/Scripts/UpdatePTFConfig.ps1 +++ b/TestSuites/MS-ADFSPIP/Setup/Scripts/UpdatePTFConfig.ps1 @@ -1,17 +1,16 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: UpdatePTFConfig.ps1 -## Purpose: Update PTFConfig file for MS-ADFSPIP test suite. -## Requirements: Windows PowerShell 2.0 -## Supported OS: Windows 7 or later versions -## ############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: UpdatePTFConfig.ps1 +# Purpose: Update PTFConfig file for MS-ADFSPIP test suite. +# Requirements: Windows PowerShell 2.0 +# Supported OS: Windows 7 or later versions +# +############################################################################## + Param( [string]$WorkingPath = "C:\temp" # Script working path ) diff --git a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/IsApplicationProxyConfigured.ps1 b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/IsApplicationProxyConfigured.ps1 index 0b72f33ad..1c2a26962 100644 --- a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/IsApplicationProxyConfigured.ps1 +++ b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/IsApplicationProxyConfigured.ps1 @@ -1,7 +1,5 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Remote SUT computer $SutIpAddress = $PTFProp_SUT_SutIPAddress diff --git a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerBrowserToAccessAp.ps1 b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerBrowserToAccessAp.ps1 index 1264d0a7d..5da7f64fa 100644 --- a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerBrowserToAccessAp.ps1 +++ b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerBrowserToAccessAp.ps1 @@ -1,7 +1,5 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $tmp = $remoteSignalShare + "remoteresponse.txt" remove-item $tmp diff --git a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerCleanCertificate.ps1 b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerCleanCertificate.ps1 index 082e3ad4e..bdc139d85 100644 --- a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerCleanCertificate.ps1 +++ b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerCleanCertificate.ps1 @@ -1,7 +1,5 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param ( diff --git a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerExportCertificate.ps1 b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerExportCertificate.ps1 index 08150d417..c59ac0aca 100644 --- a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerExportCertificate.ps1 +++ b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerExportCertificate.ps1 @@ -1,7 +1,5 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param ( diff --git a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerInstallApplicationProxy.ps1 b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerInstallApplicationProxy.ps1 index 6a6eb37cb..0f9a478f9 100644 --- a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerInstallApplicationProxy.ps1 +++ b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerInstallApplicationProxy.ps1 @@ -1,7 +1,5 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $SutIpAddress = $PTFProp_SUT_SutIPAddress $SutAdminUserName = $PTFProp_SUT_Username diff --git a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerProxyInstall.ps1 b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerProxyInstall.ps1 index 817a11895..2549fd470 100644 --- a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerProxyInstall.ps1 +++ b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerProxyInstall.ps1 @@ -1,7 +1,5 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. param( [string]$proxyAddr = $PTFProp_SUT_SutIPAddress, diff --git a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerProxyUninstall.ps1 b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerProxyUninstall.ps1 index ba1645514..1697f3e96 100644 --- a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerProxyUninstall.ps1 +++ b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerProxyUninstall.ps1 @@ -1,7 +1,5 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $StsIpAddress = $PTFProp_Common_RealADFSIP $StsAdminUserName = $PTFProp_Domain_Username diff --git a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerPublishApplication.ps1 b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerPublishApplication.ps1 index 8796e421b..c2a0f2204 100644 --- a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerPublishApplication.ps1 +++ b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerPublishApplication.ps1 @@ -1,7 +1,5 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Remote SUT computer $SutIpAddress = $PTFProp_SUT_SutIPAddress diff --git a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerPublishNonClaimsApp.ps1 b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerPublishNonClaimsApp.ps1 index 41f3be40b..05b3632eb 100644 --- a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerPublishNonClaimsApp.ps1 +++ b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerPublishNonClaimsApp.ps1 @@ -1,7 +1,5 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Remote SUT computer $SutIpAddress = $PTFProp_SUT_SutIPAddress @@ -54,7 +52,6 @@ if (-not [string]::IsNullOrEmpty($ErrMsg)) { return $false } - # restart service Restart-Service appproxysvc $RunCommand = [ScriptBlock] { Restart-Service appproxysvc diff --git a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerRemoveApplication.ps1 b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerRemoveApplication.ps1 index 8a5b8dd76..dbef65d24 100644 --- a/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerRemoveApplication.ps1 +++ b/TestSuites/MS-ADFSPIP/src/Adapter/SUTControlAdapter/TriggerRemoveApplication.ps1 @@ -1,7 +1,5 @@ -####################################################################################################### -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. # Remote SUT computer $SutIpAddress = $PTFProp_SUT_SutIPAddress diff --git a/TestSuites/MS-ADFSPIP/src/Adapter/SUTRequestHandler/NativeMethods.cs b/TestSuites/MS-ADFSPIP/src/Adapter/SUTRequestHandler/NativeMethods.cs index eff6557b5..edf1e1642 100644 --- a/TestSuites/MS-ADFSPIP/src/Adapter/SUTRequestHandler/NativeMethods.cs +++ b/TestSuites/MS-ADFSPIP/src/Adapter/SUTRequestHandler/NativeMethods.cs @@ -1,4 +1,7 @@ -//-------------------------------------------------------------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +//-------------------------------------------------------------------------------------------------------------------------------------------------- // // This code was generated by a tool. // CSharp-Minifier-Master Version:1.0.30319.32559 diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Add-IADGroupMember.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Add-IADGroupMember.ps1 index 4a1a786aa..ed9961ad4 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Add-IADGroupMember.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Add-IADGroupMember.ps1 @@ -1,17 +1,15 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Add-IADGroupMember.ps1 -## Purpose: Add a user or a list of users to the specified user group. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Add-IADGroupMember.ps1 +# Purpose: Add a user or a list of users to the specified user group. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## filter Add-IADGroupMember { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Config-ClientComputer.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Config-ClientComputer.ps1 index eff22c619..9824b5a77 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Config-ClientComputer.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Config-ClientComputer.ps1 @@ -1,17 +1,16 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Config-ClientComputer.ps1 -## Purpose: Configure Client Computer for MS-ADOD OD test suite. -## Requirements: Windows PowerShell 2.0 -## Supported OS: Windows 7 or later versions -## ############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Config-ClientComputer.ps1 +# Purpose: Configure Client Computer for MS-ADOD OD test suite. +# Requirements: Windows PowerShell 2.0 +# Supported OS: Windows 7 or later versions +# +############################################################################## + Param( [String]$scriptsPath = (Split-Path $MyInvocation.MyCommand.Definition -Parent) ) diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Config-DriverComputer.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Config-DriverComputer.ps1 index f0e113444..ebb4d813d 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Config-DriverComputer.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Config-DriverComputer.ps1 @@ -1,17 +1,16 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Config-DriverComputer.ps1 -## Purpose: Configure Driver Computer for MS-ADOD OD test suite. -## Requirements: Windows PowerShell 2.0 -## Supported OS: Windows 7 or later versions -## ############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Config-DriverComputer.ps1 +# Purpose: Configure Driver Computer for MS-ADOD OD test suite. +# Requirements: Windows PowerShell 2.0 +# Supported OS: Windows 7 or later versions +# +############################################################################## + Param( [String]$scriptsPath = (Split-Path $MyInvocation.MyCommand.Definition -Parent) ) diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Enable-RemoteSessionInServer.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Enable-RemoteSessionInServer.ps1 index 5df1f9468..5ed3b6e92 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Enable-RemoteSessionInServer.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Enable-RemoteSessionInServer.ps1 @@ -1,16 +1,14 @@ -################################################################################## -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Enable-RemoteSessionInServer.ps1 -## Purpose: Enable the Windows Remote Management -## Requirements: Windows PowerShell 2.0 -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Enable-RemoteSessionInServer.ps1 +# Purpose: Enable the Windows Remote Management +# Requirements: Windows PowerShell 2.0 +# Supported OS: Windows 7 or later versions +# ############################################################################## #---------------------------------------------------------------------------- diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Fix-XmlLogFile.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Fix-XmlLogFile.ps1 index f38b4a449..b94789ba4 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Fix-XmlLogFile.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Fix-XmlLogFile.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Fix-XmlLogFile.ps1 -## Purpose: Fix Xml log file for some un-closed tags -## Version: 1.1 (21 Feb., 2012) -## Copyright (c) Microsoft Corporation. All rights reserved. -## ############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Fix-XmlLogFile.ps1 +# Purpose: Fix Xml log file for some un-closed tags +# Version: 1.1 (21 Feb., 2012) +# +############################################################################## + param( [String]$logPath ) diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADComputer.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADComputer.ps1 index b3cde5fd3..0a3e826db 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADComputer.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADComputer.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Get-IADComputer.ps1 -## Purpose: Get all computer objects in a domain according to the options specified. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7, Windows 8 -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Get-IADComputer.ps1 +# Purpose: Get all computer objects in a domain according to the options specified. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7, Windows 8 +# ############################################################################## function Get-IADComputer { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADDomainControllers.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADDomainControllers.ps1 index 8c46a1a09..7e75ca788 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADDomainControllers.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADDomainControllers.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Get-IADDomainControllers.ps1 -## Purpose: Get the list of domain controllers' names. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Get-IADDomainControllers.ps1 +# Purpose: Get the list of domain controllers' names. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## function Get-IADDomainControllers { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroup.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroup.ps1 index 610d2fb75..3565292dc 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroup.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroup.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Get-IADGroup.ps1 -## Purpose: Retrieve all groups in a domain or container that match the specified conditions. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Get-IADGroup.ps1 +# Purpose: Retrieve all groups in a domain or container that match the specified conditions. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## function Get-IADGroup { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroupMember.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroupMember.ps1 index 371c8ffb7..9ecd4f555 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroupMember.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroupMember.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Get-IADGroupMember.ps1 -## Purpose: Get all group members of a specified group. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Get-IADGroupMember.ps1 +# Purpose: Get all group members of a specified group. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## filter Get-IADGroupMember { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroupMembership.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroupMembership.ps1 index 5fe2f37f5..48a09da4e 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroupMembership.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADGroupMembership.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Get-IADGroupMembership.ps1 -## Purpose: Get all group memberships of a specified account. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Get-IADGroupMembership.ps1 +# Purpose: Get all group memberships of a specified account. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## filter Get-IADGroupMembership { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADSearchRoot.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADSearchRoot.ps1 index 39505a85a..8b761e3d6 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADSearchRoot.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADSearchRoot.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Get-IADSearchRoot.ps1 -## Purpose: Get the search root of an Active Directory in a specified DC (Server) according to the object DN provided. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7, Windows 8 -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Get-IADSearchRoot.ps1 +# Purpose: Get the search root of an Active Directory in a specified DC (Server) according to the object DN provided. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7, Windows 8 +# ############################################################################## function Get-IADSearchRoot { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADUser.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADUser.ps1 index 86a34e3df..c5f3ea678 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Get-IADUser.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Get-IADUser.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Get-IADSearchRoot.ps1 -## Purpose: Get all users in a domain or container with specific conditions. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Get-IADSearchRoot.ps1 +# Purpose: Get all users in a domain or container with specific conditions. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## function Get-IADUser { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Get-Parameter.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Get-Parameter.ps1 index 6e81b5051..b0f878fb6 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Get-Parameter.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Get-Parameter.ps1 @@ -1,13 +1,11 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## Purpose: Get Parameter which used in Protocol in XML file. -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# Purpose: Get Parameter which used in Protocol in XML file. +# ############################################################################## Param( diff --git a/TestSuites/MS-ADOD/Setup/Scripts/IsJoinDomainSuccess.sh b/TestSuites/MS-ADOD/Setup/Scripts/IsJoinDomainSuccess.sh index 0ef2041bc..deed52854 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/IsJoinDomainSuccess.sh +++ b/TestSuites/MS-ADOD/Setup/Scripts/IsJoinDomainSuccess.sh @@ -1,14 +1,12 @@ #!/bin/sh -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -##################################################################################################################### -## -## File: IsJoinDomainSuccess.sh -## Purpose: To verify if the machine is successfully joined domain by samba. -##################################################################################################################### +############################################################################## +# +# File: IsJoinDomainSuccess.sh +# Purpose: To verify if the machine is successfully joined domain by samba. +############################################################################## # Check the argument number if [ $# -ne 1 ]; then diff --git a/TestSuites/MS-ADOD/Setup/Scripts/IsUnjoinDomainSuccess.sh b/TestSuites/MS-ADOD/Setup/Scripts/IsUnjoinDomainSuccess.sh index 681d9c250..21b59ccb4 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/IsUnjoinDomainSuccess.sh +++ b/TestSuites/MS-ADOD/Setup/Scripts/IsUnjoinDomainSuccess.sh @@ -1,14 +1,12 @@ #!/bin/sh -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -##################################################################################################################### -## -## File: IsJoinDomainSuccess.sh -## Purpose: To verify if the machine is successfully unjoined domain by samba. -##################################################################################################################### +############################################################################## +# +# File: IsJoinDomainSuccess.sh +# Purpose: To verify if the machine is successfully unjoined domain by samba. +############################################################################## # Check the argument number if [ $# -ne 0 ]; then diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Join-Domain.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Join-Domain.ps1 index 9f8d1b2a5..2155734eb 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Join-Domain.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Join-Domain.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Join-Domain-Method1.ps1 -## Purpose: Join a specified domain by creating an account or by a predefined account. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7, Windows 8 -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Join-Domain-Method1.ps1 +# Purpose: Join a specified domain by creating an account or by a predefined account. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7, Windows 8 +# ############################################################################## #------------------------------------------------------------------------- @@ -138,7 +136,6 @@ function JoinDomain-CreateAccount-LDAP { return $errorcode } - #-------------------------------------------------------------------------- #Function: JoinDomain-CreateAccount-SAMR #Env: Samba 3 PDC diff --git a/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainCreateAcctLDAP.sh b/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainCreateAcctLDAP.sh index 05c1b5562..8be779fc1 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainCreateAcctLDAP.sh +++ b/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainCreateAcctLDAP.sh @@ -1,14 +1,12 @@ #!/bin/sh -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -##################################################################################################################### -## -## File: JoinDomainCreateAcctLDAP.sh -## Purpose: To trigger the machine join domain by creating an account using LDAP. -##################################################################################################################### +############################################################################## +# +# File: JoinDomainCreateAcctLDAP.sh +# Purpose: To trigger the machine join domain by creating an account using LDAP. +############################################################################## # Check the argument number if [ $# -ne 3 ]; then diff --git a/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainCreateAcctSAMR.sh b/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainCreateAcctSAMR.sh index 643190610..574da35d9 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainCreateAcctSAMR.sh +++ b/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainCreateAcctSAMR.sh @@ -1,14 +1,12 @@ #!/bin/sh -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -##################################################################################################################### -## -## File: JoinDomainCreateAcctSAMR.sh -## Purpose: To trigger the machine join domain by creating an account using SAMR. -##################################################################################################################### +############################################################################## +# +# File: JoinDomainCreateAcctSAMR.sh +# Purpose: To trigger the machine join domain by creating an account using SAMR. +############################################################################## # Check the argument number if [ $# -ne 3 ]; then diff --git a/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainPredefAcct.sh b/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainPredefAcct.sh index 7d7bf749f..a61e017ab 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainPredefAcct.sh +++ b/TestSuites/MS-ADOD/Setup/Scripts/JoinDomainPredefAcct.sh @@ -1,14 +1,12 @@ #!/bin/sh -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -##################################################################################################################### -## -## File: JoinDomainPredefAcct.sh -## Purpose: To trigger the machine join domain by a predefined account. -##################################################################################################################### +############################################################################## +# +# File: JoinDomainPredefAcct.sh +# Purpose: To trigger the machine join domain by a predefined account. +############################################################################## # Check the argument number if [ $# -ne 3 ]; then diff --git a/TestSuites/MS-ADOD/Setup/Scripts/LocateDomainController.sh b/TestSuites/MS-ADOD/Setup/Scripts/LocateDomainController.sh index dae280e68..11b196aed 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/LocateDomainController.sh +++ b/TestSuites/MS-ADOD/Setup/Scripts/LocateDomainController.sh @@ -1,14 +1,12 @@ #!/bin/sh -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -##################################################################################################################### -## -## File: LocateDomainController.sh -## Purpose: To trigger the machine to locate a domain controller. -##################################################################################################################### +############################################################################## +# +# File: LocateDomainController.sh +# Purpose: To trigger the machine to locate a domain controller. +############################################################################## # Check the argument number if [ $# -ne 1 ]; then diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Modify-ConfigFileNode.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Modify-ConfigFileNode.ps1 index 4815d9074..e395fa626 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Modify-ConfigFileNode.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Modify-ConfigFileNode.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Modify-ConfigFileNode.ps1 -## Purpose: Modify the node value for the ".deployment.ptfconfig" file. -## Version: 1.1 (26 June, 2008) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Modify-ConfigFileNode.ps1 +# Purpose: Modify the node value for the ".deployment.ptfconfig" file. +# Version: 1.1 (26 June, 2008) +# ############################################################################## Param( @@ -62,7 +60,6 @@ if ($nodeName -eq $null -or $nodeName -eq "") Throw "Parameter nodeName is required." } - #---------------------------------------------------------------------------- # Modify the content of the node #---------------------------------------------------------------------------- diff --git a/TestSuites/MS-ADOD/Setup/Scripts/New-IADComputer.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/New-IADComputer.ps1 index 71be9694e..c90ddd4de 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/New-IADComputer.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/New-IADComputer.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: New-IADComputer.ps1 -## Purpose: Create a new computer account with the specified options. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: New-IADComputer.ps1 +# Purpose: Create a new computer account with the specified options. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## #================Flags for "userAccountControl" Property===================# @@ -37,7 +35,6 @@ $DONT_REQ_PREAUTH = 0x400000 $PASSWORD_EXPIRED = 0x800000 $TRUSTED_TO_AUTH_FOR_DELEGATION = 0x1000000 - #=================================================================# function New-IADComputer { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/New-IADGroup.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/New-IADGroup.ps1 index fbdab7201..fb7394c96 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/New-IADGroup.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/New-IADGroup.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: New-IADGroup.ps1 -## Purpose: Create a new group account with the specified options. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: New-IADGroup.ps1 +# Purpose: Create a new group account with the specified options. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## function New-IADGroup { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/New-IADUser.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/New-IADUser.ps1 index 070498c42..1294a83f1 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/New-IADUser.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/New-IADUser.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: New-IADUser.ps1 -## Purpose: Create a new user account with the specified options. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: New-IADUser.ps1 +# Purpose: Create a new user account with the specified options. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## #================Flags for "userAccountControl" Property===================# @@ -37,7 +35,6 @@ $DONT_REQ_PREAUTH = 0x400000 $PASSWORD_EXPIRED = 0x800000 $TRUSTED_TO_AUTH_FOR_DELEGATION = 0x1000000 - #=================================================================# function New-IADUser { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/New-RemoteSession.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/New-RemoteSession.ps1 index 339aeb8d8..838667aae 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/New-RemoteSession.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/New-RemoteSession.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: New-RemoteSession.ps1 -## Purpose: This script creates a new PowerShell session on a remote machine for interactive purpose. -## Scenarios: 1) The server must have Windows Remote Management Server setup already -## 2) The Network should be set as "Private" Network -## Version: 1.0 (15 Feb, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: New-RemoteSession.ps1 +# Purpose: This script creates a new PowerShell session on a remote machine for interactive purpose. +# Scenarios: 1) The server must have Windows Remote Management Server setup already +# 2) The Network should be set as "Private" Network +# Version: 1.0 (15 Feb, 2012) +# ############################################################################## Param( @@ -28,7 +26,6 @@ Write-Host "`$computerName = $computerName" Write-Host "`$userName = $userName" Write-Host "`$password = $password" - #---------------------------------------------------------------------------- #Function: Show-ScriptUsage #Usage : Describes the usage information and options diff --git a/TestSuites/MS-ADOD/Setup/Scripts/PostScript-Client.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/PostScript-Client.ps1 index 112d0bf40..d01948a65 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/PostScript-Client.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/PostScript-Client.ps1 @@ -1,16 +1,14 @@ -############################################################################# # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -############################################################################# -## -## Microsoft Windows PowerShell Sripting -## File: PostScript-Client.ps1 -## Purpose: Configure Client for MS-ADOD test suite. -## Requirements: Windows PowerShell 2.0 -## Supported OS: Windows Server 2012 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Sripting +# File: PostScript-Client.ps1 +# Purpose: Configure Client for MS-ADOD test suite. +# Requirements: Windows PowerShell 2.0 +# Supported OS: Windows Server 2012 or later versions +# ############################################################################## Param diff --git a/TestSuites/MS-ADOD/Setup/Scripts/PostScript-PDC.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/PostScript-PDC.ps1 index 99b9c284e..cae679d06 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/PostScript-PDC.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/PostScript-PDC.ps1 @@ -1,16 +1,14 @@ -############################################################################# # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -############################################################################# -## -## Microsoft Windows PowerShell Sripting -## File: PostScript-PDC.ps1 -## Purpose: Configure PDC for MS-ADOD test suite -## Requirements: Windows PowerShell 2.0 -## Supported OS: Windows Server 2012 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Sripting +# File: PostScript-PDC.ps1 +# Purpose: Configure PDC for MS-ADOD test suite +# Requirements: Windows PowerShell 2.0 +# Supported OS: Windows Server 2012 or later versions +# ############################################################################## Param @@ -177,7 +175,6 @@ Function Phase1 } } - #----------------------------------------------------------------------------- # Finish Script #----------------------------------------------------------------------------- diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Remove-IADGroupMember.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Remove-IADGroupMember.ps1 index 1925653a2..978880bd3 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Remove-IADGroupMember.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Remove-IADGroupMember.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Remove-IADGroupMember.ps1 -## Purpose: Remove a member or a list of members from a group in Active Directory. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Remove-IADGroupMember.ps1 +# Purpose: Remove a member or a list of members from a group in Active Directory. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## filter Remove-IADGroupMember { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Remove-IADObject.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Remove-IADObject.ps1 index cbb722c97..9593ff248 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Remove-IADObject.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Remove-IADObject.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Remove-IADObject.ps1 -## Purpose: Remove the specified object(s) in Active Directory. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Remove-IADObject.ps1 +# Purpose: Remove the specified object(s) in Active Directory. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## filter Remove-IADObject { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Set-IADUser.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Set-IADUser.ps1 index 20339dcc2..a6a8df679 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Set-IADUser.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Set-IADUser.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Set-IADUser.ps1 -## Purpose: Modify attributes of a user object in Active Directory. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Set-IADUser.ps1 +# Purpose: Modify attributes of a user object in Active Directory. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## #================Flags for "userAccountControl" Property===================# @@ -37,7 +35,6 @@ $DONT_REQ_PREAUTH = 0x400000 $PASSWORD_EXPIRED = 0x800000 $TRUSTED_TO_AUTH_FOR_DELEGATION = 0x1000000 - #=================================================================# filter Set-IADUser { diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Set-Parameter.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Set-Parameter.ps1 index edcd7f929..83e3d7453 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Set-Parameter.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Set-Parameter.ps1 @@ -1,13 +1,11 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## Purpose: Set Parameter which used in Protocol in XML file. -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# Purpose: Set Parameter which used in Protocol in XML file. +# ############################################################################## Param( diff --git a/TestSuites/MS-ADOD/Setup/Scripts/TurnOff-FileReadonly.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/TurnOff-FileReadonly.ps1 index f3f2648fa..53c7d022b 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/TurnOff-FileReadonly.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/TurnOff-FileReadonly.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: TurnOff-FileReadonly.ps1 -## Purpose: Turn off readonly attribute for a file. -## Version: 1.0 (25 May, 2008) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: TurnOff-FileReadonly.ps1 +# Purpose: Turn off readonly attribute for a file. +# Version: 1.0 (25 May, 2008) +# ############################################################################## param( diff --git a/TestSuites/MS-ADOD/Setup/Scripts/Unjoin-Domain.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/Unjoin-Domain.ps1 index 2e3be4e8a..084a813be 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/Unjoin-Domain.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/Unjoin-Domain.ps1 @@ -1,17 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: Unjoin-Domain.ps1 -## Purpose: Unjoin a specified domain. -## Version: 1.0 (8 Feb, 2012) -## Requirements: Windows PowerShell 2.0 CTP -## Supported OS: Windows 7 or later versions -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: Unjoin-Domain.ps1 +# Purpose: Unjoin a specified domain. +# Version: 1.0 (8 Feb, 2012) +# Requirements: Windows PowerShell 2.0 CTP +# Supported OS: Windows 7 or later versions +# ############################################################################## #------------------------------------------------------------------------- diff --git a/TestSuites/MS-ADOD/Setup/Scripts/UnjoinDomain.sh b/TestSuites/MS-ADOD/Setup/Scripts/UnjoinDomain.sh index 1f1e02025..fa021b459 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/UnjoinDomain.sh +++ b/TestSuites/MS-ADOD/Setup/Scripts/UnjoinDomain.sh @@ -1,14 +1,12 @@ #!/bin/sh -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -##################################################################################################################### -## -## File: UnjoinDomain.sh -## Purpose: To trigger the machine unjoin domain. -##################################################################################################################### +############################################################################## +# +# File: UnjoinDomain.sh +# Purpose: To trigger the machine unjoin domain. +############################################################################## # Check the argument number if [ $# -ne 0 ]; then diff --git a/TestSuites/MS-ADOD/Setup/Scripts/WaitFor-ComputerReady.ps1 b/TestSuites/MS-ADOD/Setup/Scripts/WaitFor-ComputerReady.ps1 index c7e00ef0a..7afc62025 100644 --- a/TestSuites/MS-ADOD/Setup/Scripts/WaitFor-ComputerReady.ps1 +++ b/TestSuites/MS-ADOD/Setup/Scripts/WaitFor-ComputerReady.ps1 @@ -1,21 +1,19 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: WaitFor-ComputerReady.ps1 -## Purpose: This script pause the script until the specified file on remote machine is ready for accessing. -## Scenarios: 1) Wait for a computer starting up. In this case, will wait for ADMIN$ -## 2) Wait for something done in another computer (such as server config, or testing on client). -## a) If "config.finished.signal" found, that means the configuration finished successfully; -## b) If "config.error.signal" found, that means the configuration terminated with exceptions; -## c) If "test.finished.signal" found, that means the testing finished successfully; -## d) If "test.error.signal" found, that means the testing terminated with exceptions; -## Version: 1.1 (26 June, 2008) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: WaitFor-ComputerReady.ps1 +# Purpose: This script pause the script until the specified file on remote machine is ready for accessing. +# Scenarios: 1) Wait for a computer starting up. In this case, will wait for ADMIN$ +# 2) Wait for something done in another computer (such as server config, or testing on client). +# a) If "config.finished.signal" found, that means the configuration finished successfully; +# b) If "config.error.signal" found, that means the configuration terminated with exceptions; +# c) If "test.finished.signal" found, that means the testing finished successfully; +# d) If "test.error.signal" found, that means the testing terminated with exceptions; +# Version: 1.1 (26 June, 2008) +# ############################################################################## Param ( diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ChangeUserAcctPasswordLDAP.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ChangeUserAcctPasswordLDAP.ps1 index eead046c7..acea20ae3 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ChangeUserAcctPasswordLDAP.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ChangeUserAcctPasswordLDAP.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: ChangeUserAcctPasswordLDAP.ps1 -## Purpose: Setup remote session on to the client computer and change a user account's password. -## Version: 1.1 (11 Jan, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: ChangeUserAcctPasswordLDAP.ps1 +# Purpose: Setup remote session on to the client computer and change a user account's password. +# Version: 1.1 (11 Jan, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ChangeUserAcctPasswordSAMR.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ChangeUserAcctPasswordSAMR.ps1 index f3bd7732e..8a52e9fba 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ChangeUserAcctPasswordSAMR.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ChangeUserAcctPasswordSAMR.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: ChangeUserAcctPasswordSAMR.ps1 -## Purpose: Setup remote session on to the client computer and change a user account's password. -## Version: 1.1 (11 Jan, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: ChangeUserAcctPasswordSAMR.ps1 +# Purpose: Setup remote session on to the client computer and change a user account's password. +# Version: 1.1 (11 Jan, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DeleteGroup.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DeleteGroup.ps1 index 2bb68ef81..3b9ce3e03 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DeleteGroup.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DeleteGroup.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: DeleteGroup.ps1 -## Purpose: Setup remote session on to the client computer and delete a group in AD. -## Version: 1.1 (11 Jan, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: DeleteGroup.ps1 +# Purpose: Setup remote session on to the client computer and delete a group in AD. +# Version: 1.1 (11 Jan, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DeleteUserAcct.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DeleteUserAcct.ps1 index d73bf5e5c..f2133f785 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DeleteUserAcct.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DeleteUserAcct.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: DeleteUserAcct.ps1 -## Purpose: Setup remote session on to the client computer and delete a user account in AD. -## Version: 1.1 (11 Jan, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: DeleteUserAcct.ps1 +# Purpose: Setup remote session on to the client computer and delete a user account in AD. +# Version: 1.1 (11 Jan, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DetermineUserAcctMembershipLDAP.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DetermineUserAcctMembershipLDAP.ps1 index 465fdd4d2..d6f6c52b2 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DetermineUserAcctMembershipLDAP.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DetermineUserAcctMembershipLDAP.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: DetermineUserAcctMembershipLDAP.ps1 -## Purpose: Setup remote session on to the client computer and determine a user account's group membership in AD. -## Version: 1.1 (11 Jan, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: DetermineUserAcctMembershipLDAP.ps1 +# Purpose: Setup remote session on to the client computer and determine a user account's group membership in AD. +# Version: 1.1 (11 Jan, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DetermineUserAcctMembershipSAMR.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DetermineUserAcctMembershipSAMR.ps1 index ed2fb5a02..4b026ee20 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DetermineUserAcctMembershipSAMR.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/DetermineUserAcctMembershipSAMR.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: DetermineUserAcctMembershipSAMR.ps1 -## Purpose: Setup remote session on to the client computer and determine a user account's group membership in AD. -## Version: 1.1 (11 Jan, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: DetermineUserAcctMembershipSAMR.ps1 +# Purpose: Setup remote session on to the client computer and determine a user account's group membership in AD. +# Version: 1.1 (11 Jan, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/IsJoinDomainSuccess.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/IsJoinDomainSuccess.ps1 index 14b7f6951..65151208f 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/IsJoinDomainSuccess.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/IsJoinDomainSuccess.ps1 @@ -1,16 +1,14 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: IsJoinDomainSuccess.ps1 -## Purpose: Use domain admin user account to setup a PowerShell Remote Session -## and check if the client computer has joined domain successfully. -## Version: 1.1 (2 Mar, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: IsJoinDomainSuccess.ps1 +# Purpose: Use domain admin user account to setup a PowerShell Remote Session +# and check if the client computer has joined domain successfully. +# Version: 1.1 (2 Mar, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/IsUnjoinDomainSuccess.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/IsUnjoinDomainSuccess.ps1 index 39f6d3471..1e28da499 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/IsUnjoinDomainSuccess.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/IsUnjoinDomainSuccess.ps1 @@ -1,16 +1,14 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: IsUnjoinDomainSuccess.ps1 -## Purpose: Use local admin user account to setup a PowerShell Remote Session -## and check if the client computer has unjoined domain successfully. -## Version: 1.1 (2 Mar, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: IsUnjoinDomainSuccess.ps1 +# Purpose: Use local admin user account to setup a PowerShell Remote Session +# and check if the client computer has unjoined domain successfully. +# Version: 1.1 (2 Mar, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainCreateAcctLDAP.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainCreateAcctLDAP.ps1 index d260568f7..90ebca503 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainCreateAcctLDAP.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainCreateAcctLDAP.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: JoinDomainCreateAcctLDAP.ps1 -## Purpose: Use PowerShell Remote Session to trigger the client computer to join domain by creating an account using LDAP. -## Version: 1.1 (2 Mar, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: JoinDomainCreateAcctLDAP.ps1 +# Purpose: Use PowerShell Remote Session to trigger the client computer to join domain by creating an account using LDAP. +# Version: 1.1 (2 Mar, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainCreateAcctSAMR.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainCreateAcctSAMR.ps1 index f1b41c748..3dfb17b64 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainCreateAcctSAMR.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainCreateAcctSAMR.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: JoinDomainCreateAcctSAMR.ps1 -## Purpose: Use PowerShell Remote Session to trigger the client computer to join domain by creating an account using LDAP. -## Version: 1.1 (2 Mar, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: JoinDomainCreateAcctSAMR.ps1 +# Purpose: Use PowerShell Remote Session to trigger the client computer to join domain by creating an account using LDAP. +# Version: 1.1 (2 Mar, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainPredefAcct.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainPredefAcct.ps1 index b11cc117c..63d680070 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainPredefAcct.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/JoinDomainPredefAcct.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: JoinDomainPredefAcct.ps1 -## Purpose: Use PowerShell Remote Session to trigger the client computer to join domain by a predefined account. -## Version: 1.1 (2 Mar, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: JoinDomainPredefAcct.ps1 +# Purpose: Use PowerShell Remote Session to trigger the client computer to join domain by a predefined account. +# Version: 1.1 (2 Mar, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/LocateDomainController.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/LocateDomainController.ps1 index b110116c3..ce1fa8c82 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/LocateDomainController.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/LocateDomainController.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: LocateDomainController.ps1 -## Purpose: Use PowerShell Remote Session to trigger the client computer to locate the domain controller. -## Version: 1.1 (2 Mar, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: LocateDomainController.ps1 +# Purpose: Use PowerShell Remote Session to trigger the client computer to locate the domain controller. +# Version: 1.1 (2 Mar, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ManageGroupsandTheirMemberships.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ManageGroupsandTheirMemberships.ps1 index a4eaff69d..3cd5edd20 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ManageGroupsandTheirMemberships.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ManageGroupsandTheirMemberships.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: ManageGroupsandTheirMemberships.ps1 -## Purpose: Setup remote session on to the client computer and manage groups and their memberships in AD. -## Version: 1.1 (11 Jan, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: ManageGroupsandTheirMemberships.ps1 +# Purpose: Setup remote session on to the client computer and manage groups and their memberships in AD. +# Version: 1.1 (11 Jan, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ObtainUserAcctListLDAP.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ObtainUserAcctListLDAP.ps1 index 0d00965ac..70ce89451 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ObtainUserAcctListLDAP.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ObtainUserAcctListLDAP.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: ObtainUserAcctListLDAP.ps1 -## Purpose: Setup remote session on to the client computer and obtain a list of user accounts in AD. -## Version: 1.1 (11 Jan, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: ObtainUserAcctListLDAP.ps1 +# Purpose: Setup remote session on to the client computer and obtain a list of user accounts in AD. +# Version: 1.1 (11 Jan, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ProvisionUserAcctLDAP.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ProvisionUserAcctLDAP.ps1 index 16c94365c..f58b959f9 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ProvisionUserAcctLDAP.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ProvisionUserAcctLDAP.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: ProvisionUserAcctLDAP.ps1 -## Purpose: Setup remote session on to the client computer and provision a user account using LDAP. -## Version: 1.1 (11 Jan, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: ProvisionUserAcctLDAP.ps1 +# Purpose: Setup remote session on to the client computer and provision a user account using LDAP. +# Version: 1.1 (11 Jan, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ProvisionUserAcctSAMR.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ProvisionUserAcctSAMR.ps1 index a994fd311..7f31a7ecf 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ProvisionUserAcctSAMR.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/ProvisionUserAcctSAMR.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: ProvisionUserAcctSAMR.ps1 -## Purpose: Setup remote session on to the client computer and provision a user account using LDAP. -## Version: 1.1 (11 Jan, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: ProvisionUserAcctSAMR.ps1 +# Purpose: Setup remote session on to the client computer and provision a user account using LDAP. +# Version: 1.1 (11 Jan, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/UnjoinDomain.ps1 b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/UnjoinDomain.ps1 index e147cd87a..bfedf4398 100644 --- a/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/UnjoinDomain.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/ClientControlAdapter/UnjoinDomain.ps1 @@ -1,15 +1,13 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: UnjoinDomain.ps1 -## Purpose: Setup remote session on to the client computer and unjoin domain. -## Version: 1.1 (11 Jan, 2012) -## +############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: UnjoinDomain.ps1 +# Purpose: Setup remote session on to the client computer and unjoin domain. +# Version: 1.1 (11 Jan, 2012) +# ############################################################################## [string]$clientComputerName = $PtfProp_ClientIP diff --git a/TestSuites/MS-ADOD/src/Adapter/Common/SetupRemoteSession.ps1 b/TestSuites/MS-ADOD/src/Adapter/Common/SetupRemoteSession.ps1 index a9b5893b4..2ea3a9dd7 100644 --- a/TestSuites/MS-ADOD/src/Adapter/Common/SetupRemoteSession.ps1 +++ b/TestSuites/MS-ADOD/src/Adapter/Common/SetupRemoteSession.ps1 @@ -1,16 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows PowerShell Scripting -## File: SetupRemoteSession.ps1 -## Purpose: Use WinRM to Setup a PowerShell session from local machine to a remote computer. -## Version: 1.1 (2 Mar, 2012) -## ############################################################################## +# +# Microsoft Windows PowerShell Scripting +# File: SetupRemoteSession.ps1 +# Purpose: Use WinRM to Setup a PowerShell session from local machine to a remote computer. +# Version: 1.1 (2 Mar, 2012) +# +############################################################################## + param( [string]$computerName, [string]$userName, diff --git a/TestSuites/MS-AZOD/Setup/Scripts/Config-AP01.ps1 b/TestSuites/MS-AZOD/Setup/Scripts/Config-AP01.ps1 index 16e5aa9a9..37c5cf85e 100644 --- a/TestSuites/MS-AZOD/Setup/Scripts/Config-AP01.ps1 +++ b/TestSuites/MS-AZOD/Setup/Scripts/Config-AP01.ps1 @@ -1,16 +1,14 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Config-AP01.ps1 -## Purpose: Configure local realm AP for MS-AZOD test suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2012 + -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Config-AP01.ps1 +# Purpose: Configure local realm AP for MS-AZOD test suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2012 + +# ############################################################################## # Input the amount of time you want to sleep @@ -190,7 +188,6 @@ Function ConfigFileServer REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\kerberos\Parameters /v Supportedencryptiontypes /t REG_DWORD /d 0x7fffffff /f 2>&1 | Write-Host } - #---------------------------------------------------------------------------- # Start logging using start-transcript cmdlet #---------------------------------------------------------------------------- diff --git a/TestSuites/MS-AZOD/Setup/Scripts/Config-AP02.ps1 b/TestSuites/MS-AZOD/Setup/Scripts/Config-AP02.ps1 index 753b92cf0..df319b43a 100644 --- a/TestSuites/MS-AZOD/Setup/Scripts/Config-AP02.ps1 +++ b/TestSuites/MS-AZOD/Setup/Scripts/Config-AP02.ps1 @@ -1,16 +1,14 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Config-AP02.ps1 -## Purpose: Configure trust realm AP for MS-AZOD test suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2012 + -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Config-AP02.ps1 +# Purpose: Configure trust realm AP for MS-AZOD test suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2012 + +# ############################################################################## Function ConfigFileServer diff --git a/TestSuites/MS-AZOD/Setup/Scripts/Config-Client01.ps1 b/TestSuites/MS-AZOD/Setup/Scripts/Config-Client01.ps1 index f86373cc2..914525031 100644 --- a/TestSuites/MS-AZOD/Setup/Scripts/Config-Client01.ps1 +++ b/TestSuites/MS-AZOD/Setup/Scripts/Config-Client01.ps1 @@ -1,16 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Sripting -## File: Config-client01.ps1 -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2012 + -## ############################################################################## +# +# Microsoft Windows Powershell Sripting +# File: Config-client01.ps1 +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2012 + +# +############################################################################## + Function ConfigDriverComputer { $endPointPath = "$env:SystemDrive\MicrosoftProtocolTests\MS-AZOD\OD-Endpoint" diff --git a/TestSuites/MS-AZOD/Setup/Scripts/Config-DC01.ps1 b/TestSuites/MS-AZOD/Setup/Scripts/Config-DC01.ps1 index 13d330dfe..cad28aee0 100644 --- a/TestSuites/MS-AZOD/Setup/Scripts/Config-DC01.ps1 +++ b/TestSuites/MS-AZOD/Setup/Scripts/Config-DC01.ps1 @@ -1,16 +1,14 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Config-DC01.ps1 -## Purpose: Configure local realm DC for MS-AZOD test suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2012 + -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Config-DC01.ps1 +# Purpose: Configure local realm DC for MS-AZOD test suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2012 + +# ############################################################################## Function SetupDCUsersAndGroups @@ -133,7 +131,7 @@ Function SetupDCUsersAndGroups } catch { - .\Write-Info.ps1 "Error occur during create user $name£¡Error happened: $_.Exception.Message" -ForegroundColor Red + .\Write-Info.ps1 "Error occur during create user $name£¡Error happened: $_.Exception.Message" -ForegroundColor Red } } @@ -166,7 +164,7 @@ Function SetupDCUsersAndGroups } catch { - .\Write-Info.ps1 "Error occur during create claim type $displayName£¡Error happened: $_.Exception.Message" -ForegroundColor Red + .\Write-Info.ps1 "Error occur during create claim type $displayName£¡Error happened: $_.Exception.Message" -ForegroundColor Red } } } @@ -201,7 +199,7 @@ Function SetupDCUsersAndGroups } catch { - .\Write-Info.ps1 "Error occur during create Resource Property $displayName£¡Error happened: $_.Exception.Message" -ForegroundColor Red + .\Write-Info.ps1 "Error occur during create Resource Property $displayName£¡Error happened: $_.Exception.Message" -ForegroundColor Red } } } diff --git a/TestSuites/MS-AZOD/Setup/Scripts/Config-DC02.ps1 b/TestSuites/MS-AZOD/Setup/Scripts/Config-DC02.ps1 index 8e650b233..cf2fa0535 100644 --- a/TestSuites/MS-AZOD/Setup/Scripts/Config-DC02.ps1 +++ b/TestSuites/MS-AZOD/Setup/Scripts/Config-DC02.ps1 @@ -1,16 +1,14 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: Config-DC02.ps1 -## Purpose: Configure trust realm DC for MS-AZOD test suite. -## Requirements: Windows Powershell 2.0 -## Supported OS: Windows Server 2012 + -## +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: Config-DC02.ps1 +# Purpose: Configure trust realm DC for MS-AZOD test suite. +# Requirements: Windows Powershell 2.0 +# Supported OS: Windows Server 2012 + +# ############################################################################## Function SetupForestTransitiveTrust( diff --git a/TestSuites/MS-AZOD/Setup/Scripts/Extract-ZipFile.ps1 b/TestSuites/MS-AZOD/Setup/Scripts/Extract-ZipFile.ps1 index 284045b5e..83bede28e 100644 --- a/TestSuites/MS-AZOD/Setup/Scripts/Extract-ZipFile.ps1 +++ b/TestSuites/MS-AZOD/Setup/Scripts/Extract-ZipFile.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. Param ( [Parameter(Mandatory=$true)] diff --git a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/CbacSwitch.ps1 b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/CbacSwitch.ps1 index 3b63c71c5..96a6e1b44 100644 --- a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/CbacSwitch.ps1 +++ b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/CbacSwitch.ps1 @@ -1,15 +1,12 @@ -############################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################# - -################################################################################ -## Microsoft Windows Powershell Scripting -## File: CBACSwitch.ps1 -## Purpose: Turn on or off the cabac of the remote computer by modify registy. -## Version: 1.1 (12 Mar, 2013) -################################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. +############################################################################## +# Microsoft Windows Powershell Scripting +# File: CBACSwitch.ps1 +# Purpose: Turn on or off the cabac of the remote computer by modify registy. +# Version: 1.1 (12 Mar, 2013) +############################################################################## #-------------------------------------------------------------------------------------# # Create $logFile if not exist diff --git a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/CleanupCachedTickets.ps1 b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/CleanupCachedTickets.ps1 index 43b881698..9c7a37405 100644 --- a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/CleanupCachedTickets.ps1 +++ b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/CleanupCachedTickets.ps1 @@ -1,14 +1,12 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -################################################################################ -## Microsoft Windows Powershell Scripting -## File: CleanupCachedTickets.ps1 -## Purpose: Cleanup cached kerberos tickets and dns -## Version: 1.1 (12 Apr, 2013) -################################################################################# +############################################################################## +# Microsoft Windows Powershell Scripting +# File: CleanupCachedTickets.ps1 +# Purpose: Cleanup cached kerberos tickets and dns +# Version: 1.1 (12 Apr, 2013) +############################################################################## #-------------------------------------------------------------------------------------# # Create $logFile if not exist @@ -35,7 +33,6 @@ echo "`$computerName = $computerName" |Out-File $logFile -Append echo "`$userName = $userName" |Out-File $logFile -Append echo "`$userPassword = $userPassword" |Out-File $logFile -Append - #-------------------------------------------------------------------------------------# # When exceptions trapped, stop the script and return null #-------------------------------------------------------------------------------------# diff --git a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/FASTSwitch.ps1 b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/FASTSwitch.ps1 index b5d056259..22f42dcef 100644 --- a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/FASTSwitch.ps1 +++ b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/FASTSwitch.ps1 @@ -1,15 +1,12 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## - -################################################################################ -## Microsoft Windows Powershell Scripting -## File: FASTSwitch.ps1 -## Purpose: Turn on or off the cabac of the remote computer by modify registy. -## Version: 1.1 (12 Mar, 2013) -################################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. +############################################################################## +# Microsoft Windows Powershell Scripting +# File: FASTSwitch.ps1 +# Purpose: Turn on or off the cabac of the remote computer by modify registy. +# Version: 1.1 (12 Mar, 2013) +############################################################################## #-------------------------------------------------------------------------------------# # Create $logFile if not exist diff --git a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/IsRemoteSessionSetup.ps1 b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/IsRemoteSessionSetup.ps1 index 8918a5035..cecfe4bec 100644 --- a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/IsRemoteSessionSetup.ps1 +++ b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/IsRemoteSessionSetup.ps1 @@ -1,16 +1,15 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: IsRemoteSessionSetup.ps1 -## Purpose: Use WinRM to Setup a powershell session from local machine to a remote computer then return if it can be connected. -## Version: 1.1 (2 Mar, 2012) -## ############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: IsRemoteSessionSetup.ps1 +# Purpose: Use WinRM to Setup a powershell session from local machine to a remote computer then return if it can be connected. +# Version: 1.1 (2 Mar, 2012) +# +############################################################################## + param( [string]$computerName, [string]$userName, @@ -79,7 +78,6 @@ if ($password -eq $null -or $password -eq "") $password = $global:password } - #-------------------------------------------------------------------------------------# # New a credential object for session setup #-------------------------------------------------------------------------------------# diff --git a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/ReadShareFolder.ps1 b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/ReadShareFolder.ps1 index 08b4413c8..a3c203557 100644 --- a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/ReadShareFolder.ps1 +++ b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/ReadShareFolder.ps1 @@ -1,15 +1,14 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: ReadShareFolder.ps1 +# Purpose: To list the directory information of a shared folder with specified credential. +# Version: 1.0 (18 Jun, 2014) +############################################################################## -#################################################################################### -## -## Microsoft Windows Powershell Scripting -## File: ReadShareFolder.ps1 -## Purpose: To list the directory information of a shared folder with specified credential. -## Version: 1.0 (18 Jun, 2014) -#################################################################################### #param( # [string]$uncPath, # [string]$userName, @@ -32,7 +31,6 @@ $runningScriptName=$MyInvocation.MyCommand.Name $logFile="$PtfProp_DriverLogPath\$logFileName" $signalFile="$workingDir\$runningScriptName.signal" - #---------------------------------------------------------------------------- # Create the log file #---------------------------------------------------------------------------- diff --git a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/RemoteSessionSetup.ps1 b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/RemoteSessionSetup.ps1 index 6f7a7dac5..9d439a8e0 100644 --- a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/RemoteSessionSetup.ps1 +++ b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/RemoteSessionSetup.ps1 @@ -1,16 +1,15 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Scripting -## File: RemoteSessionSetup.ps1 -## Purpose: Use WinRM to Setup a powershell session from local machine to a remote computer. -## Version: 1.1 (2 Mar, 2012) -## ############################################################################## +# +# Microsoft Windows Powershell Scripting +# File: RemoteSessionSetup.ps1 +# Purpose: Use WinRM to Setup a powershell session from local machine to a remote computer. +# Version: 1.1 (2 Mar, 2012) +# +############################################################################## + param( [string]$computerName, [string]$userName, @@ -79,7 +78,6 @@ if ($password -eq $null -or $password -eq "") $password = $global:password } - #-------------------------------------------------------------------------------------# # New a credential object for session setup #-------------------------------------------------------------------------------------# diff --git a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/WriteToShareFolder.ps1 b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/WriteToShareFolder.ps1 index d0a50a15e..a78688d47 100644 --- a/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/WriteToShareFolder.ps1 +++ b/TestSuites/MS-AZOD/src/Adapter/SutControlAdapter/WriteToShareFolder.ps1 @@ -1,14 +1,13 @@ -######################################################################################################## -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -######################################################################################################## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + +############################################################################## +# Microsoft Windows Powershell Scripting +# File: WriteToShareFolder.ps1 +# Purpose: To create a file to a shared folder with specified credential. +# Version: 1.0 (18 Jun, 2014) +############################################################################## -#################################################################################### -## Microsoft Windows Powershell Scripting -## File: WriteToShareFolder.ps1 -## Purpose: To create a file to a shared folder with specified credential. -## Version: 1.0 (18 Jun, 2014) -#################################################################################### #param( # [string]$uncPath, # [string]$fileName, diff --git a/TestSuites/MS-SMB/Setup/Scripts/Config-Client.ps1 b/TestSuites/MS-SMB/Setup/Scripts/Config-Client.ps1 index 0e0a76e95..b2db0fcb0 100644 --- a/TestSuites/MS-SMB/Setup/Scripts/Config-Client.ps1 +++ b/TestSuites/MS-SMB/Setup/Scripts/Config-Client.ps1 @@ -1,14 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Config-Client.ps1 -## Purpose: Configure driver computer for MS-SMB test suite. -## Requirements: Windows Powershell 2.0 CTP2 -## Supported OS: Windows 7 and later versions -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + ############################################################################## +# Microsoft Windows Powershell Scripting +# File: Config-Client.ps1 +# Purpose: Configure driver computer for MS-SMB test suite. +# Requirements: Windows Powershell 2.0 CTP2 +# Supported OS: Windows 7 and later versions +# +############################################################################## + $ScriptsSignalFile = "$env:HOMEDRIVE\config.finished.signal" $protocolName = "MS-SMB" diff --git a/TestSuites/MS-SMB/Setup/Scripts/Config-Server.ps1 b/TestSuites/MS-SMB/Setup/Scripts/Config-Server.ps1 index fdde928ac..e6b0a2182 100644 --- a/TestSuites/MS-SMB/Setup/Scripts/Config-Server.ps1 +++ b/TestSuites/MS-SMB/Setup/Scripts/Config-Server.ps1 @@ -1,14 +1,15 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -## -## Microsoft Windows Powershell Scripting -## File: Config-Server.ps1 -## Purpose: Configure sut for MS-SMB test suite. -## Requirements: Windows Powershell 2.0 CTP2 -## Supported OS: Windows Server 2008, Windows Server 2008 R2, and Windows 8 Server -## +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. + ############################################################################## +# Microsoft Windows Powershell Scripting +# File: Config-Server.ps1 +# Purpose: Configure sut for MS-SMB test suite. +# Requirements: Windows Powershell 2.0 CTP2 +# Supported OS: Windows Server 2008, Windows Server 2008 R2, and Windows 8 Server +# +############################################################################## + $ScriptsSignalFile = "$env:HOMEDRIVE\config.finished.signal" $protocolName = "MS-SMB" diff --git a/TestSuites/MS-SMB/src/Adapter/ServerSetup/DeleteFiles.ps1 b/TestSuites/MS-SMB/src/Adapter/ServerSetup/DeleteFiles.ps1 index 8e9b0f995..f9f76be29 100644 --- a/TestSuites/MS-SMB/src/Adapter/ServerSetup/DeleteFiles.ps1 +++ b/TestSuites/MS-SMB/src/Adapter/ServerSetup/DeleteFiles.ps1 @@ -1,5 +1,5 @@ # Copyright (c) Microsoft. All rights reserved. -# Licensed under the MIT license. See LICENSE file in the project root for full license information.- +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $sutName = $PtfProp_SutMachineName $sharefolder1 = $PtfProp_SutNtfsShare1 diff --git a/TestSuites/MS-SMB/src/TestSuite/NoSignRequirementCoverage_InvalidTokenTraditional_Win7_Win2K8R2.cs b/TestSuites/MS-SMB/src/TestSuite/NoSignRequirementCoverage_InvalidTokenTraditional_Win7_Win2K8R2.cs index 332ed37f1..b9994be35 100644 --- a/TestSuites/MS-SMB/src/TestSuite/NoSignRequirementCoverage_InvalidTokenTraditional_Win7_Win2K8R2.cs +++ b/TestSuites/MS-SMB/src/TestSuite/NoSignRequirementCoverage_InvalidTokenTraditional_Win7_Win2K8R2.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. + //------------------------------------------------------------------------------ // // This code was generated by a tool. diff --git a/TestSuites/MS-SMB/src/TestSuite/ServerTestSuite.cs b/TestSuites/MS-SMB/src/TestSuite/ServerTestSuite.cs index 753cf566e..9a5002c08 100644 --- a/TestSuites/MS-SMB/src/TestSuite/ServerTestSuite.cs +++ b/TestSuites/MS-SMB/src/TestSuite/ServerTestSuite.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using Microsoft.Protocols.TestTools; using Microsoft.Protocols.TestTools.StackSdk; diff --git a/TestSuites/MS-SMBD/src/Adapter/SutProtocolControlAdapter/DeleteFile.ps1 b/TestSuites/MS-SMBD/src/Adapter/SutProtocolControlAdapter/DeleteFile.ps1 index 5ad725ff7..cb2ed6c59 100644 --- a/TestSuites/MS-SMBD/src/Adapter/SutProtocolControlAdapter/DeleteFile.ps1 +++ b/TestSuites/MS-SMBD/src/Adapter/SutProtocolControlAdapter/DeleteFile.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. [string]$fileName [string]$domain = $PtfProp_DomainName diff --git a/TestSuites/MS-SMBD/src/TestSuite/SmbdTestBase.cs b/TestSuites/MS-SMBD/src/TestSuite/SmbdTestBase.cs index 52aca2da8..980aded3e 100644 --- a/TestSuites/MS-SMBD/src/TestSuite/SmbdTestBase.cs +++ b/TestSuites/MS-SMBD/src/TestSuite/SmbdTestBase.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information.using Microsoft.Protocol.TestSuites.Smbd.Adapter; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Protocol.TestSuites.Smbd.Adapter; using Microsoft.Protocols.TestSuites.Smbd.Adapter; diff --git a/TestSuites/RDP/Client/Setup/Data/DisconnectAll.bat b/TestSuites/RDP/Client/Setup/Data/DisconnectAll.bat index 3c44d598d..358e745c7 100644 --- a/TestSuites/RDP/Client/Setup/Data/DisconnectAll.bat +++ b/TestSuites/RDP/Client/Setup/Data/DisconnectAll.bat @@ -1,3 +1,6 @@ +:: Copyright (c) Microsoft. All rights reserved. +:: Licensed under the MIT license. See LICENSE file in the project root for full license information. + cmd /c schtasks /end /TN Negotiate_RDPConnect cmd /c schtasks /end /TN DirectCredSSP_RDPConnect cmd /c schtasks /end /TN DirectTls_RDPConnect diff --git a/TestSuites/RDP/Client/Setup/Data/TriggerNetworkFailure.bat b/TestSuites/RDP/Client/Setup/Data/TriggerNetworkFailure.bat index 27a620fa8..99633c2fe 100644 --- a/TestSuites/RDP/Client/Setup/Data/TriggerNetworkFailure.bat +++ b/TestSuites/RDP/Client/Setup/Data/TriggerNetworkFailure.bat @@ -1,2 +1,5 @@ +:: Copyright (c) Microsoft. All rights reserved. +:: Licensed under the MIT license. See LICENSE file in the project root for full license information. + netsh interface set interface "Local Area Connection" Disabled netsh interface set interface "Local Area Connection" Enabled \ No newline at end of file diff --git a/TestSuites/RDP/Client/Setup/Scripts/ChangeOrientation_Template.ps1 b/TestSuites/RDP/Client/Setup/Scripts/ChangeOrientation_Template.ps1 index 31adc7da0..0208d20a6 100644 --- a/TestSuites/RDP/Client/Setup/Scripts/ChangeOrientation_Template.ps1 +++ b/TestSuites/RDP/Client/Setup/Scripts/ChangeOrientation_Template.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. Param( [int] diff --git a/TestSuites/RDP/Client/Setup/Scripts/ChangeResolution_Template.ps1 b/TestSuites/RDP/Client/Setup/Scripts/ChangeResolution_Template.ps1 index a1baa6981..666938b33 100644 --- a/TestSuites/RDP/Client/Setup/Scripts/ChangeResolution_Template.ps1 +++ b/TestSuites/RDP/Client/Setup/Scripts/ChangeResolution_Template.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. Param( [int] diff --git a/TestSuites/RDP/Client/Setup/Scripts/Config-DriverComputer.ps1 b/TestSuites/RDP/Client/Setup/Scripts/Config-DriverComputer.ps1 index 76a745042..d1b4cf9f4 100644 --- a/TestSuites/RDP/Client/Setup/Scripts/Config-DriverComputer.ps1 +++ b/TestSuites/RDP/Client/Setup/Scripts/Config-DriverComputer.ps1 @@ -152,7 +152,6 @@ $securePwd = (ConvertTo-SecureString -string "$certPwd" -Force -AsPlainText) Export-PfxCertificate -Cert $cert -Force -Password $securePwd -FilePath "$env:HOMEDRIVE\$certFileName.pfx" Export-Certificate -Cert $cert -FilePath "$env:HOMEDRIVE\$certFileName.cer" -Type CERT - #----------------------------------------------------- # If listening port of test suite is 3389 and the Remote Desktop Service is running, edit registry to change Windows RDP service port and restart TermService #----------------------------------------------------- diff --git a/TestSuites/RDP/Client/Setup/Scripts/Enable-USBRedirection.ps1 b/TestSuites/RDP/Client/Setup/Scripts/Enable-USBRedirection.ps1 index d8d98001d..acabfd0d5 100644 --- a/TestSuites/RDP/Client/Setup/Scripts/Enable-USBRedirection.ps1 +++ b/TestSuites/RDP/Client/Setup/Scripts/Enable-USBRedirection.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $rootPath = Split-Path $MyInvocation.MyCommand.Definition -parent diff --git a/TestSuites/RDP/Client/Setup/Scripts/MaximizeMstsc.ps1 b/TestSuites/RDP/Client/Setup/Scripts/MaximizeMstsc.ps1 index e2771b724..7b1041c4a 100644 --- a/TestSuites/RDP/Client/Setup/Scripts/MaximizeMstsc.ps1 +++ b/TestSuites/RDP/Client/Setup/Scripts/MaximizeMstsc.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $MethodDefine = @' [DllImport("user32.dll", CharSet = CharSet.Auto)] diff --git a/TestSuites/RDP/Client/Setup/Scripts/Set-DisplaySettings.ps1 b/TestSuites/RDP/Client/Setup/Scripts/Set-DisplaySettings.ps1 index 6d647e369..de354f3d1 100644 --- a/TestSuites/RDP/Client/Setup/Scripts/Set-DisplaySettings.ps1 +++ b/TestSuites/RDP/Client/Setup/Scripts/Set-DisplaySettings.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. Function Set-ScreenResolution { <# diff --git a/TestSuites/RDP/Client/Setup/Scripts/Start-Desktop.ps1 b/TestSuites/RDP/Client/Setup/Scripts/Start-Desktop.ps1 index 354b34d63..05e541ae6 100644 --- a/TestSuites/RDP/Client/Setup/Scripts/Start-Desktop.ps1 +++ b/TestSuites/RDP/Client/Setup/Scripts/Start-Desktop.ps1 @@ -1,7 +1,5 @@ -############################################################################# -## Copyright (c) Microsoft Corporation. All rights reserved. -## Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. $rootPath = Split-Path $MyInvocation.MyCommand.Definition -parent diff --git a/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerInitializeDisplaySettings.ps1 b/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerInitializeDisplaySettings.ps1 index 8f1d1b391..871c76b56 100644 --- a/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerInitializeDisplaySettings.ps1 +++ b/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerInitializeDisplaySettings.ps1 @@ -1,10 +1,9 @@ -# Copyright (c) Microsoft. All rights reserved. +# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # This script is used to change screen resolution on remote machine # Return Value: 0 indicates task is started successfully; -1 indicates failed to run the specified task - # Run Task to change remote screen orientation $pwdConverted = ConvertTo-SecureString $ptfprop_SUTUserPassword -AsPlainText -Force $cred = New-Object System.Management.Automation.PSCredential $ptfprop_SUTUserName, $pwdConverted -ErrorAction Stop diff --git a/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerMaximizeRDPClientWindow.ps1 b/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerMaximizeRDPClientWindow.ps1 index 945346e3a..0df0a0881 100644 --- a/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerMaximizeRDPClientWindow.ps1 +++ b/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerMaximizeRDPClientWindow.ps1 @@ -1,4 +1,4 @@ -# Copyright (c) Microsoft. All rights reserved. +# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # This script is used to trigger client to initiate a RDP connection from RDP client, diff --git a/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerOrientationChangeOnClient.ps1 b/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerOrientationChangeOnClient.ps1 index 8fe4cee20..cb85f69f5 100644 --- a/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerOrientationChangeOnClient.ps1 +++ b/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerOrientationChangeOnClient.ps1 @@ -1,10 +1,9 @@ -# Copyright (c) Microsoft. All rights reserved. +# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # This script is used to change screen orientaion on remote machine # Return Value: 0 indicates task is started successfully; -1 indicates failed to run the specified task - # Run Task to change remote screen orientation $pwdConverted = ConvertTo-SecureString $ptfprop_SUTUserPassword -AsPlainText -Force $cred = New-Object System.Management.Automation.PSCredential $ptfprop_SUTUserName, $pwdConverted -ErrorAction Stop diff --git a/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerResolutionChangeOnClient.ps1 b/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerResolutionChangeOnClient.ps1 index eaae0c0f1..e728884bd 100644 --- a/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerResolutionChangeOnClient.ps1 +++ b/TestSuites/RDP/Client/src/Adapter/RdpedispSUTControlAdapter/TriggerResolutionChangeOnClient.ps1 @@ -1,10 +1,9 @@ -# Copyright (c) Microsoft. All rights reserved. +# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # This script is used to change screen resolution on remote machine # Return Value: 0 indicates task is started successfully; -1 indicates failed to run the specified task - # Run Task to change remote screen orientation $pwdConverted = ConvertTo-SecureString $ptfprop_SUTUserPassword -AsPlainText -Force $cred = New-Object System.Management.Automation.PSCredential $ptfprop_SUTUserName, $pwdConverted -ErrorAction Stop diff --git a/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerContinuousTouchEventOnClient.ps1 b/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerContinuousTouchEventOnClient.ps1 index 05880888c..b2f02b899 100644 --- a/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerContinuousTouchEventOnClient.ps1 +++ b/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerContinuousTouchEventOnClient.ps1 @@ -1,4 +1,4 @@ -# Copyright (c) Microsoft. All rights reserved. +# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # This script is used to trigger one touch event on client. diff --git a/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerDismissHoveringContactPduOnClient.ps1 b/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerDismissHoveringContactPduOnClient.ps1 index 864dc5792..8ab5b64b3 100644 --- a/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerDismissHoveringContactPduOnClient.ps1 +++ b/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerDismissHoveringContactPduOnClient.ps1 @@ -1,4 +1,4 @@ -# Copyright (c) Microsoft. All rights reserved. +# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # This script is used to trigger one touch event on client. diff --git a/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerMultiTouchEventOnClient.ps1 b/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerMultiTouchEventOnClient.ps1 index 0f29511e3..ac5bb282d 100644 --- a/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerMultiTouchEventOnClient.ps1 +++ b/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerMultiTouchEventOnClient.ps1 @@ -1,4 +1,4 @@ -# Copyright (c) Microsoft. All rights reserved. +# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # This script is used to trigger one touch event on client. diff --git a/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerPositionSpecifiedTouchEventOnClient.ps1 b/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerPositionSpecifiedTouchEventOnClient.ps1 index c44bf475b..ac357d9be 100644 --- a/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerPositionSpecifiedTouchEventOnClient.ps1 +++ b/TestSuites/RDP/Client/src/Adapter/RdpeiSUTControlAdapter/TriggerPositionSpecifiedTouchEventOnClient.ps1 @@ -1,4 +1,4 @@ -# Copyright (c) Microsoft. All rights reserved. +# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # This script is used to trigger one touch event on client. diff --git a/TestSuites/RDP/RDPSUTControlAgent/Java/gradlew.bat b/TestSuites/RDP/RDPSUTControlAgent/Java/gradlew.bat index 6d57edc70..bd0dea2a7 100644 --- a/TestSuites/RDP/RDPSUTControlAgent/Java/gradlew.bat +++ b/TestSuites/RDP/RDPSUTControlAgent/Java/gradlew.bat @@ -1,3 +1,6 @@ +:: Copyright (c) Microsoft. All rights reserved. +:: Licensed under the MIT license. See LICENSE file in the project root for full license information. + @if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem diff --git a/TestSuites/RDP/Server/Setup/Scripts/PostConfig-Driver.ps1 b/TestSuites/RDP/Server/Setup/Scripts/PostConfig-Driver.ps1 index edf1bcd32..490f4685f 100644 --- a/TestSuites/RDP/Server/Setup/Scripts/PostConfig-Driver.ps1 +++ b/TestSuites/RDP/Server/Setup/Scripts/PostConfig-Driver.ps1 @@ -1,13 +1,13 @@ # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. -############################################################################# -## -## Microsoft Windows Powershell Sripting -## File : PostConfig-Driver.ps1 -## Requirements : Windows Powershell 3.0 -## Supported OS : Windows Server 2012R2 or later -## +############################################################################## +# +# Microsoft Windows Powershell Sripting +# File : PostConfig-Driver.ps1 +# Requirements : Windows Powershell 3.0 +# Supported OS : Windows Server 2012R2 or later +# ############################################################################## Param @@ -127,7 +127,6 @@ Function Config-Environment { } } - #------------------------------------------------------------------------------------------ # Main Function #------------------------------------------------------------------------------------------ diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/CodecFactory.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/CodecFactory.cs index 7b7acc5ee..0080c9343 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/CodecFactory.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/CodecFactory.cs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + using System.Collections.Generic; using System.Linq; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/CodecParam.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/CodecParam.cs index 91f92f7f2..716033471 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/CodecParam.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/CodecParam.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Collections.Generic; namespace CodecToolSet.Core { // declares a make-up interface diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Constants.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Constants.cs index c421c7480..f25144c2f 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Constants.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Constants.cs @@ -1,4 +1,7 @@ -using System.Collections.Concurrent; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Collections.Concurrent; namespace CodecToolSet.Core { diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Extensions.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Extensions.cs index 337fdeab1..17dbf6a95 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Extensions.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Extensions.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ICodecAction.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ICodecAction.cs index bfe7237bf..27706138d 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ICodecAction.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ICodecAction.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; namespace CodecToolSet.Core diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Downscaler.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Downscaler.cs index 63f951299..260d78354 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Downscaler.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Downscaler.cs @@ -1,6 +1,5 @@ -// ------------------------------------------------------------------------------ -// Copyright (c) Microsoft Corporation. All rights reserved. -// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Drawing; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/FRIQAIndexBase.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/FRIQAIndexBase.cs index e798291db..91c343e3b 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/FRIQAIndexBase.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/FRIQAIndexBase.cs @@ -1,6 +1,5 @@ -// ------------------------------------------------------------------------------ -// Copyright (c) Microsoft Corporation. All rights reserved. -// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Drawing; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Gssim.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Gssim.cs index 2465fc336..b97d48952 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Gssim.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Gssim.cs @@ -1,6 +1,5 @@ -// ------------------------------------------------------------------------------ -// Copyright (c) Microsoft Corporation. All rights reserved. -// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Drawing; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Mse.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Mse.cs index 083af6369..be32ef6c5 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Mse.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Mse.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Msssim.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Msssim.cs index 04d1262ec..786c44d09 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Msssim.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Msssim.cs @@ -1,6 +1,5 @@ -// ------------------------------------------------------------------------------ -// Copyright (c) Microsoft Corporation. All rights reserved. -// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Drawing; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Psnr.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Psnr.cs index f19e3a294..c7501baa1 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Psnr.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Psnr.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Ssim.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Ssim.cs index 53506aff4..df91f36f1 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Ssim.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/ImageQualityAccessment/Ssim.cs @@ -1,6 +1,5 @@ -// ------------------------------------------------------------------------------ -// Copyright (c) Microsoft Corporation. All rights reserved. -// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Drawing; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/MockCodecs.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/MockCodecs.cs index 9bd0c6551..5f9e72dfd 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/MockCodecs.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/MockCodecs.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Properties/AssemblyInfo.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Properties/AssemblyInfo.cs index 472071004..7389ed822 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Properties/AssemblyInfo.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Properties/AssemblyInfo.cs @@ -1,4 +1,7 @@ -using System.Reflection; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecodeBase.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecodeBase.cs index 213099801..b2181e387 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecodeBase.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecodeBase.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecodeCodecs.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecodeCodecs.cs index d51bb8de9..1656e7b25 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecodeCodecs.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecodeCodecs.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecoderWrapper.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecoderWrapper.cs index 8c8c0549a..24564bb61 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecoderWrapper.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXDecode/RFXDecoderWrapper.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncodeBase.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncodeBase.cs index 1068f11ec..d534497ed 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncodeBase.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncodeBase.cs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncodeCodecs.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncodeCodecs.cs index 2acedb813..954a6c071 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncodeCodecs.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncodeCodecs.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdprfx; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncoderWrapper.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncoderWrapper.cs index f0a335371..7387c4c86 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncoderWrapper.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXEncode/RFXEncoderWrapper.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecodeBase.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecodeBase.cs index 9ce134cc5..20d09e6c2 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecodeBase.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecodeBase.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecodeCodecs.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecodeCodecs.cs index e3098798a..6ec5a70e4 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecodeCodecs.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecodeCodecs.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecoderWrapper.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecoderWrapper.cs index 198ddadff..b226ebcc3 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecoderWrapper.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPDecode/RFXPDecoderWrapper.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncodeBase.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncodeBase.cs index 1b78658b6..a7b567f88 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncodeBase.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncodeBase.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncodeCodecs.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncodeCodecs.cs index d59945c1b..8c1dcd729 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncodeCodecs.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncodeCodecs.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncoderWrapper.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncoderWrapper.cs index 9facc0110..0639953b1 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncoderWrapper.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/RFXPEncode/RFXPEncoderWrapper.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileInput.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileInput.cs index 8d17632c4..9b1f89116 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileInput.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileInput.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Drawing; using System.IO; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileOutput.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileOutput.cs index 9d1b72700..cb6c9c17e 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileOutput.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileOutput.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections; using System.Collections.Generic; using System.Drawing; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileSerializer.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileSerializer.cs index bbc4007ce..a69064f29 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileSerializer.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileSerializer.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; namespace CodecToolSet.Core diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileType.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileType.cs index 9bb57c355..d7111f62f 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileType.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/TileType.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Triplet.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Triplet.cs index d9b462fa2..345b37f20 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Triplet.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Triplet.cs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + using System; using System.Collections; using System.Collections.Generic; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Utility.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Utility.cs index 62f22b4e1..5fff7b0ae 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Utility.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Core/Utility.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/ControllerTest.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/ControllerTest.cs index 91d21ba8a..04e77ff3f 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/ControllerTest.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/ControllerTest.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/FunctionalTest.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/FunctionalTest.cs index 02e025148..e8bafb317 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/FunctionalTest.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/FunctionalTest.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Drawing; using System.Dynamic; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/ModelTest.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/ModelTest.cs index eddfc78e0..2bea416d4 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/ModelTest.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/ModelTest.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/Properties/AssemblyInfo.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/Properties/AssemblyInfo.cs index d082f653f..d0fed269b 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/Properties/AssemblyInfo.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/Properties/AssemblyInfo.cs @@ -1,4 +1,7 @@ -using System.Reflection; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/Utilities.cs b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/Utilities.cs index 54c98c13e..e577bde9d 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/Utilities.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/CodecToolSet.Tests/Utilities.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/BundleConfig.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/BundleConfig.cs index 6e78d15dd..66cfddd9a 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/BundleConfig.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/BundleConfig.cs @@ -1,4 +1,7 @@ -using System.Web; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Web; using System.Web.Optimization; // using RDPToolSet.Web.App_Start; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/FilterConfig.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/FilterConfig.cs index d4a669469..4658fe853 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/FilterConfig.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/FilterConfig.cs @@ -1,4 +1,7 @@ -using System.Web; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Web; using System.Web.Mvc; namespace RDPToolSet.Web diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/RouteConfig.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/RouteConfig.cs index 2816ed100..17fc6415e 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/RouteConfig.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/RouteConfig.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Web; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/WebApiConfig.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/WebApiConfig.cs index de8d6eae2..8044fbbf6 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/WebApiConfig.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/App_Start/WebApiConfig.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/CodecBaseController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/CodecBaseController.cs index be4fe8e61..2dc15d9b8 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/CodecBaseController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/CodecBaseController.cs @@ -1,4 +1,7 @@ -using System.Linq; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Linq; using System.Web.Helpers; using System.Web.Mvc; using CodecToolSet.Core; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/CodecHomeController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/CodecHomeController.cs index 8e1fa98f7..cb7f531a0 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/CodecHomeController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/CodecHomeController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Web; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/GuestBookController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/GuestBookController.cs index 2d5d26602..cc0e74d7c 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/GuestBookController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/GuestBookController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/HomeController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/HomeController.cs index be004af21..9adbab757 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/HomeController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/HomeController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Web; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQABaseController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQABaseController.cs index d7fbd3a49..19d1117e3 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQABaseController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQABaseController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAGSSIMController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAGSSIMController.cs index dc841ff50..e6b77ef6c 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAGSSIMController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAGSSIMController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Drawing; using System.Linq; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAMSEController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAMSEController.cs index 547b0537a..56bb5ef3e 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAMSEController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAMSEController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Drawing; using System.Linq; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAMSSSIMController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAMSSSIMController.cs index 60036a75d..08d4c55b2 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAMSSSIMController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAMSSSIMController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Drawing; using System.Linq; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAPSNRController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAPSNRController.cs index 82202a735..08a7ed256 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAPSNRController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQAPSNRController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Drawing; using System.Linq; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQASSIMController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQASSIMController.cs index 11bafcd82..59d6d7dff 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQASSIMController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/IQASSIMController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Drawing; using System.Linq; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXDecodeController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXDecodeController.cs index 2b23a42c3..2516b831d 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXDecodeController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXDecodeController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXEncodeController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXEncodeController.cs index 0d6c4bc5a..d9184b0fa 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXEncodeController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXEncodeController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Drawing; using System.IO; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXPDecodeController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXPDecodeController.cs index 41f88888d..428e03745 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXPDecodeController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXPDecodeController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXPEncodeController.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXPEncodeController.cs index 5b2615219..99dffed83 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXPEncodeController.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Controllers/RFXPEncodeController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Drawing; using System.IO; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Global.asax.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Global.asax.cs index 0e8919b29..fa35d1aa0 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Global.asax.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Global.asax.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Web; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/ICodecViewModel.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/ICodecViewModel.cs index 54989cdcc..f69fa8c62 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/ICodecViewModel.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/ICodecViewModel.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using CodecToolSet.Core; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/LayoutViewModel.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/LayoutViewModel.cs index 123dcb715..97847fae6 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/LayoutViewModel.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/LayoutViewModel.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Web; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXDecodeViewModel.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXDecodeViewModel.cs index ebb97d7c3..7cd7473c9 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXDecodeViewModel.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXDecodeViewModel.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Collections.Generic; using CodecToolSet.Core; using CodecToolSet.Core.RFXDecode; using System.Linq; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXEncodeViewModel.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXEncodeViewModel.cs index d5b92ae7f..bc7a1790f 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXEncodeViewModel.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXEncodeViewModel.cs @@ -1,4 +1,7 @@ -using CodecToolSet.Core; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using CodecToolSet.Core; using CodecToolSet.Core.RFXEncode; using System; using System.Collections.Generic; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXPDecodeViewModel.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXPDecodeViewModel.cs index 5296f5646..873f07eb1 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXPDecodeViewModel.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXPDecodeViewModel.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Web; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXPEncodeViewModel.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXPEncodeViewModel.cs index 555af1835..0732482b1 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXPEncodeViewModel.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/RFXPEncodeViewModel.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using System.Web; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/WebpageComponents.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/WebpageComponents.cs index bcfdba877..f2984bc66 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/WebpageComponents.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Models/WebpageComponents.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Collections.Generic; using System.Linq; namespace RDPToolSet.Web.Models diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Properties/AssemblyInfo.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Properties/AssemblyInfo.cs index 5516bffc9..2f22ee55a 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Properties/AssemblyInfo.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Properties/AssemblyInfo.cs @@ -1,4 +1,7 @@ -using System.Reflection; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Views/ViewHelpers/ViewHelper.cs b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Views/ViewHelpers/ViewHelper.cs index 625ea2ea6..74416bd9d 100644 --- a/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Views/ViewHelpers/ViewHelper.cs +++ b/TestSuites/RDP/Tools/RDPToolSet/RDPToolSet.Web/Views/ViewHelpers/ViewHelper.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; using System.IO; using System.Web.Mvc; diff --git a/common/runTestCase.cmd b/common/runTestCase.cmd index 793fe7656..2beecab89 100644 --- a/common/runTestCase.cmd +++ b/common/runTestCase.cmd @@ -1,3 +1,6 @@ +:: Copyright (c) Microsoft. All rights reserved. +:: Licensed under the MIT license. See LICENSE file in the project root for full license information. + REM %1 is the path of dll, %2 is the path of ptfconfig, %3 is the name of testcase set CurrentPath=%~dp0 call "%CurrentPath%setVsTestPath.cmd"