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
clear | |
# FTP Server Variables | |
$FTPHost = 'ftp://192.168.1.1/html/' | |
$FTPUser = 'user' | |
$FTPPass = 'password' | |
#Directory where to find pictures to upload | |
$UploadFolder = "C:\Temp\" | |
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 | |
Renames pictures. | |
.DESCRIPTION | |
The Rename-Pictures cmdlet to rename pictures to a format where the file creation time is first | |
in the name in this format: . The idea is that | |
.PARAMETER Path | |
Specifies the path to the folder where image files are located. Default is current location (Get-Location). |
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
cls | |
date 11-27-2013 | |
time 5:19:00 PM | |
w32tm /config /syncfromflags:manual /manualpeerlist:"time.windows.com" | |
net stop w32time | |
net start w32time | |
w32tm /resync | |
w32tm /resync | |
pause |
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
using Microsoft.Phone.Controls; | |
using Microsoft.Phone.Tasks; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Windows; | |
using System.Windows.Controls; | |
using Windows.Phone.Speech.Recognition; | |
using Windows.System; |
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
<# | |
Majority of code is from: | |
Chris Warwick, @cjwarwickps, August 2012 | |
chrisjwarwick.wordpress.com | |
#> | |
$sNTPServer = 'pool.ntp.org' | |
function Get-NTPDateTime ([string] $sNTPServer) | |
{ |
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
Import-Module WebAdministration | |
clear | |
$sites = @{Expression={$_.Name};Label="Site Name"}, ` @{Expression={$_.applicationPool};Label="Site App Pool";}, ` @{Expression={$_.PhysicalPath};Label="Site Physical Path";} | |
dir IIS:\Sites | Format-Table $sites -AutoSize | |
# List File Path for web.config files | |
ForEach($item in (dir IIS:\Sites)) |
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
clear | |
Function Get-TinyURL { | |
#PowerShell - Get-TinyURL API Call | |
param ( | |
[Parameter(Mandatory=$true,ValueFromPipeline=$true)] | |
[String] | |
$sHTTPLink | |
) | |
if ($sHTTPLink.StartsWith("http://") -eq $true -or $sHTTPLink.StartsWith("https://") -eq $true) |
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
clear | |
$rssFeedURL = 'http://www.kittell.net/feed/' | |
$rssFeed = 1(New-Object System.Net.WebClient).DownloadString($rssFeedURL) | |
$rssFeed.rss.channel.item | Select-Object title, link -First 5 | Format-Table -AutoSize |
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]$Address | |
) | |
clear | |
function Get-MAC() { | |
param($Address) | |
begin { | |
$APIURL = "http://<URL>/address.xml?&search=" | |
$resource = "$($APIURL)$($Address)" |
OlderNewer