Hodžův blog

Author Archive

25 Kvě

Howto: Remove Microsoft Office from your windows computer with PowerShell

Simple … Isn’t It?? Get-AppxPackage -name “Microsoft.Office.Desktop” | Remove-AppxPackage Get-AppxPackage *officehub* | Remove-AppxPackage

25 Kvě

HowTo: Old Debian & error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Problem: #./hpsetup ./hpsetup: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory Quick Fix: # apt-get install lib32stdc++6

12 Kvě

HowTo: Import a PEM certificate and PEM private key into the Windows key store

Create a PKCS12 file containing the certificate and its private key: $ openssl pkcs12 -export -in MyCertficate.crt -inkey MyPrivateKey.pem -out CertificateForImportInWindows.p12 The .p12 generated file is protected by a password and can then be transported without any risk. On a Windows, open this .p12 file and follow the instructions provided.

20 Dub

HowTo: PowerShell Full Command History

Get-Content (Get-PSReadlineOption).HistorySavePath

28 Úno

VMware ESXI 7 and Intel NVMe SSD – Can’t add datastore

After a clean installation of VMware ESXi 7.0, I saw an NVMe disk (Intel DC P4600 4TB) in the system, but the datastore could not be added. I solved the problem quickly as follows: 1. List unresolved snapshots or replica volumes. # esxcli storage vmfs snapshot list 621cdcb9-053ddbab-e0a7-ac162d6f2e80 Volume Name: NVME-Intel VMFS UUID: 621cdcb9-053ddbab-e0a7-ac162d6f2e80 Can […]

30 Zář

How to find: Exchange Administration Center URL

In Exchange Management Shell run this command: Get-ECPVirtualDirectory | Format-List InternalURL,ExternalURL

20 Zář

MikroTik: disconnected, unicast key exchange timeout

I just fixed this problem by removing a space from the end of the PSK.

08 Zář

Windows, PowerShell a nastavení vlastníka adresáře podle názvu složky

Když vám třeba někdo rozbijete oprávnění na domovských složkách uživatelů z Active Directory… Foreach ($Folder in Get-ChildItem „D:\data\home-students“) { $domain=”nazev.domeny” $Username=$Folder.Name $ID=new-object System.Security.Principal.NTAccount($domain, $username) $Path=“D:\data\home-students\$username“ write-host $path $acl=get-acl $path $acl.SetOwner($ID) set-acl -path $path -aclObject $acl }

25 Srp

PowerShell – Start All Exchange Services

Get-Service *Exchange* | Start-Service

06 Čvn

Change Hyper-V IP addres in Synology Active Backup for Business

1. Enable SSH 2. Sign as root user 3. Run SQLite3 sqlite3 /volume1/\@ActiveBackup/config.db 4. Determine inventory_id: sqlite> SELECT inventory_id, host_name, host_addr FROM inventory_table; 1|172.26.1.3|172.26.1.3 5. Update IP address and host name (on row with correct inventory_id): sqlite> update inventory_table set host_name = „172.26.1.3“, host_addr = „172.26.1.3“ WHERE inventory_id = ‚1‘; 6. Terminate SQLite3 program: sqlite> […]

Hodžův blog is is proudly powered by Wordpress and the Magellan Theme