full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/craigtfromatl_Sitecore-Server-Switch/Sitecore_Switch_CM_CD_Lucene_Solr.ps1 | Sitecore_Switch_CM_CD_Lucene_Solr.ps1 | # After installing Sitecore, switch the server from a CM to a CD, a CD to a CM, Lucene to Solr or Solr to Lucene.
# @craigtfromatl
# http://www.craigtaylor.us
function DisableFiles($filesToDisable)
{
foreach($file in $filesToDisable)
{
# Check to see if file exists
if (Test-Path $file)
... |
PowerShellCorpus/Github/craigtfromatl_Sitecore-Server-Switch/includes/8.0.ps1 | 8.0.ps1 | # Functions that contain all the config files for Sitecore Experience Platform 8.0
# Works for the following versions
# Sitecore Experience Platform 8.0 rev. 151127 (8.0 Update-6)
# Sitecore Experience Platform 8.0 rev. 150812 (8.0 Update-5)
# Sitecore Experience Platform 8.0 rev. 150621 (8.0 Update-4)
# Sitecore ... |
PowerShellCorpus/Github/craigtfromatl_Sitecore-Server-Switch/includes/8.2rev161221.ps1 | 8.2rev161221.ps1 | # Functions that contain all the config files for Sitecore Experience Platform 8.2 rev. 161221 (8.2 Update-2)
# @craigtfromatl
# http://www.craigtaylor.us
function 8.2rev161221_Get-AllLuceneFiles()
{
$files = @("App_Config\Include\Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config",
... |
PowerShellCorpus/Github/PavelZakharenko_Extreme-.Net-Training/ToDoList/packages/EntityFramework.6.1.3/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
{
Remove-Module EntityFramework
}
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
# SIG # Begin signature block
# MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/PavelZakharenko_Extreme-.Net-Training/ToDoList/packages/EntityFramework.6.1.3/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Initialize-EFConfiguration $project
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
Write-Host
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Show-HiddenFiles.ps1 | Show-HiddenFiles.ps1 | function Show-HiddenFiles {
$basekey = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $basekey Hidden 1
#Restart Windows Explorer
#try{Stop-Process -processname explorer -Force -ErrorAction Stop | Out-Null} catch {}
Restart-Explorer
}#Show-HiddenFiles |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Hide-ComputerOnDesktop.ps1 | Hide-ComputerOnDesktop.ps1 | function Hide-ComputerOnDesktop {
$Key1 = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\'
$Key2 = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu'
Set-ItemProperty -Path $key1 -Name "{20D04FE0-3AEA-1069-A2D8-08002B30... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Invoke-PDQDeploy.ps1 | Invoke-PDQDeploy.ps1 | function Invoke-PDQDeploy
{
<#
.Synopsis
Short description
.DESCRIPTION
Long description
.EXAMPLE
Example of how to use this cmdlet
.EXAMPLE
Another example of how to use this cmdlet
#>
[CmdletBinding()]
[Alias()]
[OutputType([int])]
Param
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Disable-Hibernation.ps1 | Disable-Hibernation.ps1 | Function Disable-Hibernation
{
# https://technet.microsoft.com/en-us/library/hh824902.aspx
# http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/30/find-active-power-plan-on-remote-servers-by-using-powershell.aspx
try {
powercfg /HIBERNATE Off
Write-Output "Hibernation: Di... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Enable-Hibernation.ps1 | Enable-Hibernation.ps1 | Function Enable-Hibernation
{
# https://technet.microsoft.com/en-us/library/hh824902.aspx
# http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/30/find-active-power-plan-on-remote-servers-by-using-powershell.aspx
try {
powercfg /HIBERNATE On
Write-Output "Hibernation: ... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Disable-IPv6.ps1 | Disable-IPv6.ps1 | function Disable-IPv6 {
$key = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters"
Set-ItemProperty -Path $key -Name 'DisabledComponents' -Value 0xff -force
Write-Output "IPv6 is now Disabled. Please restart to complete config"
}#Disable-IPv6 |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Get-FreeSpace.ps1 | Get-FreeSpace.ps1 | function Get-FreeSpace
{
<#
.Synopsis
Gets Free Diskspace
.DESCRIPTION
Connects to localhost (by default) or a list of PCs. Tries to connect first with CIM, then WMI
.EXAMPLE
Get-FreeSpace
.EXAMPLE
Get-Freespace -computername Server1,Server2,Server3
.INPUTS... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Get-PCInfo.ps1 | Get-PCInfo.ps1 | Function Get-PCInfo
{
[CmdletBinding()]
[Alias('pcinfo','pci')]
[OutputType([String])]
Param(
[Alias('cn','pc')]
[string[]]$ComputerList = $env:COMPUTERNAME
)#param
begin
{
Write-Verbose "[Begin] Checking All computers for Status"
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Show-RunCmd.ps1 | Show-RunCmd.ps1 | Function Show-RunCmd {
# OS Detection required. Will not work on Servers/Clients 2012+ / Win8 +
# http://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx
if( (gwmi Win32_operatingsystem).Version -le 6.1)
{
Write-Output "Compatible OS Detected. Making the cha... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Get-BloombergVersion.ps1 | Get-BloombergVersion.ps1 | Function Get-BloombergVerion
{
[CmdletBinding()]
param (
# ComputerName
[Parameter(Position=0)]
[Alias("cn","pc")]
[string[]]
$ComputerName = $env:computername,
# Path to Wintrv.exe
[Parameter(Position=1)]
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Hide-RunCmd.ps1 | Hide-RunCmd.ps1 | Function Hide-RunCmd {
# OS Detection required. Will not work on Servers/Clients 2012+ / Win8 +
# http://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx
if( (gwmi Win32_operatingsystem).Version -le 6.1)
{
Write-Output "Compatible OS Detected. Making the cha... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Start-ElevatedPowerShell.ps1 | Start-ElevatedPowerShell.ps1 | Function Start-ElevatedPowerShell
{
[CmdletBinding()]
[Alias('software','soft')]
param ()
#Shamlessly Stolen from "Hey Scripting Guy"
#http://blogs.technet.com/b/heyscriptingguy/archive/2015/07/30/launch-elevated-powershell-shell.aspx
Start-Process PowerShell -Verb Runas
} #Function Star... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Enable-RemoteDesktop.ps1 | Enable-RemoteDesktop.ps1 | function Enable-RemoteDesktop {
<#
.SYNOPSIS
Allows Remote Desktop access to machine and enables Remote Desktop firewall rule
.LINK
http://boxstarter.codeplex.com
#>
Write-Output "Enabling Remote Desktop"
(Get-WmiObject -Class "Win32_TerminalServiceSetting" -Namespace root\cimv2\terminalservices).SetAl... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Set-PathOptions.ps1 | Set-PathOptions.ps1 | Function Set-PathOptions
{
[Cmdletbinding()]
Param(
## Backup Params
[parameter(Mandatory=$True,
ValueFromPipeline=$True,
Position=0,
ParameterSetName='Update')]
[switch]$Update,
[parameter(Mandatory=$True,
Position=1,
ParameterSetName='Update')]
[ValidateScrip... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Get-Software.ps1 | Get-Software.ps1 | function Get-Software
{
[CmdletBinding()]
[Alias('software','soft')]
param
(
[Parameter(ValueFromPipeline=$true,
ValueFromPipelineByPropertyName=$true,
Position=0
)]
[Alias("pc","cn")]
[ValidateScript({((Test-C... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Set-TimeZone.ps1 | Set-TimeZone.ps1 | Function Set-TimeZone {
[CmdletBinding()]
Param
(
# TimeZone Param help description
[Parameter(Mandatory=$true,Position=0)]
[ValidateScript( {
#"Borrowed" From http://powershell.com/cs/blogs/tips/archive/2013/08/13/changing-cur... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Disable-ServerMgrAtLogon.ps1 | Disable-ServerMgrAtLogon.ps1 | Function Disable-ServerMgrAtLogon{
$key1 = "HKLM:\SOFTWARE\Microsoft\ServerManager\"
$key2 = "HKLM:\Software\Microsoft\ServerManager\Oobe\"
if(Test-Path $key1)
{
Set-ItemProperty -Path $key1 -Name "DoNotOpenServerManagerAtLogon" -Value 1 -Force
}
if(Test-Path $key2)
{
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Set-DVDDriveLetter.ps1 | Set-DVDDriveLetter.ps1 | Function Set-DVDDriveLetter
{
param(
# Default is to set the DVD Drive to the letter "R"
[String]$DriveLetter = 'R'
)#Param
#(gwmi Win32_cdromdrive).drive | %{$a = mountvol $_ /l;mountvol $_ /d;$a = $a.Trim();mountvol ${Dvd}: $a}
(Get-WmiObject Win32_cdromdrive).drive | ... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Show-OSSytemFiles.ps1 | Show-OSSytemFiles.ps1 | Function Show-OSSytemFiles {
$basekey = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $basekey ShowSuperHidden 1
#Restart Windows Explorer
#try{Stop-Process -processname explorer -Force -ErrorAction Stop | Out-Null} catch {}
Restart-Explorer
}#Show-OSSytemFiles |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Show-ExplorerMenus.ps1 | Show-ExplorerMenus.ps1 | Function Show-ExplorerMenus {
$basekey = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $basekey AlwaysShowMenus 1
#Restart Windows Explorer
#try{Stop-Process -processname explorer -Force -ErrorAction Stop | Out-Null} catch {}
Restart-Explorer
}#Show-ExplorerMenus |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Enable-IEStartupWizard.ps1 | Enable-IEStartupWizard.ps1 | function Enable-IEStartupWizard {
$key = "HKLM:\Software\Policies\Microsoft\Internet Explorer\Main"
if(Test-Path $key)
{
Set-ItemProperty -Path $key -Name "DisableFirstRunCustomize" -Value 0 -Force
}
Write-Output "IE Start Startup is Enabled"
}#Enable-IEStartupWizard |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Disable-MassStorage.ps1 | Disable-MassStorage.ps1 | Function Disable-MassStorage
{
Write-Output "This will Disable both READ & WRITE of Mass Storage Devices"
$Key = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices\{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}"
Write-Output "Disabling Mass Storage"
Set-ItemProperty $Key -Name "Deny_R... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Enable-WindowsFirewall.ps1 | Enable-WindowsFirewall.ps1 | Function Enable-WindowsFirewall
{
#PS Version Check
if($PSVersionTable.PSVersion -ge "4.0")
{
Write-Output "Powershell Version 4 or higher decteched, running Native Powershell CMDs"
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True -confirm:$false
Write-O... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Set-PowerPlan.ps1 | Set-PowerPlan.ps1 | Function Set-PowerPlan
{
# https://technet.microsoft.com/en-us/library/hh824902.aspx
# http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/30/find-active-power-plan-on-remote-servers-by-using-powershell.aspx
[CmdletBinding()]
Param
(
# PowerPlan Param help description... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Enable-IPv6.ps1 | Enable-IPv6.ps1 | function Enable-IPv6 {
$key = “HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\”
Set-ItemProperty -Path $key -Name “DisabledComponents” -Value 1 -force
Write-Output "IPv6 is now Enabled. Please restart to complete config"
}#Enable-IPv6 |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Hide-FileExtensions.ps1 | Hide-FileExtensions.ps1 | Function Hide-FileExtensions {
$basekey = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $basekey HideFileExt 1
#Restart Windows Explorer
#try{Stop-Process -processname explorer -Force -ErrorAction Stop | Out-Null} catch {}
Restart-Explorer
} #Hide-FileExtensions |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Get-UAC.ps1 | Get-UAC.ps1 | function Get-UAC {
<#
.SYNOPSIS
Checks if User Access Control is turned on
.LINK
http://boxstarter.codeplex.com
#>
$uac=Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA
return $uac.EnableLUA -eq 1
}#function Get-UAC |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/New-SystemShortCuts.ps1 | New-SystemShortCuts.ps1 | Function New-SystemShortCuts
{
# Borrowed: https://social.technet.microsoft.com/forums/scriptcenter/en-US/e656ed4f-52de-474b-888a-a226a23bf5eb/assigning-icon-to-a-shortcut-in-powershell
# Borrowed: http://stackoverflow.com/questions/9701840/how-to-create-a-shortcut-using-powershell
# Borrowed: http://blogs.tech... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Restart-Explorer.ps1 | Restart-Explorer.ps1 | function Restart-Explorer {
try{sleep 2 ; Stop-Process -processname explorer -Force -ErrorAction Stop | Out-Null} catch {}
} |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Disable-WindowsFirewall.ps1 | Disable-WindowsFirewall.ps1 | Function Disable-WindowsFirewall
{
#PS Version Check
if($PSVersionTable.PSVersion -ge "4.0")
{
Write-Output "Powershell Version 4 or higher decteched, running Native Powershell CMDs"
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False -confirm:$false
Write... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Test-RemoteConnection.ps1 | Test-RemoteConnection.ps1 | function Test-RemoteConnection
{
<#
.Synopsis
Tests all methods of connection
.DESCRIPTION
This will determine what connection methods are available: Ping,WSMAN,CIM,WMI
.EXAMPLE
Test-RemoteConnection -ComputerName localhost
.EXAMPLE
Test-RemoteConnection -Comput... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Disable-UAC.ps1 | Disable-UAC.ps1 | function Disable-UAC {
<#
.SYNOPSIS
Turns on Windows User Access Control
.LINK
http://boxstarter.codeplex.com
#>
Write-Output "Disabling UAC"
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA -Value 0 -Force
}#function Disable-UAC |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Enable-ServerMgrAtLogon.ps1 | Enable-ServerMgrAtLogon.ps1 | Function Enable-ServerMgrAtLogon{
$key1 = "HKLM:\SOFTWARE\Microsoft\ServerManager\"
$key2 = "HKLM:\Software\Microsoft\ServerManager\Oobe\"
if(Test-Path $key1)
{
Set-ItemProperty -Path $key1 -Name "DoNotOpenServerManagerAtLogon" -Value 0 -Force
}
if(Test-Path $key2)
{
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Enable-MassStorage.ps1 | Enable-MassStorage.ps1 | Function Enable-MassStorage
{
Write-Output 'This will Enable both READ & WRITE of Mass Storage Devices'
$Key = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices\{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}'
Write-Output 'Enabling Mass Storage'
Set-ItemProperty $Key -Name 'Deny_Read... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Get-BitLockerRecoveryKey.ps1 | Get-BitLockerRecoveryKey.ps1 | <#
.Synopsis
Gets BitLocker Recovery Key
.DESCRIPTION
Grabs the BitLocker Recovery key from AD. Accepts OU or computer name
.EXAMPLE
Get-BLKey -computer mypc
.EXAMPLE
Get-BLKey -ADSearchBase "OU=Computers,OU=Site,DC=Domain,DC=corp"
#>
Function Get-BLKey
{
[CmdletBinding()]
[Alias("blk",... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Show-ComputerOnDesktop.ps1 | Show-ComputerOnDesktop.ps1 | function Show-ComputerOnDesktop {
$Key1 = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\'
$Key2 = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu'
Set-ItemProperty -Path $key1 -Name "{20D04FE0-3AEA-1069-A2D8-08002B30... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Test-IsAdmin.ps1 | Test-IsAdmin.ps1 | Function Test-IsAdmin
{
#Shamlessly Stolen from "Hey Scripting Guy"
<#
.Synopsis
Tests if the user is an administrator
.Description
Returns true if a user is an administrator, false if the user is not an administrator
.Example
Test-IsAdmin
#>
$identi... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Hide-OSSytemFiles.ps1 | Hide-OSSytemFiles.ps1 | Function Hide-OSSytemFiles {
$basekey = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $basekey ShowSuperHidden 0
#Restart Windows Explorer
#try{Stop-Process -processname explorer -Force -ErrorAction Stop | Out-Null} catch {}
Restart-Explorer
}#Hide-OSSytemFiles |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Connect-ToExchangeOnline.ps1 | Connect-ToExchangeOnline.ps1 | Function Connect-ToExchangeOnline
{
<#
.Synopsis
Connects to Exchange Online in the cloud
.DESCRIPTION
Long description
.EXAMPLE
Example of how to use this cmdlet
.EXAMPLE
Connect-toExchangeOnline
#>
#requires -Module MSOnline
[CmdletBinding()... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Hide-HiddenFiles.ps1 | Hide-HiddenFiles.ps1 | function Hide-HiddenFiles {
$basekey = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $basekey Hidden 0
#Restart Windows Explorer
#try{Stop-Process -processname explorer -Force -ErrorAction Stop | Out-Null} catch {}
Restart-Explorer
}#Hide-HiddenFiles |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Disable-RemoteDesktop.ps1 | Disable-RemoteDesktop.ps1 | function Disable-RemoteDesktop {
<#
.SYNOPSIS
Disables Remote Desktop Access to machine and Disables Remote Desktop firewall rule
#>
Write-Output "Disabling Remote Desktop"
(Get-WmiObject -Class "Win32_TerminalServiceSetting" -Namespace root\cimv2\terminalservices).SetAllowTsConnections(0) | out-null
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Get-RandomPassword.ps1 | Get-RandomPassword.ps1 | Function Get-RandomPassword
{
# Stolen from MSFT
#http://blogs.technet.com/b/heyscriptingguy/archive/2013/06/03/generating-a-new-password-with-windows-powershell.aspx
[cmdletbinding()]
[Alias('randompwd','rpwd')]
[OutputType([String])]
Param(
[ValidateRange(1,99)]
[int... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Enable-UAC.ps1 | Enable-UAC.ps1 | function Enable-UAC {
<#
.SYNOPSIS
Turns on Windows User Access Control
.LINK
http://boxstarter.codeplex.com
#>
Write-Output "Enabling UAC"
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA -Value 1 -Force
}#function Enable-UAC |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Disable-InternetExplorerESC.ps1 | Disable-InternetExplorerESC.ps1 | function Disable-InternetExplorerESC {
<#
.SYNOPSIS
Turns off IE Enhansed Security Configuration that is on by default on Server OS versions
.LINK
http://boxstarter.codeplex.com
#>
$AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}"
$UserKe... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Enable-InternetExplorerESC.ps1 | Enable-InternetExplorerESC.ps1 | function Enable-InternetExplorerESC {
<#
.SYNOPSIS
Turns off IE Enhansed Security Configuration that is on by default on Server OS versions
.LINK
http://boxstarter.codeplex.com
#>
$AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}"
$UserKey... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Disable-IEStartupWizard.ps1 | Disable-IEStartupWizard.ps1 | function Disable-IEStartupWizard {
$key = "HKLM:\Software\Policies\Microsoft\Internet Explorer\Main"
if(Test-Path $key)
{
Set-ItemProperty -Path $key -Name "DisableFirstRunCustomize" -Value 1 -Force
}
Write-Output "IE Start Startup is Disabled"
}#Disable-IEStartupWizard |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Hide-ExplorerMenus.ps1 | Hide-ExplorerMenus.ps1 | Function Hide-ExplorerMenus {
$basekey = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $basekey AlwaysShowMenus 0
#Restart Windows Explorer
#try{Stop-Process -processname explorer -Force -ErrorAction Stop | Out-Null} catch {}
Restart-Explorer
}#Hide-ExplorerMenus |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Set-PageFile.ps1 | Set-PageFile.ps1 | function Set-PageFile
{
<#
.Synopsis
Sets the Page File
.DESCRIPTION
This scritpt will perform the following:
- Disable OS Auto managed pagefile
- Remove all existing pagefiles
- Create a new pagefile on the $DriveLetter param with size of $PageFileSizeMB
the -AutoSize Para... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Get-Uptime.ps1 | Get-Uptime.ps1 | Function Get-Uptime
{
<#
.Synopsis
Returns the Uptime of the remote PC via CIM or WMI
.DESCRIPTION
Returns the Uptime of the remote PC via CIM or WMI
.EXAMPLE
Get-Uptime -ComputerName localhost
.EXAMPLE
Get-Upt... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Connect-Exchange.ps1 | Connect-Exchange.ps1 | Function Connect-Exchange
{
<#
.Synopsis
Stolen from Paul Cunningham
.DESCRIPTION
http://exchangeserverpro.com/powershell-function-to-connect-to-exchange-on-premises/
.EXAMPLE
Connect-Exchange -URL $exchangeServer
#>
[CmdletBinding()]
[Alias('conex','exc... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Get-BitLockerStatus.ps1 | Get-BitLockerStatus.ps1 |
<#
.AUTHOR Bnabel
.COMPANYNAME Taconic Capital Advisors
.COPYRIGHT 2016
.TAGS BitLocker Systems HelpDesk Tools
.LICENSEURI http://intranet/systems/BitLocker
.PROJECTURI http://intranet/systems/BitLocker
.ICONURI http://intranet/systems/BitLocker/Icon.ico
.EXTERNALMODULEDEPENDENCIES
.REQUIRE... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Get-PowerPlan.ps1 | Get-PowerPlan.ps1 | Function Get-PowerPlan
{
# https://technet.microsoft.com/en-us/library/hh824902.aspx
# http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/30/find-active-power-plan-on-remote-servers-by-using-powershell.aspx
$PowerPlanInfo =@{
'PowerPlan' = (powercfg /GetActiveScheme).split("... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/WinConfig/1.0.0.9/Scripts/Show-FileExtensions.ps1 | Show-FileExtensions.ps1 | Function Show-FileExtensions {
$basekey = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $basekey HideFileExt 0
#Restart Windows Explorer
#try{Stop-Process -processname explorer -Force -ErrorAction Stop | Out-Null} catch {}
Restart-Explorer
}#Show-FileExtensions |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/New-Commit.ps1 | New-Commit.ps1 | <#
.Synopsis
.DESCRIPTION
.EXAMPLE
.EXAMPLE
#>
Function New-Commit
{
[CmdletBinding()]
[Alias("nc","gitc")]
[OutputType([string])]
param (
[Alias("msg","cm")]
[string]$CommitMsg
)
try {
git add --all
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/Get-BloombergVersion.ps1 | Get-BloombergVersion.ps1 | Function Get-BloombergVerion
{
[CmdletBinding()]
param (
# ComputerName
[Parameter(Position=0)]
[Alias("cn","pc")]
[string[]]
$ComputerName = $env:computername,
# Path to Wintrv.exe
[Parameter(Position=1)]
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/DSC_ECSAPP.ps1 | DSC_ECSAPP.ps1 | #ECS Server Requirements
# IIS
# .NET 4.5.2
# MSMQ
# FileZilla FTP Client
#DB
# SQL 2014 Enterprise/Std
#APP
# SQL Client Components, Integration Svcs, Reporting Svcs
# Roles = App or DB
#DB = (SQL)
#App = SQL Client Components,Intergration,Reporting SVCs
configuration Build_EzeAppServer
{
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/Get-BloombergSoftware.ps1 | Get-BloombergSoftware.ps1 | <#
# Bloomberg Professtional Full
http://bdn-ak.bloomberg.com/software/trv/sotrt11082016.exe
# Bloomberg Professtional Upgrade (all components)
http://bdn-ak.bloomberg.com/software/trv/bupd11082016.exe
# Bloomberg Professtional Update (App Only)
http://bdn-ak.bloomberg.com/software/trv/upgr11082016.exe
#$B... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/New-ModuleVersion.ps1 | New-ModuleVersion.ps1 | $ModuleName = 'LazyAD'
$BaseBuildDir = 'D:\Git\Public-PowerShell'
$FinalBuildDir = (Join-Path $BaseBuildDir $ModuleName)
$ModuleDir = "$env:ProgramFiles\WindowsPowerShell\Modules"
$LatestBuild = (((Get-Module -ListAvailable | Where{$_.Name -eq $ModuleName} | Select -first 1) | Select -expand Version))
[version]$Ne... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/Get-StartupItems.ps1 | Get-StartupItems.ps1 | Function Get-StartupItems
{
[cmdletBinding()]
param(
$ComputerName = $env:COMPUTERNAME,
[validateSet("WMI","CIM")]
$type = "CIM",
[switch]$GridView
)#Param
Switch ($type)
{
'CIM' {
try {$StartUpItems = Get... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/Get-BloombergSoftware_old.ps1 | Get-BloombergSoftware_old.ps1 | <#
# Bloomberg Professtional Full
http://bdn-ak.bloomberg.com/software/trv/sotrt11082016.exe
# Bloomberg Professtional Upgrade (all components)
http://bdn-ak.bloomberg.com/software/trv/bupd11082016.exe
# Bloomberg Professtional Update (App Only)
http://bdn-ak.bloomberg.com/software/trv/upgr11082016.exe
#$B... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/LastPass_API.ps1 | LastPass_API.ps1 | #Last Pass
# "cid":8536702
# "provhash":
# -chsh=1696c336d2
$BaseURL = 'https://lastpass.com/enterpriseapi.php'
$cid = '8536702'
$provhash = $(Get-Content -Path D:\git\Public-PowerShell\Scripts\LastPass_API.key)
$cmd = 'getsfdata'
$apiuser = 'bnabel-API'
$data = @()
$payload = @{
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/WorkFlow_BitLockerCheck2.ps1 | WorkFlow_BitLockerCheck2.ps1 | #$PDQComputers = import-csv -Path D:\AllGoodPCs_NoVMs.csv | Select -expand Name
$PDQComputers = import-csv -Path D:\AllGoodPCs_NoVMs.csv | Select -expand Name
$PDQComputers = $PDQComputers[0..25]
workflow BitLockerConfigCheck {
param([string[]]$Computers)
foreach -parallel ($comp in $Computers) {
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/Get-BitLockerRecoveryKey.ps1 | Get-BitLockerRecoveryKey.ps1 | <#
.Synopsis
Gets BitLocker Recovery Key
.DESCRIPTION
Grabs the BitLocker Recovery key from AD. Accepts OU or computer name
.EXAMPLE
Get-BLKey -computer mypc
.EXAMPLE
Get-BLKey -ADSearchBase "OU=Computers,OU=Site,DC=Domain,DC=corp"
#>
Function Get-BLKey
{
[CmdletBinding()]
[Alias("blk",... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/New-VMFromConfigFile.Tests_v2.ps1 | New-VMFromConfigFile.Tests_v2.ps1 | ##### OverView #####
<#
Drop config file into watched dir
AB will pickup file, validate it's config
Config Bad, FAIL AB Job > Send email about why it failed
Config Good,
Connect to vSphere
Copy VM from Template
Apply Config from Script
Boo... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/Download_Windows_Trial_ISOs.ps1 | Download_Windows_Trial_ISOs.ps1 | #Server2012R2Core
$ISOUrl = 'http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO'
Invoke-WebRequest -UseBasicParsing -Uri $ISOUrl -OutFile D:\_ISO\Trial\Server2012R2Core\9600.17050.WI... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/Get-BootInfo.ps1 | Get-BootInfo.ps1 | Function Get-BootInfo
{
[cmdletbinding()]
Param
(
[ValidateScript({Test-Connection -Count 1 -Quiet -ComputerName $_})]
[string[]]$ComputerName = $env:COMPUTERNAME
)#Param
Foreach ($computer in $ComputerName)
{
try
{
$RebootHash = @{
... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/PDQDeploy_v2.ps1 | PDQDeploy_v2.ps1 | Function Get-PDQPackages
{
#Requires -Modules PSSQLite
Param($PDQServer)
}#Get-PDQPackages
Function Get-PDQDeploymentStatus
{
#Requires -Modules PSSQLite
Param($PDQServer,$DeploymentID)
}#Get-PDQDeploymentStatus
Function Invoke-PDQDeploy
{
#Requires -Modules PSSQLite
Param($PDQS... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/Citrix Automation - Master.ps1 | Citrix Automation - Master.ps1 | # Citrix Automation DR
# Configuration Object Instantiation
$CitrixProd = @{}
$CitrixProd.DDCs = @{}
$CitrixProd.DDCs = @{'DDC01' = 'P-DDC01' ; 'DDC02' = 'P-DDC02'}
$CitrixProd.DeliveryGroups = @{}
$CitrixProd.DeliveryGroups = @{'Gen2010' = 'VDI-2010' ; 'Gen2010H' = 'VDI-2010-H' ; 'XA76' = 'XA-76'}
$CitrixProd... |
PowerShellCorpus/Github/SolidOceanTrust_Public-PowerShell/Scripts/Get-BitLockerStatus.ps1 | Get-BitLockerStatus.ps1 |
Function Get-BitLockerStatus
{
[CmdletBinding()]
[Alias("gbs","bitlocker","blstatus")]
[OutputType([PSObject])]
param(
[String[]]$ComputerName = $env:COMPUTERNAME
)#Param
Begin {
#Check Computer Online?
$good = @()
$bad = @()
$multiDrive = @()
$sin... |
PowerShellCorpus/Github/snackslayer_PKInsight/PKInsight.ps1 | PKInsight.ps1 | #PKIInsight
#Developed by Ryan Paros
#2/7/17
#XAML declaration for GUI Features
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')
[xml]$XAML = @'
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winf... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/Public/Invoke-MDTPreparation.ps1 | Invoke-MDTPreparation.ps1 | #Requires -Modules xPSDesiredStateConfiguration
function Invoke-MDTPreparation {
configuration PrepareMDTServer
{
param(
[Parameter(Mandatory = $true)]
[string[]]$Servers,
[string]$WorkingDirectory
)
Import-DscResource -ModuleName PSDesiredStateConfiguration
Impor... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/Public/Start-DriverDownload.ps1 | Start-DriverDownload.ps1 | function Start-DriverDownload {
<#
.SYNOPSIS
Downloads drivers from pre-built CSV to a destination location of your choice.
.DESCRIPTION
The Start-DriverDownload script will create a folder tree in the destination location of the drivers you would like to download. It will unzip any ZIP files.
... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/Public/Set-DFSReplicationConfiguration.ps1 | Set-DFSReplicationConfiguration.ps1 | function Set-DFSReplicationConfiguration {
<#
.SYNOPSIS
Creates a hub and spoke DFS Replication group which is optimal for MDT with a larGe amount of distribution shares.
.DESCRIPTION
The primary will be used as the source. All spokes will be used as read-only distribution shares.
.PARAMETER Prim... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/Public/Invoke-InitialMDTConfiguration.ps1 | Invoke-InitialMDTConfiguration.ps1 | #Requires -Modules MicrosoftDeploymentToolkit,xSmbShare
function Invoke-InitialMDTConfiguration {
#region Extracting ISOs and importing into MDT
if (-not (Test-Path $DeploymentShare)) {
New-Item -Path "$DeploymentShare" -ItemType directory
New-SmbShare -Name "DeploymentShare$" -Path "$DeploymentSha... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/Public/Get-PendingReboot.ps1 | Get-PendingReboot.ps1 | function Get-PendingReboot
{
<#
.SYNOPSIS
Gets the pending reboot status on a local or remote computer.
.DESCRIPTION
This function will query the registry on a local or remote computer and determine if the
system is pending a reboot, from Microsoft updates, Configuration Manager Client SDK, Pendi... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/Public/Invoke-WSUSSetupAndConfig.ps1 | Invoke-WSUSSetupAndConfig.ps1 | #Requires -Modules xWindowsUpdate
function Invoke-WSUSSetupAndConfig {
configuration DeployWSUS
{
param(
[Parameter(Mandatory = $true)]
[string[]]$Servers
)
Import-DscResource -ModuleName xWindowsUpdate
node $Servers
{
windowsfeature UpdateServices-Serv... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/Public/Import-MDTDrivers.ps1 | Import-MDTDrivers.ps1 |
#Requires -Modules MicrosoftDeploymentToolkit
function Import-MDTDrivers
{
<#
.SYNOPSIS
Imports Windows Drivers into Microsoft Deployment Toolkit.
.DESCRIPTION
The Import-MDTDrivers.ps1 script will duplicate a folder tree structure in Microsoft Deployment Toolkit and import the Drivers.
.P... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/Public/Invoke-MDTInstallation.ps1 | Invoke-MDTInstallation.ps1 | #Requires -Modules xPSDesiredStateConfiguration
function Invoke-MDTInstallation {
configuration InstallMDT
{
param(
[Parameter(Mandatory = $true)]
[string[]]$Servers,
[string]$WorkingDirectory
)
Import-DscResource -ModuleName PSDesiredStateConfiguration
Import-Dsc... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/Public/Set-DFSInitialConfiguration.ps1 | Set-DFSInitialConfiguration.ps1 | #Requires -Modules xSmbShare
function Set-DFSInitialConfiguration {
<#
.SYNOPSIS
Creates file shares and installs necessary roles on remote PCS in preparation for DFS Replication for MDT
.DESCRIPTION
This script will do the following on each of the specified servers:
1. Create an empty fol... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/Public/Test-PendingReboot.ps1 | Test-PendingReboot.ps1 | function Test-PendingReboot {
Write-Progress -Activity "Testing if a reboot is needed"
Write-Verbose "Testing if reboot is needed"
if ((Get-PendingReboot).RebootPending) { Read-Host "Reboot needed. Please restart the computer and then rerun this script."; break }
}
|
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/Public/Invoke-FinalMDTConfiguration.ps1 | Invoke-FinalMDTConfiguration.ps1 | #Requires -Modules MicrosoftDeploymentToolkit
function Invoke-FinalMDTConfiguration {
if (-not ((Get-PSDrive | select -ExpandProperty Name) -contains "DS001")) {
New-PSDrive -Name "DS001" -PSProvider "MDTProvider" -Root "$DeploymentShare" -Description "MDT Deployment Share" -NetworkPath "\\$($env:COMPUTERN... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/lib/MDT8443BugFixes/TaskSequenceIDBugFix.ps1 | TaskSequenceIDBugFix.ps1 | <#
This bug fix is for TaskSequenceID not working in customsettings.ini and applies to MDT 2013 U1, U2 and MDT 8443
See https://social.technet.microsoft.com/Forums/exchange/en-US/5bba8ffb-227d-40f6-b074-5817fafe3ae8/mdt2013-update-2-invalid-deploymenttype?forum=mdt
#>
Rename-Item -Path "$DeploymentShare\Scr... |
PowerShellCorpus/Github/Tiberriver256_MDTBuilder/lib/TaskSequenceScripts/RemoveApps.ps1 | RemoveApps.ps1 | # ***************************************************************************
#
# File: RemoveApps.ps1
#
# Version: 1.2
#
# Author: Michael Niehaus
#
# Purpose: Removes some or all of the in-box apps on Windows 8, Windows 8.1,
# or Windows 10 systems. The script supports both offli... |
PowerShellCorpus/Github/Claustn_Clarifai/build.TempPoint.ps1 | build.TempPoint.ps1 | #Requires -Modules psake
# Builds the module by invoking psake on the build.psake.ps1 script.
Invoke-PSake $PSScriptRoot\build.psake.ps1 -taskList Test,Build
|
PowerShellCorpus/Github/Claustn_Clarifai/build.settings.ps1 | build.settings.ps1 | ###############################################################################
# Customize these properties and tasks for your module.
###############################################################################
Properties {
# ----------------------- Basic properties --------------------------------
... |
PowerShellCorpus/Github/Claustn_Clarifai/build.psake.ps1 | build.psake.ps1 | #Requires -Modules psake
##############################################################################
# DO NOT MODIFY THIS FILE! Modify build.settings.ps1 instead.
##############################################################################
##################################################################... |
PowerShellCorpus/Github/Claustn_Clarifai/build.ps1 | build.ps1 | #Requires -Modules psake
# Builds the module by invoking psake on the build.psake.ps1 script.
Invoke-PSake $PSScriptRoot\build.psake.ps1 -taskList Test,Build
|
PowerShellCorpus/Github/Claustn_Clarifai/PSClarifai/Public/Get-ClarifaiToken.ps1 | Get-ClarifaiToken.ps1 | function Get-ClarifaiToken
{
[CmdletBinding()]
[OutputType([string])]
param
(
[string]$Client_ID,
[string]$Client_Secret,
[switch]$Renew
)
$uri = 'https://api.clarifai.com/v2/token/'
$keypair = "$($Client_ID):$($Client_Secret)"
$encodedCreds = [System.Convert]::ToBase64String(... |
PowerShellCorpus/Github/Claustn_Clarifai/PSClarifai/Public/New-Model.ps1 | New-Model.ps1 | function New-Model
{
[CmdletBinding()]
param
(
[string]$ModelName,
[string]$Token = (Get-ClarifaiToken),
[string[]]$Concepts,
[bool]$Concepts_Mutually_Exclusive = $false,
[bool]$Closed_Environment = $false
)
if ($Concepts_Mutually_Exclusive)
{
$Concepts_Mutually_... |
PowerShellCorpus/Github/Claustn_Clarifai/PSClarifai/Public/Train-Model.ps1 | Train-Model.ps1 | function Train-Model
{
[CmdletBinding()]
param
(
[string]$ModelName,
[string]$Token = (Get-ClarifaiToken)
)
$uri = "https://api.clarifai.com/v2/models/$ModelName/versions"
$headers = @{
Authorization = 'Bearer {0}' -f $Token
Accept = 'application/json'
... |
PowerShellCorpus/Github/Claustn_Clarifai/PSClarifai/Public/Add-ConceptsToModel.ps1 | Add-ConceptsToModel.ps1 | #requires -Version 3.0
function Add-ConceptsToModel
{
[CmdletBinding()]
param
(
[string]$ModelName,
[string]$Token = (Get-ClarifaiToken),
[string[]]$Concepts
)
$uri = 'https://api.clarifai.com/v2/models'
$headers = @{
Authorization = 'Bearer {0}' -f $Token
Accept ... |
PowerShellCorpus/Github/Claustn_Clarifai/PSClarifai/Public/Predict-ImageFromFile.ps1 | Predict-ImageFromFile.ps1 | <#
.SYNOPSIS
Upload image to Clarifai
.DESCRIPTION
A detailed description of the Predict-ImageFromFile function.
.PARAMETER ImageFile
A description of the ImageFile parameter.
.PARAMETER Token
A description of the Token parameter.
.PARAMETER Model
Default va... |
PowerShellCorpus/Github/Claustn_Clarifai/PSClarifai/Public/Add-ImageFromFileWithConcepts.ps1 | Add-ImageFromFileWithConcepts.ps1 | #requires -Version 3.0
function Add-ImageFromFileWithConcepts
{
[CmdletBinding()]
param
(
[string]$ImagePath,
[string]$Token = (Get-ClarifaiToken),
[string[]]$Concepts,
[string[]]$Not_Concepts
)
$uri = 'https://api.clarifai.com/v2/inputs'
$headers = @{
Author... |
PowerShellCorpus/Github/Claustn_Clarifai/PSClarifai/Public/Get-Model.ps1 | Get-Model.ps1 | function Get-Model
{
[CmdletBinding()]
param
(
[string]$Token = (Get-ClarifaiToken)
)
$uri = 'https://api.clarifai.com/v2/models'
$headers = @{
Authorization = 'Bearer {0}' -f $Token
Accept = 'application/json'
'Content-Type' = 'application/json'
}
Tr... |
PowerShellCorpus/Github/Claustn_Clarifai/PSClarifai/Public/Predict-ImageFromURL.ps1 | Predict-ImageFromURL.ps1 | <#
.SYNOPSIS
Perform image prediction by URL to Clarifai
.DESCRIPTION
A detailed description of the Predict-ImageFromFile function.
.PARAMETER ImagePath
URL to image file you want to perform analysis on
.PARAMETER Token
A description of the Token parameter.
.PARA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.