Thursday, October 1, 2020

Set Network Adapter Profile to Private

For Windows 2016, it does not seems like there is a clear way to do it from GUI, so i have to do it using the cmdlet.

First list down all the network adapter, important thing is the InterfaceIndex.


Then you can execute the cmdlet below to set the adapter profile to private. In this example, i am setting SLOT 4 Port 2 which has the InterfaceIndex of 19

 

Tuesday, September 29, 2020

Create local user using powershell script

 First of all, prepare the user list as below and save it as users.csv file


Create a powershell script with the following code


The scripts will first need to convert the password string from the csv file into a secureString. This is necessary for New-LocalUser cmdlet. After that, the script will set PasswordNeverExpires option as well as add those user into Administrators group.

I am using this script for my test setup which need a lot of dummy users. For production environment, you can actually create random password instead of specifying password in the users.csv file and set the "-ChangePasswordAtLogon $true" option. And obviously, you can also change the User group to "Users" group instead of "Administrators" group.

Thursday, June 11, 2020

Check Point Network SSL Extender Not Working After Windows 10 version 2004 Update

Experience this since i updated my Windows to version 2004. Have to uninstall and reinstall Check Point Mobile Access Portal Agent and Check Point Network SSL Extender to solve this issue. 

Monday, May 25, 2020

Download file using Curl

To download a file from URL, just use the command below


Example above showing how to download file from URL and using the same file name from the download source. If you want to specify your own file name, you can use -o option.


To download file with redirect



Monday, May 18, 2020

Windows Update Error 0x80200054

According to this link, 0x80200054 means the download did not complete within the maximum download time. And due to the size of the download, you could probably stuck on this update. One way to solve this is to download the update directly from Microsoft and apply the update after you download.

As you can see from the screenshot below, The update complaint about not able to install KB4550947 update due to 0x80200054 error.


With the KB info, we can go to this link and do a search using the KB number. You should see the page below and you can just click on the link with the correct OS to download the update package. Once download, apply the update and this update should be able to go through.