This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--- Create New Volume ---# | |
Get-Disk | Where partitionstyle -eq 'raw' | | |
Initialize-Disk -PartitionStyle MBR -PassThru | | |
New-Partition -AssignDriveLetter -UseMaximumSize | | |
Format-Volume -FileSystem NTFS -NewFileSystemLabel "disk2" -Confirm:$false | |
#--- Expand Disk ---# | |
$servers = "myserver1","myserver2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\> Invoke-WebRequest https://api.godaddy.com/v1/domains/clintcolding.com/records/ -Method Get -Headers $Headers | ConvertFrom-Json | |
type name data ttl | |
---- ---- ---- --- | |
A @ 192.30.252.153 600 | |
A @ 192.30.252.154 600 | |
CNAME email email.secureserver.net 3600 | |
CNAME ftp @ 3600 | |
CNAME www @ 3600 | |
CNAME _domainconnect _domainconnect.gd.domaincontrol.com 3600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\> Invoke-WebRequest https://api.godaddy.com/v1/domains/clintcolding.com/records/ -Method Get -Headers $Headers | |
StatusCode : 200 | |
StatusDescription : OK | |
Content : [{"type":"A","name":"@","data":"192.30.252.153","ttl":600},{"type":"A","name":"@","data":"19 | |
2.30.252.154","ttl":600},{"type":"CNAME","name":"email","data":"email.secureserver.net","ttl | |
":3600},{"type":... | |
RawContent : HTTP/1.1 200 OK | |
Access-Control-Allow-Credentials: true | |
Vary: Origin,Accept-Encoding |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$apiKey = '2s7Yn1f2dW_W5KJhWbGwuLhyW4Xdvgb2c' | |
$apiSecret = 'oMmm2m5TwZxrYyXwXZnoN' | |
$Headers = @{} | |
$Headers["Authorization"] = 'sso-key ' + $apiKey + ':' + $apiSecret |
NewerOlder