Rohit Sharma, Author at Windows Latest https://www.windowslatest.com/author/rohit/ Your source for all things Microsoft Thu, 26 Dec 2024 10:12:38 +0000 en-US hourly 1 Hands on: Microsoft is building an AI Shell for Windows 11 command line https://www.windowslatest.com/2024/12/26/hands-on-microsoft-is-building-an-ai-shell-for-windows-11-command-line/ https://www.windowslatest.com/2024/12/26/hands-on-microsoft-is-building-an-ai-shell-for-windows-11-command-line/#comments Thu, 26 Dec 2024 10:06:10 +0000 https://www.windowslatest.com/?p=77774 Microsoft recently announced the public preview of AI Shell, a command-line utility that brings generative AI capabilities directly to Windows PowerShell. We tested the feature on Windows 11.

The post Hands on: Microsoft is building an AI Shell for Windows 11 command line appeared first on Windows Latest

]]>
Microsoft recently announced the public preview of AI Shell, a command-line utility that brings generative AI capabilities directly to Windows PowerShell. Interestingly, AI Shell shares many similarities with the Terminal Chat that Microsoft shipped in Windows 11 (Canary Build) in late October.

For example, the core concepts of both tools are quite the same. AI Shell and Terminal Chat are designed to make the command line interactions easier to understand and can help you write commands. The AI integration is also designed to provide explanations and suggestions while help you fix errors.

For the time being, AI Shell comes with only two AI agents, Azure OpenAI and Copilot in Azure, but its framework allows you to create and integrate other AI agents as well. It is a great thing as you can pick the LLM (large language model) that works best for your specific needs.

I installed the AI Shell on my PC, and I must say, the installation process was a breeze. All you need is Windows 10 or later and PowerShell 7.4.6 installed on your machine, and you’re good to go.

If you meet these requirements, you can run the following script to install AI Shell on your computer:

Invoke-Expression “& { $(Invoke-RestMethod ‘https://aka.ms/install-aishell.ps1’) }”

Hands on with AI Shell

Once installed, the next step is to configure it.

Configuration was also quite easy as I was using OpenAI, and it just required adding my API keys for configuration.

To do this, open PowerShell, run the Start-AIShell command and select your preferred agent.

Next, run the /agent config command in the AI Shell to open the configuration file. Here, you need to uncomment the following section and then add your API keys.

Configuring AI Shell using OpenAI API keys

Next, save the file, and that’s it. You’ve successfully configured AI Shell.

Once everything is configured, you can start communicating with it.

I started asking very basic questions like “What you can do?” And it gave me a basic idea of its features.

What AI Shell can do

Next, I asked, “I have a lot of files on my PC. I want to get a list of files that are above 200 MB in size along with the details about their specific locations.”

It gave me the following output:

Get-ChildItem -Path “C:\Path\To\Search” -Recurse -File | Where-Object { $_.Length -gt 200MB } | Select-Object FullName, Length

It prompted me to replace the path with the directory I wanted to scan. I told it, “I want to scan my entire PC for large files,” and it gave me an updated script with the C drive selected.

But when executed, the output included directories with access denied, and I couldn’t see the file size.

Directories with Access Denied - AI Shell Command

So, I asked it to exclude directories with denied access and show the file size in the first column, followed by the file name and directory. For this, it gave me the following script, and when I executed it in the PowerShell, I received the desired results.

Get-ChildItem -Path “C:\” -Recurse -File -ErrorAction SilentlyContinue | Where-Object { $_.Length -gt 200MB } | Select-Object @{Name=”SizeMB”; Expression={[math]::Round($_.Length / 1MB, 2)}}, FullName, DirectoryName

Files above 200 MB size

Next, I asked AI Shell if it could generate Python code. It prompted yes, so I asked it to write Python code for a basic calculator, and it did. And the Python script also worked as expected.

AI Shell Calculator

In our tests, Windows Latest observed that you can also use it to get explanations of cmdlets, ask it to write or refine PowerShell scripts, or just as a regular AI assistant.

Now, let’s quickly talk about the best things about AI Shell for Windows 11 apart from the ones that I have already explained –

  • The /code post command allows you to post generated code from the AI shell to the PowerShell terminal.
  • The /code copy command helps you copy the code generated.
  • The resolve-error command in the PowerShell terminal sends the error to the AI Shell windows to find a resolution. This is again very similar to Windows Terminal Chat, which also uses ChatGPT.
  • The Invoke-AIShell command in the PowerShell terminal, along with the code or without the code, will help you send queries to the AI Shell.

So, that was my take on AI Shell. Overall, it is a great tool, and considering it is just a public preview, we may see some new features in it.

What are your thoughts on this? Let us know in the comment section below.

The post Hands on: Microsoft is building an AI Shell for Windows 11 command line appeared first on Windows Latest

]]>
https://www.windowslatest.com/2024/12/26/hands-on-microsoft-is-building-an-ai-shell-for-windows-11-command-line/feed/ 0
Windows 11 now lets you easily change camera FPS (frame rate), quality and more https://www.windowslatest.com/2024/12/23/windows-11-now-lets-you-easily-change-camera-fps-frame-rate-quality-and-more/ https://www.windowslatest.com/2024/12/23/windows-11-now-lets-you-easily-change-camera-fps-frame-rate-quality-and-more/#comments Mon, 23 Dec 2024 17:40:57 +0000 https://www.windowslatest.com/?p=77681 Windows 11 now lets you easily change camera FPS (frame rate), quality and more. These features are now rolling out to testers and should arrive in the stable channel soon.

