db.getCollection('foo').find({"field": /.*test.*/})
db.getCollection('foo').updateMany({}, {$set: {field: value}})
db.getCollection('foo').updateMany({}, {$unset: {field:1}});
openssl pkcs12 -export -inkey a.key -in a.pem -out a.pfx
openssl x509 -inform der -in a.cer -out a.pem
openssl req -x509 -newkey rsa:4096 -keyout a.key -out a.pem -days 365
Get-CimInstance -Class Win32_SystemEnclosure | Format-Table -AutoSize
or Get-WmiObject -query "Select * from Win32_SystemEnclosure"
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
mongorestore --db NewDatabase FolderOfOldDatabaseDump Note: if the database does exist then the data will be partially overwritten
mongorestore --drop --db ExistingDatabase FolderOfOldDatabaseDump