IT Questions and Answers :)

Wednesday, January 15, 2020

What secure port does PowerShell remote utilize by default?

What secure port does PowerShell remote utilize by default?

  • 445
  • 5927
  • 5986
  • 443 
What secure port does PowerShell remote utilize by default?

 

EXPLANATION


By default PowerShell will use the following ports for communication (They are the same ports as WinRM)
TCP/5985 = HTTP
TCP/5986 = HTTPS

SOURCE

https://blogs.technet.microsoft.com/christwe/2012/06/20/what-port-does-powershell-remoting-use/
Share:

Tuesday, January 14, 2020

What does HTTP Error 451 mean?

What does HTTP Error 451 mean?

  • Request timeout
  • Unavailable for legal reasons
  • Request header fields too large
  • Proxy authentication required 

EXPLANATION

HTTP 451: Unavailable For Legal Reasons is an error status code of the HTTP protocol that displays when the user requests an illegal resource, such as a web page censored by a government. 
Examples of situations where an HTTP 451 error code could be displayed include web pages deemed a danger to national security, or web pages deemed to violate copyright, privacy, blasphemy laws, or any other law or court order.
The number 451 is a reference to Ray Bradbury's 1953 dystopian novel Fahrenheit 451, in which books are outlawed.
https://en.wikipedia.org/wiki/HTTP_451
Share:

Monday, January 6, 2020

Which CODEC is directly related to (P)redictive frames and (I)ntra frames?

Which CODEC is directly related to (P)redictive frames and (I)ntra frames?

  • RTSP
  • MJPEG
  • NTSC
  • H.264 

EXPLANATION

compression method used by the MPEG standard. In a motion sequence, individual frames of pictures are grouped together (called a group of pictures, or GOP) and played back so that the viewer registers the video��s spatial motion. P-frames follow I-frames and contain only the data that have changed from the preceding I-frame (such as color or content changes). Because of this, P-frames depend on the I-frames to fill in most of the data.
P-frames and B-frames are also referred to as delta frames.
Also see I-frame and B-frame.
 

MPEG4 is going to be more space-efficient, but given enough space MJPEG will look just as good. The important difference is that editing MJPEG is easier because every frame is a keyframe, so you can cut and paste at any point. Editing MPEG4 is more difficult because of the alpha frames (the "difference" frames that come between keyframes). If your friend is just recording the video to watch later without doing anything to it, then she should just record to MPEG4. If this for home movies that she'll be messing with, then MJPEG.

Typically, pictures (frames) are segmented into macroblocks, and individual prediction types can be selected on a macroblock basis rather than being the same for the entire picture, as follows:
  • I-frames can contain only intra macroblocks
  • P-frames can contain either intra macroblocks or predicted macroblocks
  • B-frames can contain intra, predicted, or bi-predicted macroblocks
Furthermore, in the H.264 video coding standard, the frame can be segmented into sequences of macroblocks called slices, and instead of using I, B and P-frame type selections, the encoder can choose the prediction style distinctly on each individual slice. Also in H.264 are found several additional types of frames/slices:


  • SI‑frames/slices (Switching I): Facilitates switching between coded streams; contains SI-macroblocks (a special type of intra coded macroblock).
  • SP‑frames/slices (Switching P): Facilitates switching between coded streams; contains P and/or I-macroblocks
  • Multi‑frame motion estimation (up to 16 reference frames or 32 reference fields)
