$ brew install ansible # OSX
$ [sudo] pip install ansible # elsewhere
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
| ############################################################################# | |
| # Procedure: Watch-MoveRequests.PS1 | |
| # Author: Scott Vintinner | |
| # Last Edit: 4/30/2011 | |
| # Purpose: This script will monitor the mailbox move process. Moves should | |
| # be added to the queue using the following command: | |
| # | |
| # new-MoveRequest -Identity $identity -BadItemLimit 5 -Suspend:$true | |
| # | |
| # Alternately you could use my Start-SuspendedMoveRequests.PS1 script |
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
| [CmdletBinding()] Param ( | |
| [Parameter(Position = 0, Mandatory = $True, ValueFromPipelineByPropertyName = $True)] | |
| [ValidateNotNullOrEmpty()] | |
| [Alias('FullName')] | |
| [String] | |
| $filePath | |
| ) | |
| function ConvertFrom-md($mdText){ | |
| $response = Invoke-WebRequest -Uri 'https://api.github.com/markdown/raw' -Method Post -body "$mdText" -ContentType "text/plain" |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.define "vagrant-windows" | |
| config.vm.box = "windows2008r2" | |
| # You should be using the vagrant-windows Vagrant Plugin! | |
| # Admin user name and password | |
| config.winrm.username = "Administrator" |
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
| Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "SysprepAndSeal" -ErrorAction SilentlyContinue | |
| $ObjUser = [ADSI]"WinNT://localhost/vagrant"; | |
| $ObjUser.userflags = 2; | |
| $ObjUser.setinfo(); | |
| C:\Windows\System32\sysprep\sysprep.exe /generalize /oobe /quiet /shutdown |
All of this should go into a directory that is available via HTTP and NFS. In variables.ipxe you can provide the HTTP root and NFS root paths, which are used later. Also there are some variables to set the default iscsi root (without the last part after the colon) and the initiator iqn. These are used to auto-fill the iscsi menu options.
You should tell iPXE to boot bootstrap.ipxe.
The bootstrap process reads a bunch of files and sets a bunch of variables. Of importance, it will read the file macs/XXXXXXX.ipxe
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
| get-qadobject -SearchRoot <canonical name of domain> ´ | |
| -ldapFilter '(&(objectClass=group)(mailnickname=*))' ´ | |
| -service <DC FQDN> -SizeLimit 0 | Set-QADObject -ObjectAttributes ´ | |
| @{adminDisplayName='';´ | |
| altRecipient='';´ | |
| authOrig='';´ | |
| autoReplyMessage='';´ | |
| deletedItemFlags='';´ | |
| delivContLength='';´ | |
| deliverAndRedirect='';´ |
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
| param($global:RestartRequired=0, | |
| $global:MoreUpdates=0, | |
| $global:MaxCycles=10) | |
| function Check-ContinueRestartOrEnd() { | |
| $RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" | |
| $RegistryEntry = "InstallWindowsUpdates" | |
| switch ($global:RestartRequired) { | |
| 0 { | |
| $prop = (Get-ItemProperty $RegistryKey).$RegistryEntry |
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
| ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### | |
| ### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget. | |
| ### You can download all the binaries one-shot by just giving the BASE_URL. | |
| ### Script might be useful if you need Oracle JDK on Amazon EC2 env. | |
| ### Script is updated for every JDK release. | |
| ### Features:- | |
| # 1. Resumes a broken / interrupted [previous] download, if any. | |
| # 2. Renames the file to a proper name with including platform info. |
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
| #!ipxe | |
| set boot-url http://192.168.110.1/ | |
| :start | |
| menu iPXE Boot Menu | |
| item Windows-Install Install Windows | |
| item shell shell | |
| item --key x exit Exit iPXE and continue BIOS boot | |
| choose --timeout ${menu-timeout} --default ${menu-default} selected || goto cancel | |
| set menu-timeout 0 |
OlderNewer