full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Cluster.New-ResourcePool.ps1
Cluster.New-ResourcePool.ps1
Connect-VIServer vcenter.conseco.ad $cluster = Get-Cluster 'Kappa' New-ResourcePool -Location $cluster -Name '0. VIP' -CpuSharesLevel Custom -NumCpuShares '10000' -MemSharesLevel Custom -NumMemShares '409600' New-ResourcePool -Location $cluster -Name '1. PROD' -CpuSharesLevel High -MemSharesLevel High New-Resourc...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Get-VMHadrwareInfo.ps1
Get-VMHadrwareInfo.ps1
Connect-VIServer vcenter.conseco.ad Get-Cluster 'Beta' | Get-ResourcePool '4. UT' | Get-VM | ForEach-Object { $VM = $_ $NetworkAdapter = $VM | Get-NetworkAdapter $HardDisk = $VM | Get-HardDisk $VM | ` Select-Object -Property Name, @{N="IPAddress";E={[string]::Join(";",$_.Guest.IPA...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VM.Snapshots.ps1
VM.Snapshots.ps1
add-pssnapin VMware.VimAutomation.Core Set-PowerCLIConfiguration -DefaultVIServerMode multiple -Confirm:$false Connect-VIServer @('vcenter.conseco.ad','view4vc.conseco.ad') $snapshots = Get-VM | Get-Snapshot | Select VM , Name , Created | ConvertTo-Html Disconnect-VIServer -Confirm:$false '*' $mailbody = " ...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Junk.ps1
Junk.ps1
connect-viserver -server vcenter.conseco.ad Get-VM | Get-Snapshot | Select created,quiesced,powerstate,vm #$a = "<style>" #$a = $a + "body {margin: 10px; width: 600px; font-family:arial; font-size: 11px;}" #$a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}" ...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/GetVMInfo.ps1
GetVMInfo.ps1
Connect-VIServer -Server "vcenter.conseco.ad" #$Cluster = Get-Cluster "Beta" #$VMs = $Cluster | Get-VM | where-object { $_.PowerState -eq "PoweredOn" } | sort $_.Name $VMs = Get-VM | where-object { $_.PowerState -eq "PoweredOn" } | sort $_.Name $table = New-Object system.Data.DataTable "Server Info" $col01 = ...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/CheckPathDiskSpace.ps1
CheckPathDiskSpace.ps1
$Paths = GC "c:\path.lst" $table = New-Object system.Data.DataTable "Server Info" $col01 = New-Object system.Data.DataColumn Path,([string]) $col02 = New-Object system.Data.DataColumn SpaceUsed,([string]) $table.columns.add($col01) $table.columns.add($col02) ForEach ($Path in $Paths) { Write-Host "Check...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VM.SetupHost.ps1
VM.SetupHost.ps1
Connect-VIServer vcenter.conseco.ad #$$vmhost = get-vmhost -Name "esxzeta01.conseco.com" $vmhost = get-vmhost -Name "esxbeta10.conseco.com" Add-VMHostNtpServer -VMHost $vmhost -NtpServer 'ldapcml.conseco.ad' $NTPService = Get-VmHostService -VMHost $vmhost | Where-Object {$_.key -eq "ntpd"} Restart-VMHostServic...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMHost.Get-HBA.WWPN.ps1
VMHost.Get-HBA.WWPN.ps1
#Initialize variables $VCServer = "view4vc.conseco.ad" $objHba = @() Connect-VIServer $VCServer $clusters = Get-cluster "Theta" foreach ($cluster in $clusters) { $vmhosts = $cluster | Get-vmhost if ($null -ne $vmhosts) { foreach ($vmhost in $vmhosts) { $vmhostview = $vmhost | ...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/sllep.ps1
sllep.ps1
$exitafter=10000 $dir=get-wmiobject win32_Directory $start=get-date do{ $dir|%{ $_.Name if((new-timespan $start).TotalMilliSeconds -ge $exitafter) {'***10 SECONDS ELAPSED***';break} } '***SCRIPT END***' break }while($true)
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/CPLNetAppCheck.ps1
CPLNetAppCheck.ps1
$table = New-Object system.Data.DataTable "FileShares" $col01 = New-Object system.Data.DataColumn NetApp,([string]) $col02 = New-Object system.Data.DataColumn Share,([string]) $col03 = New-Object system.Data.DataColumn AvailableSpace,([string]) $col04 = New-Object system.Data.DataColumn UsedSpace,([string]) $col05...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/ESX.GetNetworkingInfo.ps1
ESX.GetNetworkingInfo.ps1
Connect-VIServer vcenter.conseco.ad $filename = "C:\VMware\VMinfoCDP.csv" Write "Gathering VMHost objects" $vmhosts = Get-VMHost | Sort Name | Where-Object {$_.State -eq "Connected"} | Get-View $MyCol = @() foreach ($vmhost in $vmhosts){ $ESXHost = $vmhost.Name Write "Collating information for $ESXHost...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMHost.GetVAAIsettings.ps1
VMHost.GetVAAIsettings.ps1
Connect-viserver vcenter.conseco.ad Get-VMHost esxalpha10.conseco.com | Get-VMHostAdvancedConfiguration -Name DataMover*, VMFS3.HardwareAcc* Disconnect-VIServer -Confirm:$false
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/GetOSVersion.ps1
GetOSVersion.ps1
$Catalog = GC "c:\server.lst" # File containing server list ForEach($Machine in $Catalog) # Loop through file, for each server {$QueryString = Gwmi Win32_OperatingSystem -Comp $Machine $QueryString = $QueryString.Caption +"," + $QueryString.ServicePackMajorVersion Write-Output $Machine","$QueryString} # Write the ...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Import-Export-VCDB/Export-VCDB.ps1
Export-VCDB.ps1
# # Export-VCDB.ps1 # # Version: 1.0 # Auhtor: Arnim van Lieshout # # This script will export your vCenter database objects to several .xml files. # These files can be used in combination with the Import-VCDB.ps1 script to recreate those objects into another vCenter database # # I've put every step in a sepera...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Import-Export-VCDB/Import-VCDB.ps1
Import-VCDB.ps1
# # Import-VCDB.ps1 # # Version: 1.0 # Auhtor: Arnim van Lieshout # # This script will import your vCenter database objects from .xml files created with Export-VCDB.ps1 # # I've put every step in a seperate function, so you can easily select the steps you need in your environment # $dst = Connect-VIServer "...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/JakeDR/ClusterSample2.ps1
ClusterSample2.ps1
$Clusters = @('NTSQLPCL','NTS5PCL','NTEXPCL','NTLPS5PCL') ForEach($strCluster in $Clusters){ $CLUClusters = gwmi MSCluster_Cluster -namespace root\MSCluster -ComputerName $strCluster $CLUResourceGroups = gwmi MSCluster_ResourceGroup -namespace root\MSCluster -ComputerName $strCluster $CLUResources = gwmi MSCl...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/JakeDR/ClusterSample1.ps1
ClusterSample1.ps1
# Process to generate the script to re-create the file share resources from a Windows 2003 cluster. # It needs the cluster name as a parameter and it generates the script with the configuration from each resource. # The new cluster name will be NEWCLUSTER so you need to change it before run it. param([string]$Serv...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/JakeDR/ClusterInfo.ps1
ClusterInfo.ps1
$strComputerName = 'NTS5P04' $CLUClusters = gwmi MSCluster_Cluster -namespace root\MSCluster -ComputerName $strComputerName $strCluster = $CLUCluster.Name $CLUGroups = gwmi MSCluster_ClusterToResourceGroup -Namespace root\MSCluster -ComputerName $strComputerName Write-Host "Cluster: " $strCl...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/DeployVM/Copy of deployVMfunction.ps1
Copy of deployVMfunction.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/DeployVM/DeployVM.ps1
DeployVM.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir /> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <altcreds>false</alt...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/DeployVM/deployVMfunction - Copy.ps1
deployVMfunction - Copy.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/DeployVM/deployVMfunction.ps1
deployVMfunction.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/DeployVM/CloneVMgetfromSD.ps1
CloneVMgetfromSD.ps1
$VMDSfn = "DeployVMfunction.ps1" $VMDSincludes = ($VMDSfn) $VMDSincludes | % { if (Test-Path $_) { . ./$_ Write-Host $_ Loaded } else { Write-Host "Essential file missing." -foregroundcolor "red" Write-Host "Make sure file '$_' is present in the current directory" exit } } load-VITK...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/DeployVM/DeployVMinitialform.ps1
DeployVMinitialform.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/DeployVM/DeployVMGUI.ps1
DeployVMGUI.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/DeployVM/DeployVMgetfromDRDB.ps1
DeployVMgetfromDRDB.ps1
$VMDSfn = "DeployVMfunction.ps1" $VMDSincludes = ($VMDSfn) $VMDSincludes | % { if (Test-Path $_) { . ./$_ Write-Host $_ Loaded } else { Write-Host "Essential file missing." -foregroundcolor "red" Write-Host "Make sure file '$_' is present in the current directory" exit } } #$TaskNam...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/DeployVM/DeployVMgetfromSD.ps1
DeployVMgetfromSD.ps1
$VMDSfn = "DeployVMfunction.ps1" $VMDSincludes = ($VMDSfn) $VMDSincludes | % { if (Test-Path $_) { . ./$_ Write-Host $_ Loaded } else { Write-Host "Essential file missing." -foregroundcolor "red" Write-Host "Make sure file '$_' is present in the current directory" exit } } load-VITK...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/DeployVM/DeployVMold.ps1
DeployVMold.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/DeployVM/DeployVMprogress.ps1
DeployVMprogress.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.Disk.ExtendSystemDisk.ps1
VM.Disk.ExtendSystemDisk.ps1
# Extends the non-system $VMs = @('NTPPLUSMODL') ## Name of the VM $CDriveSizeGB = 24 ## Total Disk Space for C: drive in GB Connect-VIServer vcenter.conseco.ad Foreach ($VMn in $VMs) { $VM = Get-VM $VMn $VM | Shutdown-VMGuest -Confirm:$false Sleep 100 $CDriveSizeKB = $CDriveSizeGB * 1024 * 1024 ...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.PostDeploySetupOnVM.ps1
VM.PostDeploySetupOnVM.ps1
param([string] $BOIPAddr, [string]$VMNIC1MAC, [string]$VMNIC2MAC, [string]$OSVER) $Shell = New-Object -com shell.application $NetCons = $Shell.Namespace(0x31) $NetCons.Items() | where {$_.Name -like '*'} | foreach{$AdapName=$_.Name; get-WmiObject -class Win32_NetworkAdapter | where-Object {$_.NetConne...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.PostDeploySetup.ps1
VM.PostDeploySetup.ps1
#### Startup $Name = "NTSCCMCPLP01" $BOIP = "10.141.3.74" $OSver = "W2K8-R2-SP0-ENT-X64" #### ## Start Run ## Connect-VIServer vcenter.conseco.ad $VM = Get-VM $Name $NICs = Get-NetworkAdapter $VM $VMNIC1MAC = $NICs[0].MacAddress $VMNIC2MAC = $NICs[1].MacAddress #Move Computer Object move-qadobject (...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/ACL.SetInherit.ps1
ACL.SetInherit.ps1
# This script takes an optional parameter of a path. If excluded, the path will # be taken from the location where the PowerShell script is called. param([String[]] $path=(get-location).Path) # The following information determines the user/group that will be used and the # permissions that will be set accordingl...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/Vm.Disk.StoragevMotion.ps1
Vm.Disk.StoragevMotion.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad Get-VM -Name "CCM4" | Move-VM -Datastore (Get-Datastore "ESXNA358") Get-VM -Name "CPLLX02" | Move-VM -Datastore (Get-Datastore "ESXNA358") Get-VM -Name "NTADCSP00" | Move-VM -Datastore (Get-Data...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.Disk.Utilization.ps1
VM.Disk.Utilization.ps1
#Connect-VIServer vcenter.conseco.ad # #$report = @() #Get-VM | %{ # $stats = Get-Stat -Entity $_ -Stat cpu.usagemhz.average -Start (Get-Date).adddays(-1) -ErrorAction SilentlyContinue # if($stats){ # $statsGrouped = $stats | Group-Object -Property MetricId # $row = "" | Select Name, UsageAvgMhz # $row.Name...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.Disk.ExtendSingleDisk.ps1
VM.Disk.ExtendSingleDisk.ps1
## Startup Connect-VIServer vcenter.conseco.ad $VMs = @('XPUSER35','XPUSER36','XPUSER40') $DDriveSizeGB = 40 $DDriveSizeKB = $DDriveSizeGB * 1024 * 1024 Foreach ($VM in $VMs) { $disks = Get-HardDisk -vm $VM if($disks.GetType().Name -eq "FlatHardDiskImpl") { foreach ($disk in $disks) { Write-H...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.Disk.ExtendSystemDiskSingle.ps1
VM.Disk.ExtendSystemDiskSingle.ps1
# Extends the non-system $Name = "ntlearner1" ## Name of the VM $CDriveSizeGB = 24 ## Total Disk Space for C: drive in GB Connect-VIServer vcenter.conseco.ad $VM = Get-VM $Name $VM | Shutdown-VMGuest -Confirm:$false Sleep 100 $CDriveSizeKB = $CDriveSizeGB * 1024 * 1024 Write-Host "VM:" $VM $disks = ...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/Decom.PostDecomCleanup.ps1
Decom.PostDecomCleanup.ps1
$ServerNames = @('NTFVWSP02','NTFVAPP02','NTFVPAMP02','NTFVRSUP02','NTFVWSUAT02','NTFVAPUAT02','NTFVPAMUAT02','NTFVRSUUAT02','BLCIIS1','BLCFS03','BLCDFS01','BLCLANIR') ForEach ($ServerName in $ServerNames) { #$ServerName = "XPINFOSYS4" $DomainSrvName = "CONSECO\" + $ServerName + "$" # Delete DNS Record dnscmd...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.Disk.Utilization2.ps1
VM.Disk.Utilization2.ps1
Connect-VIServer vcenter.conseco.ad $report = @() Get-VM | %{ $stats = Get-Stat -Entity $_ -Stat disk.usage.average,disk.read.average,disk.write.average -Start (Get-Date).adddays(-1) -ErrorAction SilentlyContinue if($stats){ $statsGrouped = $stats | Group-Object -Property MetricId $row = "" | Select Name...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.ListLocationInVCenter.ps1
VM.ListLocationInVCenter.ps1
function get-children($entity,$path){ if($entity.Name -ne "vm"){ $path += ("\" + $entity.Name) } foreach($child in $entity.ChildEntity){ $childfld = Get-View -Id $child switch($childfld.gettype().name){ "Folder" { Write-Host ($path + "\" + $childfld.Name) get-children $childfld $path...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.PostDeploySetupOnVM.v2.ps1
VM.PostDeploySetupOnVM.v2.ps1
param([string] $BOIPAddr, [string]$VMNIC1MAC, [string]$VMNIC2MAC, [string]$OSVER) $Shell = New-Object -com shell.application $NetCons = $Shell.Namespace(0x31) $NetCons.Items() | where {$_.Name -like '*'} | foreach{$AdapName=$_.Name; get-WmiObject -class Win32_NetworkAdapter | where-Object {$_.NetConne...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.RemoveLimits.ps1
VM.RemoveLimits.ps1
Connect-VIServer vcenter.conseco.ad # we'll use the same object to remove the limit $ResourceAllocationInfo = New-Object VMware.Vim.ResourceAllocationInfo $ResourceAllocationInfo.Limit = -1 # Get the Managed object for each VM Foreach ($VM in get-vm | get-view) { # Create a fresh VirtualMachineConfigSpe...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.vCheck.ps1
VM.vCheck.ps1
# vCheck - Daily Error Report # # Changes: # Version 3.0 - Added VMs in mis-matched Folder names # Version 2.9 - Added counts to each titlebar and output to screen whilst running for interactive mode # Version 2.8 - Changed VC Services to show only unexpected status # Version 2.7 - Added VMs with outdated Ha...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/SCCM.ForceUpdate.ps1
SCCM.ForceUpdate.ps1
#$boxes = @("NTH11HFMP01","NTH11HFMP02","NTH11BIWKP01","NTH11BIWKP02","NTH11BICRP01","NTH11BICRP01","NTH11ESBP01","NTH11ODIP01","NTH11PLANP01") $boxes = @("NTTMP03") #$boxes = @("NTRFBRDP01","NTRFBRDP02","NTRFBRDP03","NTRFBRDP04") ForEach($box in $boxes){ $WMIClass = "\\" + $box + "\root\ccm:SMS_Client" $SMSCli ...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.Disk.ExtendNonSystemDisk.ps1
VM.Disk.ExtendNonSystemDisk.ps1
# Extends the non-system $Name = "NTECORAP01" ## Name of the VM $DDriveSizeGB = 114 ## Total Disk Space for D: drive in GB Connect-VIServer vcenter.conseco.ad $VM = Get-VM $Name $DDriveSizeKB = $DDriveSizeGB * 1024 * 1024 Write-Host "VM:" $VM $disks = Get-HardDisk -vm $VM Write-Host "VM has " $disks....
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/VM.CPU.Ready.ps1
VM.CPU.Ready.ps1
#Connect-VIServer vcenter.conseco.ad # #$report = @() #Get-VM | %{ # $stats = Get-Stat -Entity $_ -Stat cpu.usagemhz.average -Start (Get-Date).adddays(-1) -ErrorAction SilentlyContinue # if($stats){ # $statsGrouped = $stats | Group-Object -Property MetricId # $row = "" | Select Name, UsageAvgMhz # $row.Name...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/Vm.Disk.StoragevMotion - BPA - D Fix.ps1
Vm.Disk.StoragevMotion - BPA - D Fix.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad Get-VM -Name "NTIAFEXPP01" | Move-VM -Datastore (Get-Datastore "ESXNA2VMDISK") Get-VM -Name "NTIAFEXPP02" | Move-VM -Datastore (Get-Datastore "ESXNA2VMDISK") Get-VM -Name "NTIAFEXPP03" | Move-VM -...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/Vm.Disk.StoragevMotion - BPA - MBR.ps1
Vm.Disk.StoragevMotion - BPA - MBR.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad Get-VM -Name "BLCDCCMLP01" | Move-VM -Datastore (Get-Datastore "ESXNA367") Get-VM -Name "BLCDCCMLP02" | Move-VM -Datastore (Get-Datastore "ESXNA367") Get-VM -Name "BLCFNETP01" | Move-VM -Datastore (...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/Vm.Disk.StoragevMotion - BO.ps1
Vm.Disk.StoragevMotion - BO.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad Get-VM -Name 'NTDCCMLP07' | Move-VM -Datastore (Get-Datastore 'VMW2K8R2X64PROD001') -RunAsync Get-VM -Name 'NTDCCMLP08' | Move-VM -Datastore (Get-Datastore 'VMW2K8R2X64PROD001') -RunAsync Get-VM -Na...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/old/Vm.Disk.StoragevMotion - Batch 4.ps1
Vm.Disk.StoragevMotion - Batch 4.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad Get-VM -Name "NTINTRANET-T1" | Move-VM -Datastore (Get-Datastore "ESXNA441") -RunAsync Get-VM -Name "NTMWTOOLPROD1" | Move-VM -Datastore (Get-Datastore "ESXNA357") -RunAsync Get-VM -Name "NTITINFS...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/old/Vm.Disk.StoragevMotion - Batch 5.ps1
Vm.Disk.StoragevMotion - Batch 5.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad #Get-VM -Name "LXP09" | Move-VM -Datastore (Get-Datastore "ESXNA426") #Get-VM -Name "LXWSP03" | Move-VM -Datastore (Get-Datastore "ESXNA426") #Get-VM -Name "LXWSP04" | Move-VM -Datastore (Get-Da...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/old/Vm.Disk.StoragevMotion - Batch 3.ps1
Vm.Disk.StoragevMotion - Batch 3.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad Get-VM -Name "NTTFCTXP03" | Move-VM -Datastore (Get-Datastore "ESXNA352") Get-VM -Name "NTEXGMMP01" | Move-VM -Datastore (Get-Datastore "ESXNA352") Get-VM -Name "NTAWDSTP03" | Move-VM -Datastore...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/old/Vm.Disk.StoragevMotion - Batch 2.ps1
Vm.Disk.StoragevMotion - Batch 2.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad Get-VM -Name "NTTMP05" | Move-VM -Datastore (Get-Datastore "ESXNA354") Get-VM -Name "NTBBHPROD2" | Move-VM -Datastore (Get-Datastore "ESXNA354") Get-VM -Name "NTNPSP02" | Move-VM -Datastore (Get...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/old/Vm.Disk.StoragevMotion - Batch 1.ps1
Vm.Disk.StoragevMotion - Batch 1.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad Get-VM -Name "NTBDVIEW2" | Move-VM -Datastore (Get-Datastore "ESXNA353") Get-VM -Name "NTCNCWEB04" | Move-VM -Datastore (Get-Datastore "ESXNA353") Get-VM -Name "NTCTXLICP01" | Move-VM -Datastore...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/old/Vm.Disk.StoragevMotion - Batch 7 - Copy.ps1
Vm.Disk.StoragevMotion - Batch 7 - Copy.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer viewvc.conseco.ad Get-VM -Name "XPCSC027" | Move-VM -Datastore (Get-Datastore "ESXNA410") -RunASync Get-VM -Name "XPCSC028" | Move-VM -Datastore (Get-Datastore "ESXNA410") -RunASync Get-VM -Name "XPCSC029" | Move-VM -...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/old/Vm.Disk.StoragevMotion - Post VMFS Creation.ps1
Vm.Disk.StoragevMotion - Post VMFS Creation.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad Get-VM -Name "LXTMLPP01" | Move-VM -Datastore (Get-Datastore "ESXNA120") Get-VM -Name "NTBPASIT01" | Move-VM -Datastore (Get-Datastore "ESXNA364") Get-VM -Name "NTCAMRATEST" | Move-VM -Datastore...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/old/Vm.Disk.StoragevMotion - Batch 6.ps1
Vm.Disk.StoragevMotion - Batch 6.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad Get-VM -Name "XPDPPROD3" | Move-VM -Datastore (Get-Datastore "ESXNA411") -RunAsync Get-VM -Name "XPDPPROD8" | Move-VM -Datastore (Get-Datastore "ESXNA411") -RunAsync Get-VM -Name "XPDPPROD9" | M...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/old/7.ps1
7.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer viewvc.conseco.ad Get-VM -Name "XPCSC001" | Move-VM -Datastore (Get-Datastore "ESXNA410") -RunASync Get-VM -Name "XPCSC002" | Move-VM -Datastore (Get-Datastore "ESXNA410") Get-VM -Name "XPCSC003" | Move-VM -Datastore ...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/jktemp/old/Vm.Disk.StoragevMotion - Copy.ps1
Vm.Disk.StoragevMotion - Copy.ps1
$vmwareSnapin = Add-PSSnapin "VMware.VimAutomation.Core" -ErrorVariable myErr Connect-VIServer vcenter.conseco.ad Get-VM -Name "BLCIIS2" | Move-VM -Datastore (Get-Datastore "ESXNA359") Get-VM -Name "NTCNONETP2" | Move-VM -Datastore (Get-Datastore "ESXNA359") Get-VM -Name "NTIMCWEBPROD1" | Move-VM -Datastore...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/WF-Automation/CNOAutomate-VLANUpdate.ps1
CNOAutomate-VLANUpdate.ps1
param([string] $CNOAutomateID) # CONSECO - Windows Server Administration # * Workflow Automation - Updates VLAN of a VM * # ** Last Modified: 2010/02/25 @ 16:19 by LANJ6P (Pawlak, Jakub P) # ****************************************************************** . \\ntadminp01\ntadmin\PowerShell\Automation\WF-Automa...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/WF-Automation/CNOAutomateFN.ps1
CNOAutomateFN.ps1
# CONSECO - Windows Server Administration # * CNO Automate - Powershell Functions File * # ** Last Modified: 2010/10/27 @ 22:51 by LANJ6P (Pawlak, Jakub P) #region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/WF-Automation/WF-Auto-DeployVMs.ps1
WF-Auto-DeployVMs.ps1
# CONSECO - Windows Server Administration # * Workflow Automation - Deploy VMs * # ** Last Modified: 2010/02/25 @ 16:19 by LANJ6P (Pawlak, Jakub P) # ** Usage: Schedule to run continously as a domain admin # ****************************************************************** $WFAutoFN = "DeployVMfunction.ps1" $...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/WF-Automation/deployVMfunction.ps1
deployVMfunction.ps1
# CONSECO - Windows Server Administration # * VM Deployment Primary Functions Files * # ** Last Modified: 2009/09/08 @ 22:51 by LANJ6P (Pawlak, Jakub P) #region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <argu...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/WF-Automation/WF-Auto-GetActionsFromMDB.ps1
WF-Auto-GetActionsFromMDB.ps1
# CONSECO - Windows Server Administration # * Workflow Automation - Get Data From Service Desk * # ** Last Modified: 2010/02/25 @ 16:19 by LANJ6P (Pawlak, Jakub P) # ** Usage: Schedule to run every 15 minutes as a user with access # ** to SQL Server 'S5PRD1' & Database 'MDB' # *****************************...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/WF-Automation/WF-Auto-CheckTaskStatus.ps1
WF-Auto-CheckTaskStatus.ps1
# CONSECO - Windows Server Administration # * Workflow Automation - Check vCenter Task Status * # ** Last Modified: 2010/02/25 @ 16:19 by LANJ6P (Pawlak, Jakub P) # ** Usage: Schedule to run continously as a user with access to # ** vCenter # ***************************************************************...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/WF-Automation/CNOAutomate-PowerOn.ps1
CNOAutomate-PowerOn.ps1
param([string] $CNOAutomateID) # CONSECO - Windows Server Administration # * Workflow Automation - Extends the Non-System Disk * # ** Last Modified: 2010/02/25 @ 16:19 by LANJ6P (Pawlak, Jakub P) # ****************************************************************** . \\ntadminp01\ntadmin\PowerShell\Automation\WF...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/WF-Automation/CNOAutomate-PostDeploy.ps1
CNOAutomate-PostDeploy.ps1
param([string] $CNOAutomateID) # CONSECO - Windows Server Administration # * Workflow Automation - Extends the Non-System Disk * # ** Last Modified: 2010/02/25 @ 16:19 by LANJ6P (Pawlak, Jakub P) # ****************************************************************** . \\ntadminp01\ntadmin\PowerShell\Automation\WF...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/WF-Automation/CNOAutomate-ExtendDisk.ps1
CNOAutomate-ExtendDisk.ps1
param([string] $CNOAutomateID) # CONSECO - Windows Server Administration # * Workflow Automation - Extends the Non-System Disk * # ** Last Modified: 2010/02/25 @ 16:19 by LANJ6P (Pawlak, Jakub P) # ****************************************************************** . \\ntadminp01\ntadmin\PowerShell\Automation\WF...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/Automation/WF-Automation/CNOAutomate-AddDisk.ps1
CNOAutomate-AddDisk.ps1
param([string] $CNOAutomateID) # CONSECO - Windows Server Administration # * Workflow Automation - Updates VLAN of a VM * # ** Last Modified: 2010/02/25 @ 16:19 by LANJ6P (Pawlak, Jakub P) # ****************************************************************** . \\ntadminp01\ntadmin\PowerShell\Automation\WF-Automa...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVMgetfromDRDB-UpdateDBStatus.ps1
DeployVMgetfromDRDB-UpdateDBStatus.ps1
# CONSECO - Windows Server Administration - DR # * VM Deployment Status Check * $VMDSfn = "DeployVMfunction.ps1" $VMDSincludes = ($VMDSfn) $VMDSincludes | % { if (Test-Path $_) { . ./$_ Write-Host $_ Loaded } else { Write-Host "Essential file missing." -foregroundcolor "red" Write-Host "...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVM.ps1
DeployVM.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir /> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <altcreds>false</alt...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVMgetfromDRDB-NBUAdmin.ps1
DeployVMgetfromDRDB-NBUAdmin.ps1
# CONSECO - Windows Server Administration - DR # * NetBackup Interface* [reflection.assembly]::LoadWithPartialName("'Microsoft.VisualBasic") function fnGetDataSet([string]$SQL){ $SqlServer = "VCENTER.CONSECO.AD"; $SqlDatabase = "VCENTER"; $SqlSecurity = "User Id=VCAdmin; Password=vcadm6ev;" # Get the T-...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/deployVMfunction00.ps1
deployVMfunction00.ps1
# CONSECO - Windows Server Administration # * VM Deployment Primary Functions Files * #region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # ...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/deployVMfunction.ps1
deployVMfunction.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/CloneVMgetfromSD.ps1
CloneVMgetfromSD.ps1
$VMDSfn = "DeployVMfunction.ps1" $VMDSincludes = ($VMDSfn) $VMDSincludes | % { if (Test-Path $_) { . ./$_ Write-Host $_ Loaded } else { Write-Host "Essential file missing." -foregroundcolor "red" Write-Host "Make sure file '$_' is present in the current directory" exit } } $TaskName...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVMinitialform.ps1
DeployVMinitialform.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVMgetfromDRDB-Dashboard.ps1
DeployVMgetfromDRDB-Dashboard.ps1
# CONSECO - Windows Server Administration - DR # * VM Deployment Dashboard * Clear-Host Write-Host Write-Host "..######...#######..##....##..######..########..######...#######." -foregroundcolor "DarkGreen" Write-Host ".##....##.##.....##.###...##.##....##.##.......##....##.##.....##" -foregroundcolor "Dark...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVMGUI.ps1
DeployVMGUI.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVMgetfromDRDB-SysAdmin.ps1
DeployVMgetfromDRDB-SysAdmin.ps1
# CONSECO - Windows Server Administration - DR # * SysAdmin Interface* [reflection.assembly]::LoadWithPartialName("'Microsoft.VisualBasic") function Get-SQL ([string]$Query,[string]$ConnString) { if ($ConnString) { if($ConnString -match '"*"') { $ConnString = $ConnString.TrimStart('"') $ConnString = $...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVMgetfromDRDB.ps1
DeployVMgetfromDRDB.ps1
# CONSECO - Windows Server Administration - DR # * VM Deployment DR Deploy * $VMDSfn = "DeployVMfunction.ps1" $VMDSincludes = ($VMDSfn) $VMDSincludes | % { if (Test-Path $_) { . ./$_ Write-Host $_ Loaded } else { Write-Host "Essential file missing." -foregroundcolor "red" Write-Host "Mak...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVMgetfromSD.ps1
DeployVMgetfromSD.ps1
$VMDSfn = "DeployVMfunction.ps1" $VMDSincludes = ($VMDSfn) $VMDSincludes | % { if (Test-Path $_) { . ./$_ Write-Host $_ Loaded } else { Write-Host "Essential file missing." -foregroundcolor "red" Write-Host "Make sure file '$_' is present in the current directory" exit } } $TaskName...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVMold.ps1
DeployVMold.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVMprogress.ps1
DeployVMprogress.ps1
#region Script Settings #<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd"> # <ScriptPackager> # <process>powershell.exe</process> # <arguments /> # <extractdir>%TEMP%</extractdir> # <files /> # <usedefaulticon>true</usedefaulticon> # <showinsystray>false</showinsystray> # <al...
PowerShellCorpus/Github/vjacksonr123_powershell/Archive/VMDR/DeployVMgetfromDRDB-Config.ps1
DeployVMgetfromDRDB-Config.ps1
# CONSECO - Windows Server Administration - DR # * VM Deployment Configuration * $VMDSfn = "DeployVMfunction.ps1" $VMDSincludes = ($VMDSfn) $VMDSincludes | % { if (Test-Path $_) { . ./$_ Write-Host $_ Loaded } else { Write-Host "Essential file missing." -foregroundcolor "red" Write-Host ...
PowerShellCorpus/Github/vjacksonr123_powershell/Bulk Add AD Users/Create-BulkADUsers-CSV.ps1
Create-BulkADUsers-CSV.ps1
Import-Module ActiveDirectory Import-Csv "C:\Scripts\NewUsers.csv" | ForEach-Object { $userPrincinpal = $_."samAccountName" + "@TestDomain.Local" New-ADUser -Name $_.Name ` -Path $_."ParentOU" ` -SamAccountName $_."samAccountName" ` -UserPrincipalName $userPrincinpal ` -AccountPassword (ConvertTo-SecureSt...
PowerShellCorpus/Github/vjacksonr123_powershell/Arcserv UDP Monitoring/Arcserve UDP D2D.ps1
Arcserve UDP D2D.ps1
Param( [string]$dom, [string]$user, [string]$pass, [string]$Hourstogoback ) # IMPORTANT NOTE : THE SCRIPT IS IN DEBUG SO THE USERNAME/PASSWORD IS PRE-ENTERED # IMPORTANT NOTE : THE SCRIPT IS IN DEBUG SO THE USERNAME/PASSWORD IS PRE-ENTERED # IMPORTANT NOTE : THE SCRIPT IS IN DEBUG SO THE USERN...
PowerShellCorpus/Github/mburnejko_PS-CopyVHD-StartVM-ARM/start.ps1
start.ps1
Get-AzureRmSubscription –SubscriptionName "Nazwa” | Select-AzureRmSubscription # Variables $ResourceGroupName = "vms" # <- MUSI BYC UTWORZONE WCZESNIEJ $Location = "West Europe" # <- TAM GDZIE RESOURCE GROUPA ## Network $InterfaceName = "AZ1PM01_NIC" $VNetName = "AzureVNet" <- MUSI BYĆ UTWORZONE WCZESN...
PowerShellCorpus/Github/Wazzak_EmailProject/EmailSite/packages/Microsoft.ApplicationInsights.WindowsServer.2.2.0/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) if ([System.IO.File]::Exists($project.FullName)) { function MarkItemASCopyToOutput($item) { Try { #mark it to copy if newer $item.Properties.Item("CopyToOutputDirectory").Value = 2 } Catch { write-host $_.Exception.ToString() }...
PowerShellCorpus/Github/Wazzak_EmailProject/EmailSite/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $compilerPackageName = 'Microsoft.Net.Compilers' $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $libDirectory = Join-Path $installPath 'lib\net45' $packageDirectory = Split-Path $installPath $compilerPackage = Get-Chil...
PowerShellCorpus/Github/Wazzak_EmailProject/EmailSite/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $projectRoot = $project.Properties.Item('FullPath').Value $binDirectory = Join-Path $projectRoot 'bin' $targetDirectory = Join-Path $binDirectory $roslynSubFolder if (Te...
PowerShellCorpus/Github/rumeysabingul_g151210051/LMProje/packages/EntityFramework.6.0.0/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 # MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/rumeysabingul_g151210051/LMProje/packages/EntityFramework.6.0.0/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/rumeysabingul_g151210051/LMProje/packages/Modernizr.2.6.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
PowerShellCorpus/Github/rumeysabingul_g151210051/LMProje/packages/Modernizr.2.6.2/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName...
PowerShellCorpus/Github/rumeysabingul_g151210051/LMProje/packages/Modernizr.2.6.2/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/OPSTest_E2E_NewRepo_1489709135188/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", [string]$parameters ) # Main $errorActionPreference = 'Stop' # Step-1: Download buildcore script to local echo "download build core script to local with source u...
PowerShellCorpus/Github/DomainGroupOSS_OctopusServerDSC/Tests/OctopusServerDSC.tests.ps1
OctopusServerDSC.tests.ps1
Function Format-KeyError { # cuts down the long path returned in a key error. This is horrible param([string]$e) # get the path $a = $e -split ":" $path = ($a[0] + ":" + $a[1]) $path = $path.Replace($pwd.Path, ".") return ($path + ":" + $a[2]) } Describe "Repo testing" { Contex...
PowerShellCorpus/Github/mdehus_tlen5838-nvclass/TurnOn_SSH.ps1
TurnOn_SSH.ps1
for($i=1; $i -le 9; $i++) { Connect-VIServer -Server 100.67.$i.2 -User root -Password itplab123 Get-VMHost | Foreach { Start-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq "TSM-SSH"} ) } }
PowerShellCorpus/Github/mdehus_tlen5838-nvclass/TLEN_5838 _Deploy.ps1
TLEN_5838 _Deploy.ps1
#Connect-VIServer vcenter.int.colorado.edu $Students = Import-CSV students_tlen5838.csv $Datacenter = "ECEE 2B80" $ClusterName = "Sandbox" $DestFolder = "Network and System Virtualization" $Datastore = "Hollywood" $VDSwitch = "vDS-Hollywood-Switch0" foreach($Student in $Students) { $Owner = "ad\" + $Stud...
PowerShellCorpus/Github/nicksouthorn_PowerShellFiles/New-TableOfContents.ps1
New-TableOfContents.ps1
<# .SYNOPSIS Creates a table of contents. .DESCRIPTION Creates a table of contents of all files within a given path. Displays in raw HTML format. .PARAMETER path .EXAMPLE New-TableOfContents(C:\users\nick\) #> function New-TableOfContents{ param( [string]$path, [string]$TOCName = "Example TOC" ...