IT Questions and Answers :)

Thursday, December 3, 2020

What is the keyboard shortcut for locking a PC on Windows XP or later?

What is the keyboard shortcut for locking a PC on Windows XP or later?

  • Win + L
  • Ctrl + Alt + Del
  • Win + S
  • Win + D 

 
What is the keyboard shortcut for locking a PC on Windows XP or later?

EXPLANATION

Windows is chock full of helpful and fast keyboard shortcuts. One area that many end users struggle with is properly securing their workstations when away from their desk. IT Professionals often overcome this through AFK timeouts in group policy, however it is always helpful to educate your users on ways to help them help themselves. Most users are familiar with using their mouse to navigate their start menu to the "Lock" option, and some more experienced users might still be using "Ctrl + Alt + Del," followed by either the spacebar, or a click of the "Lock" option, however "Win + L" is a quick and easy solution that most can remember when you remind them that they are "Locking" their "Windows" with a "Key." 

https://en.wikipedia.org/wiki/Windows_key#Windows_XP

 

Share:

Monday, November 30, 2020

In PowerShell, which of the following expressions round a floating point number contained in the variable $Num to 2 decimal places?

In PowerShell, which of the following expressions round a floating point number contained in the variable $Num to 2 decimal places?

  • Get-RoundNumber -Number $Num -Precision 2
  • $Num -round 2
  • $Num.Round(2)
  • [Math]::Round($Num, 2) 
 
In PowerShell, which of the following expressions round a floating point number contained in the variable $Num to 2 decimal places?

EXPLANATION

As of PowerShell version 5, there is no native PowerShell cmdlet to round numbers; additionally, floating point types do not contain a method to accomplish this.  The best way to round a number to a certain precision is to utilize the .NET framework's System.Math class, which contains the static method Round().

Technically, Math.Round() only accepts numbers of the type double or decimal, but passing it a float (also known as a single) will automatically convert that number to a double for this purpose.

The above example and solution uses the following definition of Round():

static double Round(double value, int digits)

Additional documentation on the System.Math.Round() method:https://msdn.microsoft.com/en-us/library/system.math.round(v=vs.110).aspx
 
 
Share:

Wednesday, November 25, 2020

Which gnu/linux command lets you see the latest logged in users to your server ?

Which gnu/linux command lets you see the latest logged in users to your server ?

  • sudo
  • tcpdump
  • last
  • netstat 

 

Which gnu/linux command lets you see the latest logged in users to your server ?

EXPLANATION

https://www.centoshowtos.org/commands/last/

SOURCE

https://www.centoshowtos.org/commands/last/
Share:

Monday, November 23, 2020

What are the two phases of an IPSEC VPN?

What are the two phases of an IPSEC VPN?

  • CRYPTO and POLICY
  • IKE and CRYPTO
  • IKE and IPSEC
  • IKE and JONESEY 

 
What are the two phases of an IPSEC VPN?

EXPLANATION

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&...

Configure Phase 2 of the IPsec VPN tunnel.

  1. (Optional) Configure a custom IPsec Phase 2 proposal. This step is optional, as you can use a predefined IPsec Phase 2 proposal set (Standard, Compatible, or Basic).
  2. Configure an IPsec policy that references either your custom IPsec Phase 2 proposal or a predefined IPsec Phase 2 proposal set. Specify perfect forward secrecy (PFS) keys.
  3. Configure an IPsec VPN tunnel that references both the IKE gateway and the IPsec policy. Specify the proxy IDs to be used in Phase 2 negotiations.

    (For route-based VPNs) Bind the secure tunnel interface st0.x to the IPsec VPN tunnel.

 SOURCE

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0ahUKEwijve__s_vXAhUs3IMKHfv7C1gQFggyMAI&url=http%3A%2F%2Fwww.ciscopress.com%2Farticles%2Farticle.asp%3Fp%3D24833%26seqNum%3D6&usg=AOvVaw0WF2U-qwYgHjTvkVu2BzSZ

 

Share:

Thursday, November 19, 2020

What Type of Hypervisor is VMware ESXi

What Type of Hypervisor is VMware ESXi

  • Type 2
  • Type 3
  • Type 1
  • Type 11 

 

What Type of Hypervisor is VMware ESXi

EXPLANATION

Type 1 hypervisor running directly on the hardware with VM resources provided by the hypervisor such as VMware ESXi and Citrix XenServer

Type 2 hypervisor runs on a host operating system to provide virtualization services such as VMware Workstation or Oracle VirtualBox running on Microsoft Windows, or Debian Linux.

For more information on Hypervisors
https://en.wikipedia.org/wiki/Hypervisor


SOURCE

https://en.wikipedia.org/wiki/VMware_ESXi
Share:

Friday, November 13, 2020

Where do stratum 1 NTP servers get time from?

Where do stratum 1 NTP servers get time from?

  • Averaging time from other trusted sources
  • A stratum 2 clock
  • A reference clock
  • They generate it internally 

Where do stratum 1 NTP servers get time from?

 

EXPLANATION

Stratum 1 NTP servers are the highest, most trusted order of NTP servers. They receive their time by being directly connected to a reference clock, typically an atomic clock. Reference clocks are also referred to as stratum 0 devices.


http://support.ntp.org/bin/view/Servers/ServerStratum

Share:

Thursday, November 12, 2020

Which of the following PowerShell cmdlets creates a new Active Directory user account?

Which of the following PowerShell cmdlets creates a new Active Directory user account?

  • New-ADUser
  • Add-ADUser
  • Create-ADUser
  • Make-ADUser 

 
Which of the following PowerShell cmdlets creates a new Active Directory user account?

EXPLANATION

The New-ADUser cmdlet creates a new Active Directory user. You can set commonly used user property values by using the cmdlet parameters.

 

 

Share:

Popular Posts