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
az vm create \ | |
--resource-group learn-eb27549d-6f40-4a1c-852e-edc60ea4e9b8 \ | |
--name my-vm \ | |
--image UbuntuLTS \ | |
--admin-username azureuser \ | |
--generate-ssh-keys |
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
#!/bin/bash | |
# Get Root Privilages | |
sudo su | |
# Install httpd (Amazon Linux v2) | |
yum update -y | |
yum install -y httpd.x86_64 | |
systemctl start httpd.service |
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
# Get-Member - Gets Properties and Methods of Objects - Used to see what makes up an Object. | |
Get-Service | Get-Member | |
TypeName: System.Service.ServiceController#StartupType | |
Name MemberType Definition | |
---- ---------- ---------- | |
Name AliasProperty Name = ServiceName |
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 Folder where transcript files will be saved, | |
md C:\Transcripts | |
#This captures all of the console data and outputs it to a transcript file. | |
Start-Transcript -path .\Transcripts\Mytranscript.txt -append | |
# All Data inbetween these commands will be written to the trascript file. | |
#Stops recording Transcript input. |
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
#Gets List of Commands Containing "DNS" | |
Get-Command -Verb Get -Noun *DNS* | |
CommandType Name Version Source | |
----------- ---- ------- ------ | |
Alias Get-DnsServerRRL 2.0.0.0 DnsServer | |
Function Get-DAClientDnsConfiguration 3.0.0.0 RemoteAccess | |
Function Get-DhcpServerDnsCredential 2.0.0.0 DhcpServer | |
Function Get-DhcpServerv4DnsSetting 2.0.0.0 DhcpServer |
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
\\Creating an S3 Bucket | |
aws s3 mb s3://thisismybucket | |
\\Removing an S3 Bucket | |
aws s3 rb s3://thisismybucket | |
\\Removing an S3 Bucket containing files | |
aws s3 rb s3://thisismybucket --force | |
\\Copying a local file to an S3 Bucket |
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
Option Explicit | |
Dim objDomain,objStudentOu,objCreativeMOU,objGamesOU,objMusicOU,objComputingOU | |
dim strStudents,strCreativeM,strMusic,strComputing,strGames | |
strStudents = "ou=Students" | |
strComputing = "ou=Computing" | |
strMusic = "ou=Music" | |
strGames = "ou=Games" | |
strCreativeM = "ou=CreativeMedia" |
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
Option Explicit | |
Dim objFileSystemObject, objParentFolder, objChildFolder, objFile | |
'Create an instance of the file System Object | |
Set objFileSystemObject = CreateObject("Scripting.FileSystemObject") | |
'Create Monthly report folder (Parent Folder) |