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
| #Requires -Module ActiveDirectory | |
| <# | |
| .SYNOPSIS | |
| This script retrieves the ACL from an Active Directory-integrated DNS record | |
| .NOTES | |
| Created on: 8/5/2014 | |
| Created by: Adam Bertram | |
| Filename: Get-AdDnsRecordAcl.ps1 | |
| .EXAMPLE |
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 connect-azurePSSession | |
| { | |
| <# | |
| borrowed from : http://jrich523.wordpress.com/2010/07/21/update-creating-a-profile-for-a-remote-session/ | |
| #> | |
| [cmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory=$True)] |
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 Get-InstalledSoftware | |
| { | |
| <# | |
| .Summary | |
| Get installed Software (browse the uninstall registry values...) | |
| .Link | |
| http://jeffwouters.nl/index.php/2014/01/a-powershell-function-to-get-the-installed-software/ | |
| .Notes | |
| 2014-01-30 | |
| Adjusted to provide searching of both x64 and x32 store for x64 boxes... |
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
| #requires -version 2.0 | |
| Add-Type @" | |
| public class Shift { | |
| public static int Right(int x, int count) { return x >> count; } | |
| public static uint Right(uint x, int count) { return x >> count; } | |
| public static long Right(long x, int count) { return x >> count; } | |
| public static ulong Right(ulong x, int count) { return x >> count; } | |
| public static int Left(int x, int count) { return x << count; } | |
| public static uint Left(uint x, int count) { return x << count; } | |
| public static long Left(long x, int count) { return x << count; } |
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
| 'Twas the night before Christmas, when all through the racks | |
| Not a server was alerting, not even Compaqs. | |
| The backups were written to tapes with care | |
| In hopes that later the data would be there. | |
| The machines were nestled all snug in their sleds | |
| Whilst visions of vengeance danced in their heads; | |
| And oncall in his three-wolf and I in my rack. | |
| Had just settled down for some syn and some ack. |
NewerOlder