Open command prompt as an Adminstrator
Run the following command:
netsh wlan show wlanreport
The ouput will be stored in C:\ProgramData\Microsoft\Windows\WlanReport
Jack of all trades, master of some
Open command prompt as an Adminstrator
Run the following command:
netsh wlan show wlanreport
The ouput will be stored in C:\ProgramData\Microsoft\Windows\WlanReport
Below is a list of useful Linux commands
There are several ways in which directories in the current path can be displayed:
Make a hidden directory
mkdir .dirname - add a period in front of the name
List hidden directories
ls -a
Show directory size:
du -sk to show the size in kilobytes
du -sh to show the size in more human-friendly format
Powershell
get-package -ProviderName Programs,msi | export-csv c:\temp\InstalledApps.csv
Command line
wmic product get name,version
Export from Windows registry
## List 32bit installed programs
$regPath =
'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'
Get-ItemProperty -Path $regPath |
Select-Object DisplayName, DisplayVersion, Publisher, InstallDate
## List 64bit installed programs
$regPath = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*'
Get-ItemProperty -Path $regPath |
List users
show user-account
Show particular user
show user-account user1
Add user
username user1 password abcd123AAA expire 2003-05-31
Delete user
no username user1 privilege 15 secret 5 $1$j5dF$8SGPjO2Um5mstBsvtA4cO/
Assign a role
username user1 role network-admin
Remove the user from a role
no username user1 role network-operator
Place the cursor where you want to insert the horizontal line.
Type three of the characters shown below, and then press Enter.
The line is inserted for the full width of the page. When inserted into a column, the line is inserted to match the width of the column. To add text above the line, put your cursor where you want the text and begin typing.
The global git username and email address are associated with commits on all repositories on your system that don’t have repository-specific values.
To set your global commit name and email address run the git config command with the --global option:
git config --global user.name "Your Name"
git config --global user.email "youremail@yourdomain.com"
Press CTRL+ALT+F1 to launch the ESXi Shell
At the ESXi shell login with root and the password
Run the following commands to show number of failed attempts:
pam_tally2 --user root
Run the following command to unlock the root account:
pam_tally2 --user root --reset
Get-TimeZone
Set-TimeZone -Name 'Eastern Standard Time' -PassThru
Set-TimeZone -Name 'Coordinated Universal Time' -PassThru
Import new Cert PEM file into local SSL Cert store. Make sure you mark the key as exportable. Next, export the certificate as PFX and make sure to export the key along with the cert.
Take the file you exported (e.g. certname.pfx) and copy it to a system where you have OpenSSL installed. Note: the *.pfx file is in PKCS#12 format and includes both the certificate and the private key.
Run the following commands to extract the key:
Run the following command to export the private key: openssl pkcs12 -in certname.pfx -nocerts -out certame.key.pem -nodes
Optionally, run the following command to remove the passphrase from the private key: openssl rsa -in certname.pem -out certname.key