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 Set-Wallpaper | |
{ | |
param( | |
[Parameter(Mandatory=$true)] | |
$Path, | |
[ValidateSet('Center', 'Stretch')] | |
$Style = 'Stretch' | |
) | |
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
Configuration Defaults | |
{ | |
param | |
( | |
[Parameter(Mandatory=$true)] | |
[ValidateNotNullOrEmpty()] | |
[string]$ComputerName | |
) | |
Node $ComputerName | |
{ |
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
<# | |
.SYNOPSIS | |
Get the amount of time for an update to Office365 | |
.DESCRIPTION | |
This script makes a change to an account and then checks to see how long | |
it takes before that change is replicated on Office365. | |
.PARAMETER Tenant | |
This is your tenant name | |
.PARAMETER Account | |
This is the test account name |
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
<# | |
.SYNOPSIS | |
Check stored values of w32tm against Vmware recommendations | |
.DESCRIPTION | |
This script checks the values of specific registry keys based | |
on recommendations from Vmware for virtualized PDC Emulators. | |
For more details please see pages 5 and 6 of this Vmware white | |
paper (http://www.vmware.com/files/pdf/Virtualizing_Windows_Active_Directory.pdf) | |
.PARAMETER Type |
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-MofFile | |
{ | |
[CmdletBinding()] | |
Param | |
( | |
[string]$Path | |
) | |
Begin | |
{ | |
$MofFile = Get-Content $Path |
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 New-ManagementPack | |
{ | |
[CmdletBinding()] | |
Param | |
( | |
[string]$ID = 'ptech.LegatoNetworker', | |
[string]$Version = '1.0.0.57', | |
[string]$Name = 'Legato Networker MP' | |
) | |
Begin |
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
Remove-Variable * | |
clear | |
$Mp = New-ManagementPack -ID 'ptech.LegatoNetworker' -Version '1.0.0.57' -Name 'Legato Networker MP' | |
Add-Reference -ManagementPack $Mp -Reference (New-Reference -ManagementPack $Mp -Alias MSDL -ID Microsoft.SystemCenter.DataWarehouse.Library -Version 6.1.7221.0 -PublicKeyToken 31bf3856ad364e35) | |
Add-Reference -ManagementPack $Mp -Reference (New-Reference -ManagementPack $Mp -Alias MSIL -ID Microsoft.SystemCenter.InstanceGroup.Library -Version 6.1.7221.0 -PublicKeyToken 31bf3856ad364e35) | |
Add-Reference -ManagementPack $Mp -Reference (New-Reference -ManagementPack $Mp -Alias SC -ID Microsoft.SystemCenter.Library -Version 6.1.7221.0 -PublicKeyToken 31bf3856ad364e35) | |
Add-Reference -ManagementPack $Mp -Reference (New-Reference -ManagementPack $Mp -Alias Windows -ID Microsoft.Windows.Library -Version 6.1.7221.0 -PublicKeyToken 31bf3856ad364e35) | |
Add-Reference -ManagementPack $Mp -Reference (New-Reference -ManagementPack $Mp -Alias System -ID System.Library -Version 6.1.7221.0 -PublicKeyToken |
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 New-FirewallRule | |
{ | |
<# | |
.SYNOPSIS | |
Creates a new HFnetCfg.FWRule ComObject | |
.DESCRIPTION | |
This function creates a FWRule ComObject that can be added to the firewall. | |
Each time you change a property of a rule, Windows Firewall commits the rule and verifies it for correctness. | |
As a result, when you edit a rule, you must perform the steps in a specific order. For example, if you add an ICMP |
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
Param | |
( | |
[string]$Name | |
) | |
if ($Name) | |
{ | |
$VM = Get-AzureVM |Where-Object -Property Name -Like $Name |Get-AzureVM -Status |Select-Object -Property Name, ResourceGroupName, Statuses; | |
$vm.Statuses |ForEach-Object { | |
New-Object -TypeName psobject -Property @{ | |
Name = $VM.Name; |
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
Param | |
( | |
[Parameter(Mandatory=$true)] | |
[string]$ResourceGroupName, | |
[Parameter(Mandatory=$false)] | |
[string]$StorageAccountName, | |
[Parameter(Mandatory=$true)] | |
[string]$ContainerName, | |
[Parameter(Mandatory=$true)] | |
[string]$Path |