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