Skip to content

Instantly share code, notes, and snippets.

View rossarioking's full-sized avatar

Rossario King rossarioking

  • Dublin
View GitHub Profile
@rossarioking
rossarioking / AWS_IAM_Users_And_Groups.txt
Last active October 2, 2019 21:24
Creating an IAM User and Security Group #AWS
\\Create an AWS IAM User Account
aws iam create-user --user-name Robert
\\Generates an Access & Secret Access Key for User Account
aws iam create-access-key --user-name Robert
\\Creates an IAM Security Group
aws iam create-group --group-name Administrators
\\Adds User account to IAM Group
@rossarioking
rossarioking / WindowsUpdatesByPassWSUS.ps1
Last active May 27, 2024 03:04
PowerShell Script to Bypass Local WSUS Server and Pull Updates Straight from the Internet. #PowerShell
# Stop the Windows Update service
Stop-Service -Name wuauserv
# Remove the registry key
Remove-Item HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate -Recurse
# Start the Windows Update service
Start-Service -name wuauserv
@rossarioking
rossarioking / Enable Dark Mode For Windows Explorer.ps1
Last active October 6, 2019 23:48
Enables Dark Mode For Windows Explorer in Windows 10 #PowerShell
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0
@rossarioking
rossarioking / Download RSAT Tools for Windows 10 1809_1903.ps1
Created October 6, 2019 23:51
Download RSAT Tools for Windows 10 1809_1903 #PowerShell
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online
@rossarioking
rossarioking / CreateFolderandFiles.vbs
Created October 7, 2019 16:37
Creating Basic Folders and Files with VBScript #VBScript
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)
@rossarioking
rossarioking / CreateDomainStructure.vbs
Created October 7, 2019 16:41
This Visual Basic Script creates a Basic Organisational Domain Structure. #VBScript
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"
@rossarioking
rossarioking / DisableAdminShare.bat
Created October 7, 2019 16:44
Disables Administrative Share on Windows OS. Reboot after running to invoke RegEdit.
Reg Add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters /v AutoShareWks /t REG_DWORD /d 0
@rossarioking
rossarioking / BasicS3.txt
Last active October 7, 2019 23:16
Working AWS S3 Buckets #AWS
\\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
@rossarioking
rossarioking / Get-Commands.ps1
Created March 7, 2020 18:01
Working with PowerShell Get-Commands #PowerShell
#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
@rossarioking
rossarioking / Transcript.ps1
Created March 7, 2020 18:08
Creating PowerShell Transcripts #PowerShell
#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.