Clean up License Header
This commit is contained in:
Родитель
558cadd95d
Коммит
797a4fa636
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Add-AdRemoteUserToLocalGroups.ps1
|
# File: Add-AdRemoteUserToLocalGroups.ps1
|
||||||
## Purpose: Add a user from another active directory domain to the local builtin groups indicated.
|
# Purpose: Add a user from another active directory domain to the local builtin groups indicated.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Add-DFSFolder.ps1
|
# File: Add-DFSFolder.ps1
|
||||||
## Purpose: Add a DFS folder.
|
# Purpose: Add a DFS folder.
|
||||||
## Version: 1.1 (26 Jun, 2008)
|
# Version: 1.1 (26 Jun, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
param(
|
param(
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Add-Printer.ps1
|
# File: Add-Printer.ps1
|
||||||
## Purpose: Add a printer
|
# Purpose: Add a printer
|
||||||
## Version: 1.2 (20 Aug, 2008)
|
# Version: 1.2 (20 Aug, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param(
|
Param(
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
# Function: PromoteDomainController
|
# Function: PromoteDomainController
|
||||||
# Usage : Install ADDS feature on the server and promote it to DC.
|
# Usage : Install ADDS feature on the server and promote it to DC.
|
||||||
# Params : [string]$DomainName: The name of the domain.
|
# Params : [string]$DomainName: The name of the domain.
|
||||||
# [string]$AdminPwd : The password of the Administrator.
|
# [string]$AdminPwd : The password of the Administrator.
|
||||||
# Remark : A reboot is needed after promoting to DC.
|
# Remark : A reboot is needed after promoting to DC.
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
(
|
(
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Check-ReturnValue.ps1
|
# File: Check-ReturnValue.ps1
|
||||||
## Purpose: Check return value of the previous operation and dump the error message and information.
|
# Purpose: Check return value of the previous operation and dump the error message and information.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param(
|
Param(
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Config-FileSharing.ps1
|
# File: Config-FileSharing.ps1
|
||||||
## Purpose: Enable/Disable the FileSharing.
|
# Purpose: Enable/Disable the FileSharing.
|
||||||
## Version: 1.1 (26 Jun, 2008)
|
# Version: 1.1 (26 Jun, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
param(
|
param(
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Create-AdUserWithGroupMembership.ps1
|
# File: Create-AdUserWithGroupMembership.ps1
|
||||||
## Purpose: Create a user in active directory local domain and add it to groups indicated.
|
# Purpose: Create a user in active directory local domain and add it to groups indicated.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Create-DFSNamespace.ps1
|
# File: Create-DFSNamespace.ps1
|
||||||
## Purpose: Create a DFS namespace and add a DFS folder.
|
# Purpose: Create a DFS namespace and add a DFS folder.
|
||||||
## Version: 1.1 (26 Jun, 2008)
|
# Version: 1.1 (26 Jun, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
param(
|
param(
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Create-Folder.ps1
|
# File: Create-Folder.ps1
|
||||||
## Purpose: Create a new folder
|
# Purpose: Create a new folder
|
||||||
## Version: 1.1 (26 Jun, 2008])
|
# Version: 1.1 (26 Jun, 2008])
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
param(
|
param(
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Create-ManagedServiceAccount.ps1
|
# File: Create-ManagedServiceAccount.ps1
|
||||||
## Purpose: Create a managed service account in active directory local domain
|
# Purpose: Create a managed service account in active directory local domain
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Create-SelfSignedCert.ps1
|
# File: Create-SelfSignedCert.ps1
|
||||||
## Purpose: Create self signed certificate for server authentication.
|
# Purpose: Create self signed certificate for server authentication.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Create-ShadowCopy.ps1
|
# File: Create-ShadowCopy.ps1
|
||||||
## Purpose: Create a shadow copy.
|
# Purpose: Create a shadow copy.
|
||||||
## Version: 1.1 (26 Jun, 2008)
|
# Version: 1.1 (26 Jun, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
param(
|
param(
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#############################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################
|
|
||||||
|
|
||||||
Param
|
Param
|
||||||
(
|
(
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
##############################################################################
|
||||||
# Function: Disable-ICMPRedirect
|
# Function: Disable-ICMPRedirect
|
||||||
# Remark : Disable ICMP Redirect
|
# Remark : Disable ICMP Redirect
|
||||||
#-------------------------------------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
$regKey = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"
|
$regKey = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"
|
||||||
if(Test-Path -Path $regKey)
|
if(Test-Path -Path $regKey)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
# Function: Disable-IPv6
|
# Function: Disable-IPv6
|
||||||
# Usage : Disable IPv6 for this machine
|
# Usage : Disable IPv6 for this machine
|
||||||
# Params :
|
# Params :
|
||||||
# Remark :
|
# Remark :
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
$Adapter = Get-NetAdapter
|
$Adapter = Get-NetAdapter
|
||||||
$Name = $Adapter.Name
|
$Name = $Adapter.Name
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
#Disable Firewall
|
#Disable Firewall
|
||||||
netsh advfirewall set allprofiles state off
|
netsh advfirewall set allprofiles state off
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Enable-AdRecycleBin.ps1
|
# File: Enable-AdRecycleBin.ps1
|
||||||
## Purpose: Enable the recyle bin feature for Active Directory Domain Service.
|
# Purpose: Enable the recyle bin feature for Active Directory Domain Service.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
##############################################################################
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Function: EnableRemoteAccess
|
# Function: EnableRemoteAccess
|
||||||
# Usage : Enable RemoteAccess feature.
|
# Usage : Enable RemoteAccess feature.
|
||||||
#-------------------------------------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
Import-Module ServerManager
|
Import-Module ServerManager
|
||||||
Add-WindowsFeature RemoteAccess -IncludeAllSubFeature -ErrorAction Stop ##-IncludeManagementTools
|
Add-WindowsFeature RemoteAccess -IncludeAllSubFeature -ErrorAction Stop ##-IncludeManagementTools
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Execute-RemoteScript.ps1
|
# File: Execute-RemoteScript.ps1
|
||||||
## Purpose: Execute script on a remote machine.
|
# Purpose: Execute script on a remote machine.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Find-PtfConfigFiles.ps1
|
# File: Find-PtfConfigFiles.ps1
|
||||||
## Purpose: Find PtfConfig files in both \bin and source\server\testcode\testsuite folders.
|
# Purpose: Find PtfConfig files in both \bin and source\server\testcode\testsuite folders.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Get-AdLdsInstanceId.ps1
|
# File: Get-AdLdsInstanceId.ps1
|
||||||
## Purpose: Get domain objectGuid and log it to system drive.
|
# Purpose: Get domain objectGuid and log it to system drive.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#############################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################
|
|
||||||
|
|
||||||
param
|
param
|
||||||
(
|
(
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
#############################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Get-CertHash.ps1
|
# File: Get-CertHash.ps1
|
||||||
## Purpose: Get the cert hash of a certificate in the store.
|
# Purpose: Get the cert hash of a certificate in the store.
|
||||||
## Version: 1.0 (14 July, 2008)
|
# Version: 1.0 (14 July, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
param(
|
param(
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
|
||||||
##
|
|
||||||
## 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
|
Param
|
||||||
(
|
(
|
||||||
[Parameter(Mandatory=$true)]
|
[Parameter(Mandatory=$true)]
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Get-DomainGuid.ps1
|
# File: Get-DomainGuid.ps1
|
||||||
## Purpose: Get domain objectGuid and log it to system drive.
|
# Purpose: Get domain objectGuid and log it to system drive.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Get-DomainNetbiosName.ps1
|
# File: Get-DomainNetbiosName.ps1
|
||||||
## Purpose: Get domain Netbios name and log it to system drive.
|
# Purpose: Get domain Netbios name and log it to system drive.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Get-DomainSid.ps1
|
# File: Get-DomainSid.ps1
|
||||||
## Purpose: Get domain objectSid and log it to system drive.
|
# Purpose: Get domain objectSid and log it to system drive.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Get-ForestFuncLvl.ps1
|
# File: Get-ForestFuncLvl.ps1
|
||||||
## Purpose: Get forest functional level and log it to system drive.
|
# Purpose: Get forest functional level and log it to system drive.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#-----------------------------------------------------
|
##############################################################################
|
||||||
# Function : Get-InstalledScriptPath.ps1
|
# Function : Get-InstalledScriptPath.ps1
|
||||||
# Usage : Get the script path in the installed msi directory
|
# Usage : Get the script path in the installed msi directory
|
||||||
# and store this Information in the MSIInstalled.signal file
|
# and store this Information in the MSIInstalled.signal file
|
||||||
# Parameter: $Name - Test Suite Name
|
# Parameter: $Name - Test Suite Name
|
||||||
#-----------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
Param(
|
Param(
|
||||||
[parameter(Mandatory=$true)]
|
[parameter(Mandatory=$true)]
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Get-OsVersion.ps1
|
# File: Get-OsVersion.ps1
|
||||||
## Purpose: Get version of current operating system and log it to system drive.
|
# Purpose: Get version of current operating system and log it to system drive.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
param(
|
param(
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
#############################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
#############################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Get-OSVersionForADTests.ps1
|
# File: Get-OSVersionForADTests.ps1
|
||||||
## Purpose: Get version of current operating system.
|
# Purpose: Get version of current operating system.
|
||||||
## Version: 1.1 (4 Aug, 2008)
|
# Version: 1.1 (4 Aug, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
param(
|
param(
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## Purpose: Get OS version number.
|
# Purpose: Get OS version number.
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## Purpose: Get Parameter which used in Protocol in XML file.
|
# Purpose: Get Parameter which used in Protocol in XML file.
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param(
|
Param(
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
###########################################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: GetVMNameByComputerName.ps1
|
# File: GetVMNameByComputerName.ps1
|
||||||
## Purpose: Get the hypervname of current vm from the test suite config file by the computer name.
|
# Purpose: Get the hypervname of current vm from the test suite config file by the computer name.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, and later.
|
# Supported OS: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, and later.
|
||||||
##
|
#
|
||||||
###########################################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
(
|
(
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Microsoft Windows Powershell Script
|
# Microsoft Windows Powershell Script
|
||||||
# File : GetVmParameters.ps1
|
# File : GetVmParameters.ps1
|
||||||
|
@ -17,6 +15,7 @@
|
||||||
# -ConfigFile <String>: The config file from which parameters will
|
# -ConfigFile <String>: The config file from which parameters will
|
||||||
# be read.
|
# be read.
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
param
|
param
|
||||||
(
|
(
|
||||||
[parameter(Mandatory=$true)]
|
[parameter(Mandatory=$true)]
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#############################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
#############################################################
|
|
||||||
|
|
||||||
param
|
param
|
||||||
(
|
(
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Write-Host "Installing ADDS..."
|
Write-Host "Installing ADDS..."
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Install-AdCertificateService-Feature.ps1
|
# File: Install-AdCertificateService-Feature.ps1
|
||||||
## Purpose: Install Active Directory Certificate Service.
|
# Purpose: Install Active Directory Certificate Service.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Import-Module ServerManager
|
Import-Module ServerManager
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Install-AdLds-Feature.ps1
|
# File: Install-AdLds-Feature.ps1
|
||||||
## Purpose: Install Active Directory Lightweight Directory Service.
|
# Purpose: Install Active Directory Lightweight Directory Service.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Import-Module ServerManager
|
Import-Module ServerManager
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Install-AdLds-Instance.ps1
|
# File: Install-AdLds-Instance.ps1
|
||||||
## Purpose: Install instance for Active Directory Lightweight Directory Service.
|
# Purpose: Install instance for Active Directory Lightweight Directory Service.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Install-DFSComponent.ps1
|
# File: Install-DFSComponent.ps1
|
||||||
## Purpose: Install DFS component (just used in w2k8).
|
# Purpose: Install DFS component (just used in w2k8).
|
||||||
## Version: 1.1 (26 Jun, 2008)
|
# Version: 1.1 (26 Jun, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Install-DfsManagement-Feature.ps1
|
# File: Install-DfsManagement-Feature.ps1
|
||||||
## Purpose: Install DFS Management Tools.
|
# Purpose: Install DFS Management Tools.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Install-WindowsFeature File-Services
|
Install-WindowsFeature File-Services
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
#-----------------------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Install-Iis-Feature.ps1
|
# File: Install-Iis-Feature.ps1
|
||||||
## Purpose: Install IIS features and tools.
|
# Purpose: Install IIS features and tools.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Import-Module ServerManager
|
Import-Module ServerManager
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Install-SelfSignedCert.ps1
|
# File: Install-SelfSignedCert.ps1
|
||||||
## Purpose: Install self signed certificate.
|
# Purpose: Install self signed certificate.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
#############################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
# Script: InstallADLDS
|
# Script: InstallADLDS
|
||||||
# Usage : Install AD LDS on the computer.
|
# Usage : Install AD LDS on the computer.
|
||||||
# Remark: A restart is needed after installation.
|
# Remark: A restart is needed after installation.
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
[CmdletBinding(DefaultParameterSetName="Unique")]
|
[CmdletBinding(DefaultParameterSetName="Unique")]
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Join-Domain.ps1
|
# File: Join-Domain.ps1
|
||||||
## Purpose: Join the machine to the specified domain.
|
# Purpose: Join the machine to the specified domain.
|
||||||
## Version: 1.1 (26 June, 2008)
|
# Version: 1.1 (26 June, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param(
|
Param(
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Modify-ConfigFileNode.ps1
|
# File: Modify-ConfigFileNode.ps1
|
||||||
## Purpose: Modify the node value for the ".deployment.ptfconfig" file.
|
# Purpose: Modify the node value for the ".deployment.ptfconfig" file.
|
||||||
## Version: 1.1 (26 June, 2008)
|
# Version: 1.1 (26 June, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param(
|
Param(
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Modify-PtfConfigFiles.ps1
|
# File: Modify-PtfConfigFiles.ps1
|
||||||
## Purpose: Modify PtfConfig files in both \bin and source\server\testcode\testsuite folders with specified property name and value.
|
# Purpose: Modify PtfConfig files in both \bin and source\server\testcode\testsuite folders with specified property name and value.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
##############################################################################
|
||||||
##
|
# Microsoft Windows Powershell Scripting
|
||||||
## Microsoft Windows Powershell Scripting
|
# File: Modify-TestRunConfig.ps1
|
||||||
## File: Modify-TestRunConfig.ps1
|
# Purpose: Update .TestRunConfig file to make all deployment items'
|
||||||
## Purpose: Update .TestRunConfig file to make all deployment items'
|
# path refer to current directory, and check if each
|
||||||
## path refer to current directory, and check if each
|
# deployment item exists.
|
||||||
## deployment item exists.
|
# Version: 1.0 (11 Sep, 2008)
|
||||||
## Version: 1.0 (11 Sep, 2008)
|
#
|
||||||
##
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param(
|
Param(
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
#############################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
# Function: PromoteChildDomain.ps1
|
# Function: PromoteChildDomain.ps1
|
||||||
# Usage : Install ADDS feature on the server and promote it to a CDC.
|
# Usage : Install ADDS feature on the server and promote it to a CDC.
|
||||||
# Params : [string]$NewDomainName: The name of the child domain.
|
# Params : [string]$NewDomainName: The name of the child domain.
|
||||||
|
@ -12,7 +10,8 @@
|
||||||
# [string]$AdminPwd : The password of the Administrator.
|
# [string]$AdminPwd : The password of the Administrator.
|
||||||
# [string]$DomainMode: The Mode of the child domain.
|
# [string]$DomainMode: The Mode of the child domain.
|
||||||
# Remark : A reboot is needed after promoting to DC.
|
# Remark : A reboot is needed after promoting to DC.
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
(
|
(
|
||||||
[Parameter(Mandatory=$true)]
|
[Parameter(Mandatory=$true)]
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
# Function: PromoteDomainController
|
# Function: PromoteDomainController
|
||||||
# Usage : Install ADDS feature on the server and promote it to DC.
|
# Usage : Install ADDS feature on the server and promote it to DC.
|
||||||
# Params : [string]$DomainName : The name of the domain.
|
# Params : [string]$DomainName : The name of the domain.
|
||||||
|
@ -12,7 +10,8 @@
|
||||||
# [boolean]$IsPrimary : indicator if its a primary domain.
|
# [boolean]$IsPrimary : indicator if its a primary domain.
|
||||||
# [string]$ForestMode : ForestMode of the domain.
|
# [string]$ForestMode : ForestMode of the domain.
|
||||||
# Remark : A reboot is needed after promoting to DC.
|
# Remark : A reboot is needed after promoting to DC.
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
(
|
(
|
||||||
[Parameter(Mandatory=$true)]
|
[Parameter(Mandatory=$true)]
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
#############################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
# Function: PromoteRODC
|
# Function: PromoteRODC
|
||||||
# Usage : Install ADDS feature on the server and promote it to a RODC.
|
# Usage : Install ADDS feature on the server and promote it to a RODC.
|
||||||
# Params : [string]$DomainName: The name of the domain.
|
# Params : [string]$DomainName: The name of the domain.
|
||||||
# [string]$AdminUser : The username of the Administrator.
|
# [string]$AdminUser : The username of the Administrator.
|
||||||
# [string]$AdminPwd : The password of the Administrator.
|
# [string]$AdminPwd : The password of the Administrator.
|
||||||
# Remark : A reboot is needed after promoting to DC.
|
# Remark : A reboot is needed after promoting to DC.
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
(
|
(
|
||||||
[Parameter(Mandatory=$true)]
|
[Parameter(Mandatory=$true)]
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Register-DbgSrv.ps1
|
# File: Register-DbgSrv.ps1
|
||||||
## Purpose: Register the windbg dbgsrv for debugging purpose.
|
# Purpose: Register the windbg dbgsrv for debugging purpose.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
if(Test-Path -Path "c:\temp\scripts\TTT\tttracer.exe" -PathType Leaf)
|
if(Test-Path -Path "c:\temp\scripts\TTT\tttracer.exe" -PathType Leaf)
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Replicate-DomainNc.ps1
|
# File: Replicate-DomainNc.ps1
|
||||||
## Purpose: Replicate domain naming context from one DC to another.
|
# Purpose: Replicate domain naming context from one DC to another.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
# Function: RestartAndRun
|
# Function: RestartAndRun
|
||||||
# Usage : Restart the computer and run the specified script.
|
# Usage : Restart the computer and run the specified script.
|
||||||
# Params : -ScriptPath <String> : The path of the script to be executed after
|
# Params : -ScriptPath <String> : 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
|
# 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
|
# in your script, you must call RestartAndRunFinish.ps1 to clean up
|
||||||
# the registry entry.
|
# the registry entry.
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
(
|
(
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
# Function: RestartAndRunFinish
|
# Function: RestartAndRunFinish
|
||||||
# Usage : Call this script to clean up the registry entry after calling
|
# Usage : Call this script to clean up the registry entry after calling
|
||||||
# RestartAndRun.ps1.
|
# RestartAndRun.ps1.
|
||||||
# Remark : This script should be called at the end of your script, if you
|
# Remark : This script should be called at the end of your script, if you
|
||||||
# have ever called RestartAndRun.ps1.
|
# have ever called RestartAndRun.ps1.
|
||||||
#-----------------------------------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
$private:regRunPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
|
$private:regRunPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
|
||||||
$private:regKeyName = "TKFRSAR"
|
$private:regKeyName = "TKFRSAR"
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-AdComputerPassword.ps1
|
# File: Set-AdComputerPassword.ps1
|
||||||
## Purpose: Set Active Directory computer password.
|
# Purpose: Set Active Directory computer password.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-AdComputerPasswordOnPDC.ps1
|
# File: Set-AdComputerPasswordOnPDC.ps1
|
||||||
## Purpose: Set Active Directory computer password.
|
# Purpose: Set Active Directory computer password.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-AdUserPwdPolicy.ps1
|
# File: Set-AdUserPwdPolicy.ps1
|
||||||
## Purpose: Set Active Directory domain adminitrator password can not be changed and never expires.
|
# Purpose: Set Active Directory domain adminitrator password can not be changed and never expires.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-AlternateDns.ps1
|
# File: Set-AlternateDns.ps1
|
||||||
## Purpose: Set alternate dns for this computer.
|
# Purpose: Set alternate dns for this computer.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,18 +1,16 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-AutoLogon.ps1
|
# File: Set-AutoLogon.ps1
|
||||||
## Purpose: Set the computer to be able to auto logon by the providing username
|
# Purpose: Set the computer to be able to auto logon by the providing username
|
||||||
## and pasword.
|
# and pasword.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-ExecutionPolicy-Unrestricted.ps1
|
# File: Set-ExecutionPolicy-Unrestricted.ps1
|
||||||
## Purpose: Set PowerShell execution policy as unrestricted.
|
# Purpose: Set PowerShell execution policy as unrestricted.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force
|
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-IisSslBinding.ps1
|
# File: Set-IisSslBinding.ps1
|
||||||
## Purpose: Set SSL binding for IIS website to use the self-signed certificate
|
# Purpose: Set SSL binding for IIS website to use the self-signed certificate
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Turnoff-KdcService.ps1
|
# File: Turnoff-KdcService.ps1
|
||||||
## Purpose: Turn off the KDC service for this computer.
|
# Purpose: Turn off the KDC service for this computer.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-MsDsAdditionalDnsHostName.ps1
|
# File: Set-MsDsAdditionalDnsHostName.ps1
|
||||||
## Purpose: Set msDs-AdditionalDnsHostName attribute.
|
# Purpose: Set msDs-AdditionalDnsHostName attribute.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-MsDsAllowToActOnBehalfOfOtherIdentity.ps1
|
# File: Set-MsDsAllowToActOnBehalfOfOtherIdentity.ps1
|
||||||
## Purpose: Set msDs-AllowToActOnBehalfOfOtherIdentity attribute.
|
# Purpose: Set msDs-AllowToActOnBehalfOfOtherIdentity attribute.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-MsDsBehaviorVersion.ps1
|
# File: Set-MsDsBehaviorVersion.ps1
|
||||||
## Purpose: Set msDS-Behavior-Version attribute.
|
# Purpose: Set msDS-Behavior-Version attribute.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-MsDsOtherSettings.ps1
|
# File: Set-MsDsOtherSettings.ps1
|
||||||
## Purpose: Set msDS-Other-Settings attribute: ADAMAllowADAMSecurityPrincipalsInConfigPartition=1.
|
# Purpose: Set msDS-Other-Settings attribute: ADAMAllowADAMSecurityPrincipalsInConfigPartition=1.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,18 +1,16 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-NetlogonRegKeyAndPolicy.ps1
|
# File: Set-NetlogonRegKeyAndPolicy.ps1
|
||||||
## Purpose: Set password change, netlogon, and create object rights for registry key and group policy for this computer.
|
# Purpose: Set password change, netlogon, and create object rights for registry key and group policy for this computer.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
## Notice: There must be a GptTmpl.txt template file exist to apply the policy
|
# Notice: There must be a GptTmpl.txt template file exist to apply the policy
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-NetworkConfiguration.ps1
|
# File: Set-NetworkConfiguration.ps1
|
||||||
## Purpose: Set the network adaptors configuration.
|
# Purpose: Set the network adaptors configuration.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
##############################################################################
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Function: Set-NetworkLocation
|
# Function: Set-NetworkLocation
|
||||||
# Usage : Set network location to public or private
|
# Usage : Set network location to public or private
|
||||||
# Params : -NetworkLocation <string>: Indicate the network location which
|
# Params : -NetworkLocation <string>: Indicate the network location which
|
||||||
# Must be either public or private.
|
# Must be either public or private.
|
||||||
#-------------------------------------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
(
|
(
|
||||||
[parameter(mandatory=$true)]
|
[parameter(mandatory=$true)]
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## Purpose: Set Parameter which used in Protocol in XML file.
|
# Purpose: Set Parameter which used in Protocol in XML file.
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param(
|
Param(
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Set-SecurityLevel.ps1
|
# File: Set-SecurityLevel.ps1
|
||||||
## Purpose: Set security level for this computer.
|
# Purpose: Set security level for this computer.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
$ObjWMIService = New-Object -comobject WbemScripting.SWbemLocator
|
$ObjWMIService = New-Object -comobject WbemScripting.SWbemLocator
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#-----------------------------------------------------
|
##############################################################################
|
||||||
# Function: Set-StartupScript
|
# Function: Set-StartupScript
|
||||||
# Usage : Set startup script in Group Policy
|
# Usage : Set startup script in Group Policy
|
||||||
#-----------------------------------------------------
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
(
|
(
|
||||||
[parameter(Mandatory=$true)]
|
[parameter(Mandatory=$true)]
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Share-Folder.ps1
|
# File: Share-Folder.ps1
|
||||||
## Purpose: Share a folder for everyone.
|
# Purpose: Share a folder for everyone.
|
||||||
## Version: 1.1 (26 Jun, 2008)
|
# Version: 1.1 (26 Jun, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param(
|
Param(
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## 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.
|
|
||||||
##
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# Microsoft Windows Powershell Scripting
|
||||||
|
# Purpose: Turn off readonly attribute for a file.
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
param(
|
param(
|
||||||
[string]$filePath
|
[string]$filePath
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Turnoff-UAC
|
# File: Turnoff-UAC
|
||||||
## Purpose: Turn off the user account control.
|
# Purpose: Turn off the user account control.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Set-ItemProperty -path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -name "EnableLUA" -value "0"
|
Set-ItemProperty -path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -name "EnableLUA" -value "0"
|
||||||
|
|
|
@ -1,17 +1,16 @@
|
||||||
#############################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
|
||||||
##
|
|
||||||
## 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(
|
Param(
|
||||||
[Parameter(Mandatory=$true)]
|
[Parameter(Mandatory=$true)]
|
||||||
[ValidateSet('Add', 'Remove')]
|
[ValidateSet('Add', 'Remove')]
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
##################################################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: Verify-ForestTrust.ps1
|
# File: Verify-ForestTrust.ps1
|
||||||
## Purpose: Verify the bidirectional forest trust.
|
# Purpose: Verify the bidirectional forest trust.
|
||||||
## Requirements: Windows Powershell 2.0
|
# Requirements: Windows Powershell 2.0
|
||||||
## Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
# Supported OS: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2,
|
||||||
## Windows Server 2016 and later
|
# Windows Server 2016 and later
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param
|
Param
|
||||||
|
|
|
@ -1,21 +1,19 @@
|
||||||
#############################################################
|
# Copyright (c) Microsoft. All rights reserved.
|
||||||
## Copyright (c) Microsoft Corporation. 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.
|
|
||||||
#############################################################
|
|
||||||
|
|
||||||
#############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## File: WaitFor-ComputerReady.ps1
|
# File: WaitFor-ComputerReady.ps1
|
||||||
## Purpose: This script pause the script until the specified file on remote machine is ready for accessing.
|
# 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$
|
# 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).
|
# 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;
|
# 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;
|
# 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;
|
# 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;
|
# d) If "test.error.signal" found, that means the testing terminated with exceptions;
|
||||||
## Version: 1.1 (26 June, 2008)
|
# Version: 1.1 (26 June, 2008)
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param (
|
Param (
|
||||||
|
|
|
@ -1,13 +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 Scripting
|
|
||||||
## File: Write-Error.ps1
|
##############################################################################
|
||||||
## Purpose: Writes error log to the screen with time stamp.
|
#
|
||||||
## Requirements: Windows Powershell 2.0
|
# Microsoft Windows Powershell Scripting
|
||||||
## Copyright (c) Microsoft. All rights reserved.
|
# File: Write-Error.ps1
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
# Purpose: Writes error log to the screen with time stamp.
|
||||||
##
|
# Requirements: Windows Powershell 2.0
|
||||||
########################################################################
|
#
|
||||||
|
##############################################################################
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Writes the log message with the time stamp.
|
Writes the log message with the time stamp.
|
||||||
|
|
|
@ -1,13 +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 Scripting
|
|
||||||
## File: Write-Info.ps1
|
##############################################################################
|
||||||
## Purpose: Writes log to the screen with time stamp.
|
#
|
||||||
## Requirements: Windows Powershell 2.0
|
# Microsoft Windows Powershell Scripting
|
||||||
## Copyright (c) Microsoft. All rights reserved.
|
# File: Write-Info.ps1
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
# Purpose: Writes log to the screen with time stamp.
|
||||||
##
|
# Requirements: Windows Powershell 2.0
|
||||||
########################################################################
|
#
|
||||||
|
##############################################################################
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Writes the log message with the time stamp.
|
Writes the log message with the time stamp.
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#############################################################################
|
# 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.
|
||||||
## Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
||||||
##
|
##############################################################################
|
||||||
## Microsoft Windows Powershell Scripting
|
# Microsoft Windows Powershell Scripting
|
||||||
## Purpose: Write logs according to LogLevel configured in ParamConfig.xml.
|
# Purpose: Write logs according to LogLevel configured in ParamConfig.xml.
|
||||||
##
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
Param(
|
Param(
|
||||||
|
|
|
@ -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.
|
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
# Check or enable .NET Framework 3.5
|
# Check or enable .NET Framework 3.5
|
||||||
|
|
|
@ -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.
|
# 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
|
# Script starts here
|
||||||
# ================================
|
# ================================
|
||||||
|
|
|
@ -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.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
|
@ -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.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
using Microsoft.Protocols.TestTools.StackSdk.Networking.Rpce;
|
using Microsoft.Protocols.TestTools.StackSdk.Networking.Rpce;
|
||||||
|
|
|
@ -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.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
|
@ -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.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
|
@ -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.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
|
@ -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.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
|
|
||||||
namespace Microsoft.Protocols.TestTools.StackSdk.Compression.Xpress
|
namespace Microsoft.Protocols.TestTools.StackSdk.Compression.Xpress
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Runtime Version:4.0.30319.42000
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
//------------------------------------------------------------------------------
|
// Copyright (c) Microsoft. All rights reserved.
|
||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
|
@ -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.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Dynamic;
|
using System.Dynamic;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Runtime Version:4.0.30319.42000
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Runtime Version:4.0.30319.42000
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
// Runtime Version:4.0.30319.33440
|
// Runtime Version:4.0.30319.33440
|
||||||
|
|
|
@ -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.
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче