Powershell SMB

Windows Server 2012 R2 & 2016: PowerShell methods

Detect: SMB v1
Get-WindowsFeature FS-SMB1

Disable:
Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol

Enable:
Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol

Detect: SMB v2/v3
Get-SmbServerConfiguration | Select EnableSMB2Protocol

Disable:
Set-SmbServerConfiguration -EnableSMB2Protocol $false

Enable:
Set-SmbServerConfiguration -EnableSMB2Protocol $true

Windows 8.1 and Windows 10: PowerShell method

Detect: SMB v1 Protocol
Get-WindowsOptionalFeature –Online –FeatureName SMB1Protocol

Disable:
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

Enable:
Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

Detect: SMB v2/v3 Protocol
Get-SmbServerConfiguration | Select EnableSMB2Protocol

Disable:
Set-SmbServerConfiguration –EnableSMB2Protocol $false

Enable:
Set-SmbServerConfiguration –EnableSMB2Protocol $true

Read more about at Microsoft

Windows Task Scheduler

Are you looking at how to create a Task in Windows Task Scheduler?
We will take a look at how to create one, and we will create a task that will reboot windows at a specific time.

So let’s start

Start Task Scheduler
(press start type task, you should get search on Task Scheduler)

To the right, you have a sidebar, and there you can find Create basic Task, pick it. Next step, name the task and write a description that can be good for the next person to understand what it is.
Next, tell when it should be triggered

The next option is will be based on your open picked, if you pick for example Daily, then you get the option to pick when you want it to run, we can say 06:00 every day with start next day.

Then Next after that.

Pick Start a program

First-row here you point out the script or program you want to run.
Second-row you can add an argument to script or program
In our case, we have added /r

/r = reboot
or else the machine will shut down and not start up until you power it on.

Next, then Finished.


There you go now you have created a Windows Task Scheduler
That will reboot at a specific time.

HEVC encoded on PC

Are you looking for how to convert HEVC to something else?

First of all, what is HEVC: High-Efficiency Video Coding (HEVC), also known as H.265 and MPEG-H Part 2.
Its a video compression standard, designed as a successor to the widely used Advanced Video Coding (AVC, H.264, or MPEG-4 Part 10).
In comparison to AVC, HEVC offers from 25% to 50% better data compression at the same level of video quality,
you can read more about here.


Do you have iPhone or iPad and its storing image in this format and you do not want that you can change it.
You can read more about it here.


It has been hard to find any free application that can do this convert at the moment. Rumors says that iMac och Macbook might have some build-in function that can help you with this for free but has not verified it yet

In my search, I came across Wondershare UniConverter and it can do the convert so, for example, a Synology that not support HEVC can play does move, the same quality but without HEVC encoded.
You try this application on your own risk, and to do full converts it will cost.


If you were looking for HEIC and not HEVC check this post out

Hope this information could be too some good for you and can help you with what you are looking for.

HEIC encoded on PC

Are you looking for how to convert HEIC to something else?

First of what is HEIC: High Efficiency Image Coding (HEIC), is a file format for individual images and image sequences. It was developed by the Moving Picture Experts Group (MPEG) and is defined by MPEG-H Part 12 (ISO/IEC 23008-12). The MPEG group claims that twice as much information can be stored in a HEIF image as in a JPEG image of the same size, resulting in a better quality image.
You can read more about it here.

Windows have released support for it in Windows 10 in Microsoft Store that is free


Do you have iPhone or iPad and its storing image in this format and you do not want that you can change it.
You can read more about it here.

But if you have file that is already in that format and needs help with convert it. I have tried it and it works very well when I tried it.
iMazing HEIC Converter
You use this software on your own risk


If you were looking for HEVC and not HEIC check this post out

Hope this information could be too some good for you and can help you with what you are looking for.

disable windows 10 first login animation

Are you tied to the first login animation in Windows 10?
You can remove it with a simple registry key.

You need to find or create this registry key:
Source: HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Key: EnableFirstLogonAnimation
Type: DWORD
Value: 0

Or you can use this PowerShell script so will it fix it for you.

$registryPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"

$Name = "EnableFirstLogonAnimation"

$value = "0"

IF(!(Test-Path $registryPath))

  {

    New-Item -Path $registryPath -Name $Name -Force | Out-Null

    New-ItemProperty -Path $registryPath -Name $name -Value $value -Type DWORD -Force | Out-Null}


 ELSE {

   New-ItemProperty -Path $registryPath -Name $name -Value $value -Type DWORD -Force | Out-Null}