Use Game Bar to capture game clips and screenshots on Windows
Record game clips and take screenshots. While you’re playing a game, press the Windows logo key + G to open Game Bar. Choose Widget Menu > Capture. Choose Start recording, Take screenshot, or Record last…. Record last… turns the most recent moments of play into a game clip when background recording is turned on.