full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/dance2die_MyAnimeListSharp/Project.MyAnimeList/Project.MyAnimeList.Demo/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1 | UploadNuGetPackage.ps1 | #==========================================================
# DO NOT EDIT THIS FILE.
# If you want to configure how your package is uploaded, modify the Config.ps1 file.
# To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run".
#=======================... |
PowerShellCorpus/Github/dance2die_MyAnimeListSharp/Project.MyAnimeList/Project.MyAnimeList.Demo/_CreateNewNuGetPackage/DoNotModify/New-NuGetPackage.ps1 | New-NuGetPackage.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file, and optionally uploads it to a NuGet Gallery.
.DESCRIPTION
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file.
Additional parameters may be provided to also upload the ... |
PowerShellCorpus/Github/dance2die_MyAnimeListSharp/Project.MyAnimeList/Project.MyAnimeList.Demo/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1 | CreateNuGetPackage.ps1 | #==========================================================
# DO NOT EDIT THIS FILE.
# If you want to configure how your package is created, modify the Config.ps1 file.
#
# This script is ran automatically after every successful build.
# This script creates a NuGet package for the current project, and places the .... |
PowerShellCorpus/Github/dance2die_MyAnimeListSharp/Project.MyAnimeList/Project.MyAnimeList/_CreateNewNuGetPackage/Config.ps1 | Config.ps1 | #==========================================================
# Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery.
#
# If you have modified this script:
# - if you uninstall the "Create New NuGet Package From Project After Each Bu... |
PowerShellCorpus/Github/dance2die_MyAnimeListSharp/Project.MyAnimeList/Project.MyAnimeList/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1 | UploadNuGetPackage.ps1 | #==========================================================
# DO NOT EDIT THIS FILE.
# If you want to configure how your package is uploaded, modify the Config.ps1 file.
# To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run".
#=======================... |
PowerShellCorpus/Github/dance2die_MyAnimeListSharp/Project.MyAnimeList/Project.MyAnimeList/_CreateNewNuGetPackage/DoNotModify/New-NuGetPackage.ps1 | New-NuGetPackage.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file, and optionally uploads it to a NuGet Gallery.
.DESCRIPTION
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file.
Additional parameters may be provided to also upload the ... |
PowerShellCorpus/Github/dance2die_MyAnimeListSharp/Project.MyAnimeList/Project.MyAnimeList/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1 | CreateNuGetPackage.ps1 | #==========================================================
# DO NOT EDIT THIS FILE.
# If you want to configure how your package is created, modify the Config.ps1 file.
#
# This script is ran automatically after every successful build.
# This script creates a NuGet package for the current project, and places the .... |
PowerShellCorpus/Github/dance2die_MyAnimeListSharp/Project.MyAnimeList/Project.MyAnimeList.Test/_CreateNewNuGetPackage/Config.ps1 | Config.ps1 | #==========================================================
# Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery.
#
# If you have modified this script:
# - if you uninstall the "Create New NuGet Package From Project After Each Bu... |
PowerShellCorpus/Github/dance2die_MyAnimeListSharp/Project.MyAnimeList/Project.MyAnimeList.Test/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1 | UploadNuGetPackage.ps1 | #==========================================================
# DO NOT EDIT THIS FILE.
# If you want to configure how your package is uploaded, modify the Config.ps1 file.
# To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run".
#=======================... |
PowerShellCorpus/Github/dance2die_MyAnimeListSharp/Project.MyAnimeList/Project.MyAnimeList.Test/_CreateNewNuGetPackage/DoNotModify/New-NuGetPackage.ps1 | New-NuGetPackage.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file, and optionally uploads it to a NuGet Gallery.
.DESCRIPTION
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file.
Additional parameters may be provided to also upload the ... |
PowerShellCorpus/Github/dance2die_MyAnimeListSharp/Project.MyAnimeList/Project.MyAnimeList.Test/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1 | CreateNuGetPackage.ps1 | #==========================================================
# DO NOT EDIT THIS FILE.
# If you want to configure how your package is created, modify the Config.ps1 file.
#
# This script is ran automatically after every successful build.
# This script creates a NuGet package for the current project, and places the .... |
PowerShellCorpus/Github/FooBartn_WinRM.TrustedHosts/Remove-TrustedHost.ps1 | Remove-TrustedHost.ps1 | function Remove-TrustedHost {
[CmdletBinding()]
param (
# Trusted Host IP
[Parameter(Mandatory)]
[string]
$TrustedHost,
# ComputerName
[Parameter()]
[string]
$ComputerName = 'localhost'
)
$TrustedHostParams = @{
Res... |
PowerShellCorpus/Github/FooBartn_WinRM.TrustedHosts/Add-TrustedHost.ps1 | Add-TrustedHost.ps1 | function Add-TrustedHost {
[CmdletBinding()]
param (
# Trusted Host IP
[Parameter(Mandatory)]
[string]
$TrustedHost,
# ComputerName
[Parameter()]
[string]
$ComputerName = 'localhost'
)
$TrustedHostParams = @{
Resour... |
PowerShellCorpus/Github/MrAmbiG_vmware/MOBdisabler1.2.ps1 | MOBdisabler1.2.ps1 | <#
.SYNOPSIS
Run any ssh commands via powershell, powercli
.DESCRIPTION
This will run any scripts on the target vmware host with ssh enabled in it.
find the below line
C:\plink.exe -ssh -v -noagent $VMHost -l $user -pw $pass 'command1'
and replace command1 with your actuall command to run o... |
PowerShellCorpus/Github/MrAmbiG_vmware/SSHtoggler1.1.ps1 | SSHtoggler1.1.ps1 | ####SSH Toggler1.1####
#MrAmbig
#Enable or disable SSH on all hosts of a vcenter
#changelog from version 1
#It repeats the prompt unless you exit & without the need of entering the variables again
#http://ambitech.blogspot.in/2015/05/ssh-toggler-for-vmware-hosts.html
###################
#variables
$VCuser = ... |
PowerShellCorpus/Github/MrAmbiG_vmware/VMSecurityHardening_Aug2016.ps1 | VMSecurityHardening_Aug2016.ps1 | <#
.SYNOPSIS
Configure VM security hardening for your VMs
.DESCRIPTION
Thanks to andrew for the idea of creating a VM spec and pushing it to all the VMs. This
will create a VM spec using some security hardening best practices but it will apply only to the windows guest VMs.
.NOTES
File Name ... |
PowerShellCorpus/Github/MrAmbiG_vmware/GetPlink.ps1 | GetPlink.ps1 | #Start of function
function GetPlink
{
<#
.SYNOPSIS
Gets the plink
.DESCRIPTION
This will make sure plink is either downloaded from the internet if it is not present and if it cannot download
then it will pause the script till you copy it manually.
.NOTES
File Name : GetPlink.ps1
Au... |
PowerShellCorpus/Github/MrAmbiG_vmware/vmDiskOSInfo.ps1 | vmDiskOSInfo.ps1 | <#
.SYNOPSIS
Get linux vms and their disk info
.DESCRIPTION
Gets the VMs and filters them by linux OS, get their disk count and their sizes and ip address
.NOTES
File Name : vmDiskOSInfo.ps1
Author : gajendra d ambi
Date : April 2017
Prerequisite : PowerShell ... |
PowerShellCorpus/Github/MrAmbiG_vmware/VMSecurityHardening_July2016.ps1 | VMSecurityHardening_July2016.ps1 | <#
.SYNOPSIS
Configure VM security hardening for your VMs
.DESCRIPTION
Thanks to andrew for the idea of creating a VM spec and pushing it to all the VMs. This
will create a VM spec using some security hardening best practices but it will apply only to the windows guest VMs.
.NOTES
File Name ... |
PowerShellCorpus/Github/MrAmbiG_vmware/VMSecurityHardening_Sep2016.ps1 | VMSecurityHardening_Sep2016.ps1 | <#
.SYNOPSIS
Configure VM security hardening for your VMs
.DESCRIPTION
Thanks to andrew for the idea of creating a VM spec and pushing it to all the VMs. This
will create a VM spec using some security hardening best practices but it will apply only to the windows guest VMs.
.NOTES
File Name ... |
PowerShellCorpus/Github/MrAmbiG_vmware/XIOSettingCheck.ps1 | XIOSettingCheck.ps1 | <#
.SYNOPSIS
Check the Queuedepth of the fnic and NoofoutstandingIOswithcompetingworlds
.DESCRIPTION
This should help you to generate a VMware infrastructure audit report which includes most of the things that are required by a datacenter.
.NOTES
File Name : XioSettingCheck.ps1
Author ... |
PowerShellCorpus/Github/MrAmbiG_vmware/VMsettings.ps1 | VMsettings.ps1 | <#
.SYNOPSIS
It will change the VM's hardware resources and set the annotations.
.DESCRIPTION
This requires you to provide the target vm names to apply the settings.
check the variables section to update the values.
.NOTES
File Name : VMsettings.ps1
Author : gajendra d ambi
... |
PowerShellCorpus/Github/MrAmbiG_vmware/MobChecker.ps1 | MobChecker.ps1 | <#
.SYNOPSIS
check whether mob is disable don the esxi host or not.
.DESCRIPTION
USe the advanced setting option of the powercli to get the mob status.
.NOTES
File Name : MobChecker.ps1
Author : gajendra d ambi
Prerequisite : PowerShell V2 over Vista and upper.
Copyright ... |
PowerShellCorpus/Github/MrAmbiG_vmware/VMSecurityHardening.ps1 | VMSecurityHardening.ps1 | <#
.SYNOPSIS
Configure VM security hardening for your VMs
.DESCRIPTION
Thanks to andrew for the idea of creating a VM spec and pushing it to all the VMs. This
will create a VM spec using some security hardening best practices.
.NOTES
File Name : VMSecurityHardening.ps1
Author : ... |
PowerShellCorpus/Github/MrAmbiG_vmware/PClitoPShell.ps1 | PClitoPShell.ps1 | <#
.SYNOPSIS
Make powershell run powercli commands
.DESCRIPTION
This will enable you to have powercli commands and modules in powershell every time you launch powershell.
.NOTES
File Name : PClitoPShell.ps1
Author : gajendra d ambi
Date : January 2016
Prerequisite... |
PowerShellCorpus/Github/MrAmbiG_vmware/RemoveDatastore.ps1 | RemoveDatastore.ps1 | <#
.SYNOPSIS
Remove datastores of hosts
.DESCRIPTION
Removes datastores of all the hosts of a cluster
.NOTES
File Name : RemoveDatastore.ps1
Author : gajendra d ambi
Date : May 2016
Prerequisite : PowerShell v4+, powercli 6+ over win7 and upper.
Copyright ... |
PowerShellCorpus/Github/MrAmbiG_vmware/XioSetting.ps1 | XioSetting.ps1 |
<#
.SYNOPSIS
set and test the XioSettings to 256
.DESCRIPTION
Disk.SchedNumReqOutstanding is the maximum number of I/Os one VM can issue all the way down to the LUN
when there is more than one VM pushing I/O to the same LUN.
Please neglect any errors while you are run this if the script is not e... |
PowerShellCorpus/Github/MrAmbiG_vmware/VMstartup.ps1 | VMstartup.ps1 | <#
.SYNOPSIS
This will set the VM startup order
.DESCRIPTION
Sets the startup delay for one VM at a time
.NOTES
File Name : VMstartup.ps1
Author : gajendra d ambi
Date : Auguest 2015
Prerequisite : PowerShell V3, powercli 5+ over Vista and upper.
Copyright ... |
PowerShellCorpus/Github/MrAmbiG_vmware/CopyCat.ps1 | CopyCat.ps1 | <#
.SYNOPSIS
Copy files to esxi host.
.DESCRIPTION
This will connect to the esxi host. List all the datastores connected to it. let the user choose the datastore and sets that as the default datastore.
If the specified source directory ofthe files doesnt exist then it will ask you for that path and use... |
PowerShellCorpus/Github/MrAmbiG_vmware/VIsettings(beta).ps1 | VIsettings(beta).ps1 | <#
.SYNOPSIS
configure settings for your datacenter as a whole or one setting at a time.
.DESCRIPTION
A beta version of VI settings
.NOTES
File Name : VIsettings(beta).ps1
Author : gajendra d ambi
Prerequisite : Powercli 5.x, PowerShell V2 over Vista and upper.
Copyright ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vaai.ps1 | vaai.ps1 | #vaai 1.0
#compiled by: MrAmbig
#Script Type:Powercli 5.5+(using advanced setting cmdlts instead of vmhostadvancedconfiguration except the firewall setting)
#Description-set syslog servers and set syslog settings.
#ambitech.blogspot.in/2015/04/set-multiple-syslog-servers-on-multiple.html?
#########################... |
PowerShellCorpus/Github/MrAmbiG_vmware/Esxi2Excel.ps1 | Esxi2Excel.ps1 | <#
.SYNOPSIS
Export data of esxi to excel
.DESCRIPTION
Fetch fqdn, cpu details, serial number and local disk information of the esxi host.
.NOTES
File Name : Esxi2Xcel.ps1
Author : gajendra d ambi
Date : Oct 2016
Prerequisite : PowerShell v4+, powercli 6+ ov... |
PowerShellCorpus/Github/MrAmbiG_vmware/Disk.SchedNumReqOutstanding.ps1 | Disk.SchedNumReqOutstanding.ps1 |
<#
.SYNOPSIS
set and test the Disk.SchedNumReqOutstanding of xtremIO to 256
.DESCRIPTION
Disk.SchedNumReqOutstanding is the maximum number of I/Os one VM can issue all the way down to the LUN
when there is more than one VM pushing I/O to the same LUN.
Please neglect any errors while you are run ... |
PowerShellCorpus/Github/MrAmbiG_vmware/firewallExceptions.ps1 | firewallExceptions.ps1 | <#
.SYNOPSIS
some essential firewall settings
.DESCRIPTION
this will enable the following firewall exceptions
netDump
syslog
SSH Client
NTP Client
vCenter Update Manager
.NOTES
File Name : firewallSettings.ps1
Author : gajendra d ambi
updated : Ju... |
PowerShellCorpus/Github/MrAmbiG_vmware/ESXihostfile.ps1 | ESXihostfile.ps1 | <#
.SYNOPSIS
Make hostfile entries to esxi hosts
.DESCRIPTION
This will use plink to make entries to the host file of the esxi hosts.
please have a copy of plink.exe in the folder where this script is located.
.NOTES
File Name : ESXihostfile.ps1
Author : gajendra d ambi
... |
PowerShellCorpus/Github/MrAmbiG_vmware/WINtoESXi.ps1 | WINtoESXi.ps1 | <#
.SYNOPSIS
Run any ssh commands via powershell, powercli
.DESCRIPTION
This will run any scripts on the target vmware host with ssh enabled in it.
find the below line
C:\plink.exe -ssh -v -noagent $VMHost -l $user -pw $pass 'command1'
and replace command1 with your actuall command to run o... |
PowerShellCorpus/Github/MrAmbiG_vmware/LocalDSrename.ps1 | LocalDSrename.ps1 | <#
.SYNOPSIS
LocalDSrename
.DESCRIPTION
Rename the local datastore as hosts's shortname-Local that is host-Local
.NOTES
File Name : LocalDSrename.ps1
Author : gajendra d ambi
Date :
Prerequisite : PowerShell V3, powercli 5+ over Vista and upper.
Copyright ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2016aug.ps1 | vTool_2016aug.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
updated : August 2016
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2016dec.ps1 | vTool_2016dec.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
updated : August 2016
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2016jun.ps1 | vTool_2016jun.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
Date : January 2016
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2016apr.ps1 | vTool_2016apr.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
Date : January 2016
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2017march10.ps1 | vTool_2017march10.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
updated : Mar 2017
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2016jul.ps1 | vTool_2016jul.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
Date : January 2016
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2017april27.ps1 | vTool_2017april27.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
updated : Mar 2017
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2016nov.ps1 | vTool_2016nov.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
updated : August 2016
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2017march2.ps1 | vTool_2017march2.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
updated : Mar 2017
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2017march27.ps1 | vTool_2017march27.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
updated : Mar 2017
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2017march4.ps1 | vTool_2017march4.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
updated : Mar 2017
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vTool_2017June20.ps1 | vTool_2017June20.ps1 | <#
.SYNOPSIS
A handy multi purpose tool to get those things done quickly
.DESCRIPTION
This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks
.NOTES
File Name : vTool.ps1
Author : gajendra d ambi
updated : June 2017
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/PcliPshell.ps1 | PcliPshell.ps1 |
#start of function
function PcliPshell
{
<#
.SYNOPSIS
Integrate powercli into powershell
.DESCRIPTION
This will add pssnapins/modules of vmware powercli into powershell. You will get
powercli core, vds and vum scriptlets/snapsins/modules in powershell which will enable you
to create, run pow... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/MainMenu.ps1 | MainMenu.ps1 | #Start of MainMenu
function MainMenu
{
do {
do {
$version = '2016Aug'
Write-Host -BackgroundColor Black -ForegroundColor Cyan "`nvTool $version"
Write-Host -BackgroundColor White -ForegroundColor Black "`nMain Menu"
Write-Host "
A. vCenter
B. Standalone Hosts" #options to choo... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vCenterMenu.ps1 | vCenterMenu.ps1 |
#Start of vCenterMenu
function vCenterMenu
{
do {
do {
Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow
Write-Host "`nvCenterMenu" -BackgroundColor White -ForegroundColor Black
Write-Host "
A. Cluster
B. Host
C. vSwitch
D. dvSwitch" #options... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/SetFirewall.ps1 | SetFirewall.ps1 | #start of function
function SetFirewall
{
<#
.SYNOPSIS
firewall settings for esxi hosts
.DESCRIPTION
Configure firewall per host in a cluster. These is a sample firewall setting here. You can populate the rest as per your business
standards. Run
get-vmhost <name of any esxi host> | Get-Vmhost... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu.ps1 | HostServicesMenu.ps1 |
#Start of HostServicesMenu
function HostServicesMenu
{
do {
do {
Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow
Write-Host "`nHostServicesMenu" -BackgroundColor White -ForegroundColor Black
Write-Host "
A. DCUI [Direct Console UI]
B. TSM ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/SetDNS.ps1 | SetDNS.ps1 | #start of function
function SetDNS
{
<#
.SYNOPSIS
Update DNS
.DESCRIPTION
This will update the DNS, domain and searchdomain for the esxi hosts.
.NOTES
File Name : SetDNS.ps1
Author : gajendra d ambi
Date : March 2016
Prerequisite : PowerShell v4+, powercli 6... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/GetPlink.ps1 | GetPlink.ps1 | #Start of function
function GetPlink
{
<#
.SYNOPSIS
Gets the plink
.DESCRIPTION
This will make sure plink is either downloaded from the internet if it is not present and if it cannot download
then it will pause the script till you copy it manually.
.NOTES
File Name : GetPlink.ps1
Au... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/SetSyslog.ps1 | SetSyslog.ps1 | #start of function
function SetSyslog
{
<#
.SYNOPSIS
Configure Syslog
.DESCRIPTION
This will configure Syslog using powercli. This only set the syslog servers and enable syslog on the esxi hosts.
You may however include additional advanced syslog configuarations like Syslog.global.defaultSize and o... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/SetEsxiPerf.ps1 | SetEsxiPerf.ps1 | #start of function
function SetEsxiPerf
{
<#
.SYNOPSIS
Configure powersaving policy or performance policy on esxi.
.DESCRIPTION
This will configure 1 of the 3 levels of energy saving or performance setting on your esxi hosts.
3 valid options are HighPerformance, Balanced, LowPower.
.NOTES
Fil... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/SetNTP.ps1 | SetNTP.ps1 | #start of function
function SetNTP
{
<#
.SYNOPSIS
Update NTP
.DESCRIPTION
This will update the NTP servers to the esxi hosts. It will add one NTP server at a time.
It will not replace or overwrite any existing NTP servers. This will set the ntpd service to on.
.NOTES
File Name : SetNTP.p... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/WinSSH.ps1 | WinSSH.ps1 | #start of function
Function WinSSH
{
<#
.SYNOPSIS
Run SSH commands from windows
.DESCRIPTION
This will run commands to be run on VMware/vCenter hosts.
This needs plink to be in the same folder as this script.
This will open create a text file, you paste the commands which are to be run on the S... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/EsxiAdvanced.ps1 | EsxiAdvanced.ps1 | #start of function
function EsxiAdvanced
{
<#
.SYNOPSIS
Set value to a chosen advancedsettig
.DESCRIPTION
This will ask set many of the esxi advancedsettings which are exposed in esxi>configuration>advancedsettings.
It will require 2 inputs from the user.
name of the advanced setting and value... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/vmkMtu.ps1 | vmkMtu.ps1 | #start of function
Function vmkMtu
{
<#
.SYNOPSIS
update Mtu on vmkernel.
.DESCRIPTION
This will update Mtu on a chosen vmkernel of hosts of a chosen cluster.
.NOTES
File Name : vmkMtu.ps1
Author : gajendra d ambi
Date : March 2017
Prerequisite : PowerSh... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/CoreDump.ps1 | CoreDump.ps1 | #Start of function
function CoreDump
{
<#
.SYNOPSIS
configure Coredump on esxi hosts
.DESCRIPTION
This will check the version of the esxi and based on the version of it, it will set the coredump settings on the host
.NOTES
File Name : CoreDump.ps1
Author : gajendra d ambi
Da... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/SetSnmp.ps1 | SetSnmp.ps1 | #start of function
function SetSnmp
{
<#
.SYNOPSIS
Configure SNMP
.DESCRIPTION
This will configure SNMP using powercli on esxi hosts. It uses esxcli commands into powercli.
.NOTES
File Name : SetSnmp.ps1
Author : gajendra d ambi
Date : March 2016
Prerequisite ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostPerf.ps1 | HostPerf.ps1 | #start of function
Function HostPerf
{
<#
.SYNOPSIS
Set esxi host performance level
.DESCRIPTION
This will change the host's performance level to the following.
.NOTES
File Name : VssPmOn.ps1
Author : gajendra d ambi
Date : August 2016
Prerequisite : PowerSh... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostMenu.ps1 | HostMenu.ps1 | #Start of HostMenu
function HostMenu
{
do {
do {
Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow
Write-Host "`nHostMenu" -BackgroundColor White -ForegroundColor Black
Write-Host "
A. SNMP
B. Syslog settings
C. DNS settings
D. NTP settings
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/SetIpv6.ps1 | SetIpv6.ps1 | #start of function
function SetIpv6
{
<#
.SYNOPSIS
Update Ipv6
.DESCRIPTION
This will disable/enable Ipv6 on esxi hosts of a chosen cluster.
.NOTES
File Name : SetIpv6.ps1
Author : gajendra d ambi
Date : March 2016
Prerequisite : PowerShell v4+, powercli 6+ ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/PowerMgmt.ps1 | PowerMgmt.ps1 | #start of function
function PowerMgmt
{
<#
.SYNOPSIS
Perform power actions on esxi
.DESCRIPTION
When we poweroff, shutdown, reboot a host we need to provide a reason to do so. This is especially
boring and time consuming if you have a lot of hosts on which you have to do this. This is to ease
t... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/SetScratch.ps1 | SetScratch.ps1 | #start of function
function SetScratch
{
<#
.SYNOPSIS
Create & configure Scratch partition on Esxi hosts
.DESCRIPTION
This will create scratch location on the local storage of the esxi hosts and then map that as the
scratch location for that host. Please note that if the local storage of your esxi ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/othersMenu/othersMenu.ps1 | othersMenu.ps1 | #Start of othersMenu
function othersMenu
{
do {
do {
Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow
Write-Host "`nothersMenu" -BackgroundColor White -ForegroundColor Black
Write-Host "
A. check reachability
"
Write-Host "
X. Previous M... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/othersMenu/checkIpConnectivity.ps1 | checkIpConnectivity.ps1 | # start of function
function checkIpConnectivity
{
<#
.SYNOPSIS
test connection of an ip range
.DESCRIPTION
Takes the starting and ending ip from the user as input then
1. prints the list of IPs which are not reachable and their count
2. prints the list of IPs which are reachable and their cou... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/Setxorg.ps1 | Setxorg.ps1 | #start of function
function Setxorg
{
<#
.SYNOPSIS
Configure xorg [X.Org Server]
.DESCRIPTION
Depending upon the choice that you make
This will enable xorg.
This will disable xorg.
This will set xorg policy to On which will be persistent across reboot.
This will set xorg policy to Of... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/Setvmsyslogd.ps1 | Setvmsyslogd.ps1 | #start of function
function Setvmsyslogd
{
<#
.SYNOPSIS
Configure vmsyslogd [Syslog Server]
.DESCRIPTION
Depending upon the choice that you make
This will enable vmsyslogd.
This will disable vmsyslogd.
This will set vmsyslogd policy to On which will be persistent across reboot.
This ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/SetLbtd.ps1 | SetLbtd.ps1 | #start of function
function Setlbtd
{
<#
.SYNOPSIS
Configure lbtd[Load-Based Teaming Daemon]
.DESCRIPTION
Depending upon the choice that you make
This will enable lbtd.
This will disable lbtd.
This will set lbtdpolicy to On which will be persistent across reboot.
This will set lbtdpol... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/HostServicesMenu.ps1 | HostServicesMenu.ps1 |
#Start of HostServicesMenu
function HostServicesMenu
{
do {
do {
Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow
Write-Host "`nHostServicesMenu" -BackgroundColor White -ForegroundColor Black
Write-Host "
A. DCUI [Direct Console UI]
B. TSM ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/SetDCUI.ps1 | SetDCUI.ps1 | #start of function
function SetDCUI
{
<#
.SYNOPSIS
Configure DCUI [Direct Console UI]
.DESCRIPTION
Depending upon the choice that you make
This will enable DCUI.
This will disable DCUI.
This will set DCUI policy to On which will be persistent across reboot.
This will set DCUI policy ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/Setpcscd.ps1 | Setpcscd.ps1 | #start of function
function Setpcscd
{
<#
.SYNOPSIS
Configure pcscd [PC/SC Smart Card Daemon]
.DESCRIPTION
Depending upon the choice that you make
This will enable pcscd.
This will disable pcscd.
This will set pcscd policy to On which will be persistent across reboot.
This will set p... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/SetSSH.ps1 | SetSSH.ps1 | #start of function
function SetSSH
{
<#
.SYNOPSIS
Configure TSM-SSH [SSH]
.DESCRIPTION
Depending upon the choice that you make
This will enable TSM-SSH.
This will disable TSM-SSH.
This will set TSM-SSH policy to On which will be persistent across reboot.
This will set TSM-SSH policy ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/Setntpd.ps1 | Setntpd.ps1 | #start of function
function Setntpd
{
<#
.SYNOPSIS
Configure ntpd [NTP Daemon]
.DESCRIPTION
Depending upon the choice that you make
This will enable ntpd.
This will disable ntpd.
This will set ntpd policy to On which will be persistent across reboot.
This will set ntpd policy to Off ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/Setvprobed.ps1 | Setvprobed.ps1 | #start of function
function Setvprobed
{
<#
.SYNOPSIS
Configure vprobed [VProbe Daemon]
.DESCRIPTION
Depending upon the choice that you make
This will enable vprobed.
This will disable vprobed.
This will set vprobed policy to On which will be persistent across reboot.
This will set v... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/Setlwsmd.ps1 | Setlwsmd.ps1 | #start of function
function Setlwsmd
{
<#
.SYNOPSIS
Configure lwsmd [Active Directory Service]
.DESCRIPTION
Depending upon the choice that you make
This will enable lwsmd.
This will disable lwsmd.
This will set lwsmd policy to On which will be persistent across reboot.
This will set ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/Setvpxa.ps1 | Setvpxa.ps1 | #start of function
function Setvpxa
{
<#
.SYNOPSIS
Configure vpxa [VMware vCenter Agent]
.DESCRIPTION
Depending upon the choice that you make
This will enable vpxa.
This will disable vpxa.
This will set vpxa policy to On which will be persistent across reboot.
This will set vpxa poli... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/SetTSM.ps1 | SetTSM.ps1 | #start of function
function SetTSM
{
<#
.SYNOPSIS
Configure TSM [ESXi Shell]
.DESCRIPTION
Depending upon the choice that you make
This will enable TSM.
This will disable TSM.
This will set TSM policy to On which will be persistent across reboot.
This will set TSM policy to Off which ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/Setsfcbd.ps1 | Setsfcbd.ps1 | #start of function
function Setsfcbd
{
<#
.SYNOPSIS
Configure sfcbd-watchdog [CIM Server]
.DESCRIPTION
Depending upon the choice that you make
This will enable sfcbd.
This will disable sfcbd.
This will set sfcbd policy to On which will be persistent across reboot.
This will set sfcbd... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/HostServicesMenu/Setsnmpd.ps1 | Setsnmpd.ps1 | #start of function
function Setsnmpd
{
<#
.SYNOPSIS
Configure snmpd [SNMP Server]
.DESCRIPTION
Depending upon the choice that you make
This will enable snmpd.
This will disable snmpd.
This will set snmpd policy to On which will be persistent across reboot.
This will set snmpd policy ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/VMKservicesMenu/FaultToleranceOn.ps1 | FaultToleranceOn.ps1 | #start of function
function FaultToleranceOn
{
<#
.SYNOPSIS
Enable vMotion
.DESCRIPTION
Enable vMotion across the Cluster
.NOTES
File Name : FaultToleranceOn.ps1
Author : gajendra d ambi
Date : Feb 2016
recommended : PowerShell v4+, powercli 6+ over win7 an... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/VMKservicesMenu/ManagementTrafficOff.ps1 | ManagementTrafficOff.ps1 | #start of function
function ManagementTrafficOff
{
<#
.SYNOPSIS
Enable vMotion
.DESCRIPTION
Enable vMotion across the Cluster
.NOTES
File Name : ManagementTrafficOff.ps1
Author : gajendra d ambi
Date : Feb 2016
recommended : PowerShell v4+, powercli 6+ over... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/VMKservicesMenu/ManagementTrafficOn.ps1 | ManagementTrafficOn.ps1 | #start of function
function ManagementTrafficOn
{
<#
.SYNOPSIS
Enable vMotion
.DESCRIPTION
Enable vMotion across the Cluster
.NOTES
File Name : ManagementTrafficOn.ps1
Author : gajendra d ambi
Date : Feb 2016
recommended : PowerShell v4+, powercli 6+ over w... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/VMKservicesMenu/FaultToleranceOff.ps1 | FaultToleranceOff.ps1 | #start of function
function FaultToleranceOff
{
<#
.SYNOPSIS
Enable vMotion
.DESCRIPTION
Enable vMotion across the Cluster
.NOTES
File Name : FaultToleranceOff.ps1
Author : gajendra d ambi
Date : Feb 2016
recommended : PowerShell v4+, powercli 6+ over win7 ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/VMKservicesMenu/VMKservicesMenu.ps1 | VMKservicesMenu.ps1 | #Start of VMKservicesMenu
function VMKservicesMenu
{
do {
do {
Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow
Write-Host "`nVMKservicesMenu" -BackgroundColor White -ForegroundColor Black
Write-Host "
A. Enable VMotion
B. Enable VsanTraffic
C. Enab... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/VMKservicesMenu/VmotionOn.ps1 | VmotionOn.ps1 | #start of function
function VmotionOn
{
<#
.SYNOPSIS
Enable vMotion
.DESCRIPTION
Enable vMotion across the Cluster
.NOTES
File Name : VmotionOn.ps1
Author : gajendra d ambi
Date : Feb 2016
recommended : PowerShell v4+, powercli 6+ over win7 and upper.
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/VMKservicesMenu/VsanTrafficOff.ps1 | VsanTrafficOff.ps1 | #start of function
function VsanTrafficOff
{
<#
.SYNOPSIS
Enable VsanTrafficOff
.DESCRIPTION
Enable vMotion across the Cluster
.NOTES
File Name : VsanTrafficOff.ps1
Author : gajendra d ambi
Date : Feb 2016
recommended : PowerShell v4+, powercli 6+ over win7... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/VMKservicesMenu/VsanTrafficOn.ps1 | VsanTrafficOn.ps1 | #start of function
function VsanTrafficOn
{
<#
.SYNOPSIS
Enable VsanTrafficOn
.DESCRIPTION
Enable vMotion across the Cluster
.NOTES
File Name : VsanTrafficOn.ps1
Author : gajendra d ambi
Date : Feb 2016
recommended : PowerShell v4+, powercli 6+ over win7 an... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/VMKservicesMenu/VMotionOff.ps1 | VMotionOff.ps1 | #start of function
function VMotionOff
{
<#
.SYNOPSIS
Enable vMotion
.DESCRIPTION
Enable vMotion across the Cluster
.NOTES
File Name : VMotionOff.ps1
Author : gajendra d ambi
Date : Feb 2016
recommended : PowerShell v4+, powercli 6+ over win7 and upper.
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/archive/WinSSH.ps1 | WinSSH.ps1 | #start of function
Function WinSSH
{
<#
.SYNOPSIS
Run SSH commands from windows
.DESCRIPTION
This will run commands to be run on VMware/vCenter hosts.
This needs plink to be in the same folder as this script.
This will open create a text file, you paste the commands which are to be run on the S... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/archive/SetScratch.ps1 | SetScratch.ps1 | #start of function
function SetScratch
{
<#
.SYNOPSIS
Create & configure Scratch partition on Esxi hosts
.DESCRIPTION
This will create scratch location on the local storage of the esxi hosts and then map that as the
scratch location for that host. Please note that if the local storage of your esxi ... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/IscsiMenu/isciAdv.ps1 | isciAdv.ps1 | #start of function
function iscsiAdv
{
<#
.SYNOPSIS
iscsi advanced options
.DESCRIPTION
iscsi advanced options
.NOTES
File Name : iscsiAdv.ps1
Author : gajendra d ambi
Date : march 2017
Prerequisite : PowerShell v4+, powercli 6+ over win7 and upper.
Copy... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/IscsiMenu/softIscsi.ps1 | softIscsi.ps1 | #start of function
function softIscsi
{
<#
.SYNOPSIS
enable software iscsi adapater
.DESCRIPTION
enable software iscsi adapater
.NOTES
File Name : softIscsi.ps1
Author : gajendra d ambi
Date : march 2017
Prerequisite : PowerShell v4+, powercli 6+ over win7 an... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/IscsiMenu/IscsiMenu.ps1 | IscsiMenu.ps1 | #Start of IscsiMenu
function IscsiMenu
{
do {
do {
Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow
Write-Host "`nIscsiMenu" -BackgroundColor White -ForegroundColor Black
Write-Host "
A. enable software iscsi adapter
B. pin vmk to software iscsi adapter
... |
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/HostMenu/IscsiMenu/vmkpin.ps1 | vmkpin.ps1 | #start of function
function vmkpin
{
<#
.SYNOPSIS
pin vmk to software iscsi.
.DESCRIPTION
pin vmk to software iscsi
.NOTES
File Name : vmkpin.ps1
Author : gajendra d ambi
Date : march 2017
Prerequisite : PowerShell v4+, powercli 6+ over win7 and upper.
C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.