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
#ERASE ALL THIS AND PUT XAML BELOW between the @" "@ | |
$inputXML = @" | |
<Window | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" | |
Title="Configuration Manager Content Import/Export" Height="564.345" Width="502.66"> |
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
Add-Type -AssemblyName System.speech | |
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer | |
$speak.Rate = -10 | |
1..5 | % {start-sleep -millisecond 500 | |
$speak.Speak('SCROTUM') | |
} |
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
$files = New-Object System.Collections.ArrayList | |
$length = 100 | |
$folder = 'J:\SLC\Anderson v. Gold Coast\Experts' | |
Function Show-FolderPickerDialog{ | |
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null | |
$dialog = new-object System.Windows.Forms.FolderBrowserDialog | |
[void]$dialog.ShowDialog() | |
$dialog.SelectedPath | |
} |
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
<# | |
found this site which has all of the soundtrack to MH4 for free | |
BUT, you can't click downlaod and save each one, instead each link takes you to a new page with it's own DL link embedded within the site | |
Solution? | |
Wou write a short powershell script to find all the links we want, then load each page, find any downloadable MP3 links within that page and save them all | |
#> | |
$u = 'http://downloads.khinsider.com/game-soundtracks/album/monster-hunter-4' |
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
$sampleSyntax = ((Get-DscResource User -Syntax).Split("`n") -join "`n") | |
{" | |
UserName = [string] | |
[DependsOn = [string[]]] | |
[Description = [string]] | |
[Disabled = [bool]] | |
[Ensure = [string]{ Absent | Present }] | |
[FullName = [string]] | |
[Password = [PSCredential]] | |
[PasswordChangeNotAllowed = [bool]] |
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
$code = 'Your Three digit site code' | |
while ($true){ | |
$c= Get-CMCollection -Name 'Clients with < SCCM Version 1511' | select -expand MemberCount; | |
$d = Get-CMCollection -Name 'Clients with > SCCM Version 1511' | select -expand MemberCount; | |
$x = get-random -maximum 10 -minimum 1 | |
"trying another $x clients" | |
$r = get-cmdevice -CollectionName 'Clients with < SCCM Version 1511' | get-random -count $x | |
$r | %{ | |
Install-CMClient -DeviceName $_.Name -SiteCode $code -ForceReinstall $true -AlwaysInstallClient $True -IncludeDomainController $False |
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
Loading Dump File [C:\temp\Microsoft.BDD.ElevatedProxy.exe_161007_122408.dmp] | |
User Mini Dump File with Full Memory: Only application data is available | |
Comment: ' | |
*** procdump -ma -e -t -w microsoft.bdd.elevatedproxy.exe | |
*** Unhandled exception: E0434F4D.COM' | |
Symbol search path is: srv* | |
Executable search path is: | |
Windows 7 Version 7601 (Service Pack 1) MP (2 procs) Free x64 |
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
# ============================================================================================== | |
# | |
# NAME: OpsMgr Overrides Report | |
# | |
# ORGINAL AUTHOR: Daniele Muscetta and Pete Zerger | |
# ORGINAL DATE : 8/24/2010 | |
# | |
# EDITED BY: Arjan Vroege | |
# EDITED DATA : 1/24/2014 | |
# |
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
$logo = "$($env:temp)\FoxDeploy.png" | |
wget 'https://dl.dropboxusercontent.com/u/6268163/Foxdeploy_full.png' -OutFile $logo | |
#ERASE ALL THIS AND PUT XAML BELOW between the @" "@ | |
$inputXML = @" | |
<Window x:Class="WpfApplication1.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
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
#New-VM -Name "new 2" -MemoryStartupBytes 1GB | |
#-NewVHDPath d:\vhd\base.vhdx | |
Class VM | |
{ | |
[string]$Name | |
[string]$MemoryStartupBytes = 4 |