This file contains 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
Enum ServerType { | |
HyperV | |
Sharepoint | |
Exchange | |
Lync | |
Web | |
ConfigMgr | |
} | |
Class Computer { |
This file contains 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
Enum ServerType { | |
HyperV | |
Sharepoint | |
Exchange | |
Lync | |
Web | |
ConfigMgr | |
} | |
Class Computer { |
This file contains 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
{ | |
"Owner":"", | |
"Type":"", | |
"Description":"Web Server", | |
"ServiceOwner":"Marketing" | |
} | |
Class ComputerConfiguration { | |
[string]$Owner |
This file contains 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 Replace-NetIpAddress{ | |
[cmdletbinding()] | |
Param( | |
[int]$interfaceIndex, | |
[IPaddress]$NewIp, | |
[int]$Prefix, | |
[IPaddress]$Gateway | |
) | |
$IpParams = @{} |
This file contains 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 Get-NetshFireWallrule { | |
Param( | |
[String]$RuleName | |
) | |
if ($RuleName){ | |
$Rules = netsh advfirewall firewall show rule name="$ruleName" | |
}else{ | |
$Rules = netsh advfirewall firewall show rule name="all" | |
} | |
This file contains 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 Read-WindowsUpdateLog { | |
Param ( | |
[Parameter(MAndatory=$false)] | |
[ValidateScript({ | |
test-Path $_ | |
})] | |
[string]$Path = (Join-Path -path $Env:windir -ChildPath WindowsUpdate.log), | |
[PArameter(Mandatory=$false)][datetime]$Date, |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="description" content=""> | |
<meta name="keywords" content=""> | |
<meta name="author" content=""> | |
<title></title> | |
<link href="style.css" rel="stylesheet" type="text/css"> | |
<!--[if lt IE 9]> |
This file contains 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 Get-WindowsFireWallProfile { | |
<# | |
.Synopsis | |
Get the windows firewall profile | |
.DESCRIPTION | |
Get the windows firewall profile based on netsh commands. Returns a workable powershell object. | |
This function has been speceically developed to by pass the case where | |
.EXAMPLE | |
Get-WindowsFireWallProfile | |
Returns all the existing profiles |
This file contains 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
class Car { | |
[String] $Make | |
[String] $Model | |
[Object]Clone(){ | |
return $this.MemberwiseClone() | |
} | |
[void]Display(){ | |
Write-host "The car model is: $($this.Model) and make: $($this.Make)" |
This file contains 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 ConvertDocumentTo-Markdown { | |
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory, ValueFromPipeline)] | |
[System.Object] $Document, | |
$Path = 'C:\Temp\export.md' | |
) | |
Function ConvertTableTo-Markdown { | |
<# |