Multi‑frame motion estimation increases the quality of the video, while allowing the same compression ratio. SI and SP frames (defined for the Extended Profile) improve error correction. When such frames are used along with a smart decoder, it is possible to recover the broadcast streams of damaged DVDs.
Intra-frame coding is used in video coding (compression). It is part of an intra-frame codec like ... It is one of the two classes of predictive coding methods in video coding. ... The temporally coded predicted frames (e.g. MPEG's P- and B-frames) may use intra- as ... Wikimedia Commons has media related to Intra-frame coding.

 
Usually only few of the spatially closest known samples are used for the extrapolation. Formats that operate sample by sample like Portable Network Graphics (PNG) can usually use one of four adjacent pixels (above, above left, above right, left) or some function of them like e.g. their average. Block-based (frequency transform) formats prefill whole blocks with prediction values extrapolated from usually one or two straight lines of pixels that run along their top and left borders.


The term intra-frame coding refers to the fact that the various lossless and lossy compression techniques are performed relative to information that is contained only within the current frame, and not relative to any other frame in the video sequence. In other words, no temporal processing is performed outside of the current picture or frame. Non-intra coding techniques are extensions to these basics. It turns out that this block diagram is very similar to that of a JPEG still image video encoder, with only slight implementation detail differences.

Inter frame has been specified by the CCITT in 1988–1990 by H.261 for the first time. H.261 was meant for teleconferencing and ISDN telephoning.

 

Share:

Which chkdsk.exe switch fixes errors detected on disk and requires dismounting the volume?

Which chkdsk.exe switch fixes errors detected on disk and requires dismounting the volume?

  • /F
  • /R
  • /X
  • /C 
Which chkdsk.exe switch fixes errors detected on disk and requires dismounting the volume?

EXPLANATION

Checks the file system and file system metadata of a volume for logical and physical errors. If used without parameters, chkdsk displays only the status of the volume and does not fix any errors. If used with the /f, /r, /x, or /b parameters, it fixes errors on the volume.
Important
Membership in the local Administrators group, or equivalent, is the minimum required to run chkdsk. To open a command prompt window as an administrator, right-click Command prompt in the Start menu, and then click Run as administrator.
Important
Interrupting chkdsk is not recommended. However, canceling or interrupting chkdsk should not leave the volume any more corrupt than it was before chkdsk was run. Rerunning chkdsk checks and repairs any remaining corruption on the volume.
Important
Note: Chkdsk can be used only for local disks. The command cannot be used with a local drive letter that has been redirected over the network.
For examples of how to use this command, see Examples.

Syntax

chkdsk [<Volume>[[<Path>]<FileName>]] [/f] [/v] [/r] [/x] [/i] [/c] [/l[:<Size>]] [/b]  

Parameter Description
<Volume> Specifies the drive letter (followed by a colon), mount point, or volume name.
[<Path>] Use with file allocation table (FAT) and FAT32 only. Specifies the location and name of a file or set of files that you want chkdsk to check for fragmentation. You can use the ? and * wildcard characters to specify multiple files.
/f Fixes errors on the disk. The disk must be locked. If chkdsk cannot lock the drive, a message appears that asks you if you want to check the drive the next time you restart the computer.
/v Displays the name of each file in every directory as the disk is checked.
/r Locates bad sectors and recovers readable information. The disk must be locked. /r includes the functionality of /f, with the additional analysis of physical disk errors.
/x Forces the volume to dismount first, if necessary. All open handles to the drive are invalidated. /x also includes the functionality of /f.
/i Use with NTFS only. Performs a less vigorous check of index entries, which reduces the amount of time required to run chkdsk.
/c Use with NTFS only. Does not check cycles within the folder structure, which reduces the amount of time required to run chkdsk.
/l[:<Size>] Use with NTFS only. Changes the log file size to the size you type. If you omit the size parameter, /l displays the current size.
/b NTFS only: Clears the list of bad clusters on the volume and rescans all allocated and free clusters for errors. /b includes the functionality of /r. Use this parameter after imaging a volume to a new hard disk drive.
/scan NTFS only: Runs an online scan on the volume.
/forceofflinefix NTFS only: (Must be used with "/scan"). Bypass all online repair; all defects found are queued for offline repair (i.e. "chkdsk /spotfix").
/perf NTFS only: (Must be used with "/scan"). Uses more system resources to complete a scan as fast aspossible. This may have a negative performance impact on other tasks running on the system.
/spotfix NTFS only: Runs spot fixing on the volume.
/sdcleanup NTFS only: Garbage collect unneeded security descriptor data (implies /F).
/offlinescanandfix Runs an offline scan and fix on the volume.
/freeorphanedchains FAT/FAT32/exFAT only: Frees any orphaned cluster chains instead of recovering their contents.
/markclean FAT/FAT32/exFAT only: Marks the volume clean if no corruption was detected, even if /F was not specified.
/? Displays help at the command prompt.

Share:

You cannot use IE or Chrome to browse both your intranet and the internet. What is most likely wrong?

You cannot use IE or Chrome to browse both your intranet and the internet. What is most likely wrong?

  • You have a static IP on your computer or the wrong IP
  • IE or Chrome is having a problem
  • No default gateway or your gateway is having a problem
  • No DNS servers assigned or DNS is having a problem

EXPLANATION

If you can’t connect to certain web sites using your favorite web browser even though you have an Internet connection, there could be several reasons why. Here are a few things you can try to clear up the problem.
Symptom:
  • In Google Chrome you may get an “Unable to connect to the Internet” message.
  • In Firefox you get “Firefox can’t establish a connection to the server at website
  • In Internet Explorer you get “Page cannot be displayed” error.

This article assumes you have troubleshot the basics such as the URL is typed correctly, cache files have been cleared and you have a working internet connection. 

1. Flush the DNS Cache

In some cases, flushing the DNS cache may help. You can flush the DNS by holding down the Windows key on your keyboard and pressing R to bring up the Run box. Then type ipconfig /flushdns and press Enter.

2. Reset TCP/IP

  1. Select “Start“, and type “CMD
  2. Right-click “Command Prompt“, then choose “Run as Administrator“.
  3. Select “Yes” on the User Account Control box.
  4. From the command prompt, type the following, then press “Enter“:
    • netsh int ip reset
Restart your computer, then try to see if you can access the Internet from a browser now. Hopefully, you can.



2. DNS, IP & Gateway

  1. Make Sure Correct Gateway, DNS and IP address configured on the host machine.

 

 

Share:

Popular Posts