The post Windows 11 now lets you easily change camera FPS (frame rate), quality and more appeared first on Windows Latest

]]>
Microsoft recently introduced advanced camera settings on Windows 11 that allow you to play with a range of camera settings like brightness, contrast, sharpness, and more. For example, you can open Settings > Bluetooth & Devices > Camera and then access features like “Zoom, Brightness, Contrast,” and more. But what if you could change the frame rate?

It’s worth noting that these configuration options are not available for all the cameras. For example, we tested DJI Osmo Action 3 on Windows 11 23H2 Pro (Build Number: 22631.4602), and we couldn’t find these toggles to change brightness and other options. You can see in the below screenshot these features are not offered to everyone.

Camera Configuration Options Not Appearing

On the other hand, when Windows Latest tested the camera settings page on an HP Spectre, we spotted all the advanced settings.

This is a normal and expected behavior. Microsoft has also explicitly confirmed that some cameras won’t appear on the Camera Settings page.” So, although it is a great add-on to the camera features, its availability is quite limited.

That said, Microsoft is working to improve the camera experience even further.

In the recent Windows 11 Dev Channel Build 26120.2702, Microsoft has two Advanced camera options that give you two options:

  • Multi-app Camera: As the name suggests, this allows multiple Windows 11 apps to access the camera at the same time. Previously, Windows blocked apps from accessing the camera if camera was used by another app, such as Windows Camera.
  • Basic Camera: This allows you to debug your camera. When camera doesn’t work, you can switch to basic camera and see if the camera is working or not. This turns off all OEM related features and enforces the system’s basic camera.

Along with that, Microsoft, in its recent blog post, mentioned that they’re planning to introduce a third option here, allowing you to select camera resolution and frame rate.

While testing the Windows 11 Dev Channel Build, Windows Latest spotted that it is already possible to change camera resolution and frame rates. Here’s a screenshot from our virtual machine confirming that the frame rate toggle is indeed in the works:

Advanced Camera Options

As shown in the above toggle spotted by Windows Latest, you can now open Advanced camera options, modify Media type, and choose the preferred resolution. It’s also possible to choose the FPS associated with the media type.

In our case, we have two options: 1920×1080 (16:9), and 1280×720 (16:9) with 30 FPS.

The good thing is that this new configuration option is available for all the cameras, unlike the recent one that allows tweaking brightness, sharpness, and other settings.

What do you still dislike about camera controls in Windows 11? Let us know in the comments below.

The post Windows 11 now lets you easily change camera FPS (frame rate), quality and more appeared first on Windows Latest

]]>
https://www.windowslatest.com/2024/12/23/windows-11-now-lets-you-easily-change-camera-fps-frame-rate-quality-and-more/feed/ 0