Posts

Showing posts from September, 2022

GCP Snapshot with Conditions(on the 9th snapshot delete the oldest and retain only 8)

Image
1. #======================================================================================== # #Run Powershell as Administrator for the Extraction of Log files # #========================================================================================   param ( [ switch ] $Elevated )   function Test-Admin {     $currentUser = New-Object Security.Principal.WindowsPrincipal $( [ Security.Principal.WindowsIdentity ]:: GetCurrent())     $currentUser . IsInRole( [ Security.Principal.WindowsBuiltinRole ]:: Administrator) }   if (( Test-Admin ) -eq $false )   {     if ( $elevated ) {         # tried to elevate, did not work, aborting     } else {         Start-Process powershell.exe -Verb RunAs -ArgumentList ( '-noprofile -noexit -file "{0}" -elevated' -f ( $myinvocation . MyCommand . Definition))     }  ...

Basic Internet Troubleshooting(Windows)

Image
PING - in short for  Packet Internet or Inter-Network Groper according to techtarget  is a basic Internet program that allows a user to test and verify if a particular destination IP address exists and can accept requests in computer network administration 1. Hold down the Window Key and Press down R to open  Run 2. In the Run search  cmd  to open the Command Prompt 3. Type " ping 8.8.8.8 " to check if your connection can reach the google dns or type " ping google " to check if your connection can reach the domain of google. (note that 8.8.8.8 can be changed to other public dns servers or your ISP's dns and google can also be changed to other sites such yahoo, facebook and etc. incase google ran into problem) Ping Replies: - If your ping has a message something like this: Reply from 8.8.8.8: bytes=32 time=30ms TTL=54 Then you have a good connection - If your ping has a message something like this: Request timed out. Request timed out. Then you have to report i...

Internet Basics

  What is an Internet? Short for Inter-Net also considered as Information Superhighway which is according to Oxford is an extensive electronic network used for the rapid transfer of information such as sound, video, and graphics. Some basic Terminologies while using the Internet WWW  - World Wide Web which is the system uses to access the internet URL  - Uniform Resource Locator which according to techtarget is  a unique identifier used to locate a resource on the Internet. Browser  - an app in which we use in order to access the internet by populating the URL with sites such as google.com, yahoo.com and many more. Google Chrome, Mozilla Firefox are one of the many examples of a browser. WAN  - Wide Area Network according to cloudfare  i s a large computer network that connects groups of computers over large distances. References: https://www.tsl.texas.gov/sites/default/files/public/tslac/ld/ld/LibrariesLiteracy/2-2%20Internet%20Basics%2...