This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function Install-WEBService | |
| { | |
| [CmdletBinding()] | |
| Param | |
| ( | |
| [Parameter(Position=0, Mandatory=$true, ParameterSetName='1-Settings')] | |
| [String]$User, | |
| [Parameter(Position=1,Mandatory=$true,ParameterSetName='1-Settings')] | |
| [String]$Password, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function New-ScriptBlockCallback | |
| { | |
| [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')] | |
| param( | |
| [parameter(Mandatory)] | |
| [ValidateNotNullOrEmpty()] | |
| [scriptblock]$Callback | |
| ) | |
| # Is this type already defined? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <job id="BIOSCheck"> | |
| <script language="VBScript" src="ZTIUtility.vbs"/> | |
| <script language="VBScript"> | |
| Option Explicit | |
| RunNewInstance | |
| Class TestReboot | |
| Function Main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $NatNicIP = '192.168.10.1' | |
| $NatNicSubnet = '192.168.10.0' | |
| $NatNicPrefixLenght = '24' | |
| $NatName = 'Nat-Network' | |
| New-VMSwitch -Name $NatName -SwitchType Internal | |
| # Get the MAC Address of the VM Adapter bound to the virtual switch | |
| $MacAddress = (Get-VMNetworkAdapter -ManagementOS -SwitchName Nat-Network).MacAddress |
NewerOlder