I hereby claim:
- I am bjeans on github.
- I am bjeans (https://keybase.io/bjeans) on keybase.
- I have a public key ASDhV0pDW88hOrJG6ZRQ0_3olSch9Tmm5c1e7n17nUgtNgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$SUBs = Get-AzureRmSubscription | |
foreach ($SUB in $SUBs) | |
{ | |
Select-AzureRmSubscription -SubscriptionName $SUB.SubscriptionName | |
$RGs = Get-AzureRMResourceGroup | |
foreach($RG in $RGs) | |
{ |
/* | |
** | |
** After uploading to Arduino, switch to Serial Monitor and set the baud rate | |
** to 9600. | |
** | |
** | |
** DmxMaster library help & support: http://groups.google.com/group/DmxMaster */ | |
#include <DmxMaster.h> |
$vm = Get-AzureVM –ServiceName "example-1-svc" –Name "example-1" | |
$rdp = Get-AzureEndpoint -Name "Remote Desktop" -VM $vm | |
$hostdns = (New-Object "System.Uri" $vm.DNSName).Authority | |
$port = $rdp.Port | |
Start-Process "mstsc" -ArgumentList "/V:$hostdns`:$port /w:1024 /h:768" |
$PhysicalDisks = Get-StorageSubSystem -FriendlyName "Storage Spaces*" | Get-PhysicalDisk -CanPool $True | |
$sPool = New-StoragePool -FriendlyName "CompanyData" -StorageSubsystemFriendlyName "Storage Spaces*" -PhysicalDisks $PhysicalDisks -ResiliencySettingNameDefault Simple | |
$vDisk = New-VirtualDisk -FriendlyName "UserData" -UseMaximumSize -NumberOfColumns $PhysicalDisks.Count -StoragePoolFriendlyName $sPool.FriendlyName -ResiliencySettingName Simple | |
$vDisk | Initialize-Disk | |
Get-Disk |Where-Object {$_.FriendlyName -like "*Storage Space*"}|New-Partition -AssignDriveLetter -UseMaximumSize |Format-Volume |
$sourceHost = "Hyperv-one" | |
$destHost = "Hyperv-two" | |
# Collect list of VMs to move | |
$groups = Get-ClusterNode $sourceHost | Get-ClusterGroup | ?{ $_ | Get-ClusterResource | ?{ $_.ResourceType -like "Virtual Machine" } } | |
# Move VMs to new host in failover cluster | |
foreach ( $group in $groups ) { $group | Move-ClusterVirtualMachineRole -Node $destHost } |
Add-WindowsFeature -name FS-FileServer -IncludeManagementTools | |
Add-WindowsFeature -name Failover-Clustering -IncludeManagementTools | |
Add-WindowsFeature -name Hyper-V -IncludeManagementTools |
get-vm | select -ExpandProperty networkadapters | select vmname, macaddress, switchname, ipaddresses |