Hi,
verifing of a file is often done by builting an MD5 or an sha256 hash over it.
Powershell has no “builtin” functions for this purposes.
So I wrote some 🙂
Continue reading Powershell: md5sum and sha256sum Functions
Hi,
verifing of a file is often done by builting an MD5 or an sha256 hash over it.
Powershell has no “builtin” functions for this purposes.
So I wrote some 🙂
Continue reading Powershell: md5sum and sha256sum Functions
Hi,
in Windows, local group policies could applied through the Group Policy Editor or simply by setting the Registry Keys under HKEY_LOCAL_MACHINE\Software\Policies, HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies and its equivalent in HKEY_CURRENT_USER.
Unfortunataly when just set the Registry Keys this isn’t shown in the GPO Editor and it’s hard to find the equivalent section and setting there.
Continue reading Windows: Resolve Policy Registry Keys to Group Policy Editor Entries (and vice versa)
Hi,
to determine which Server provides the Terminal License Server Role in your Active Directory Forest use the following powershell script.
Continue reading Windows: Find all Terminal/Remote Desktop Server Licenseserver
Hi
sometimes you want to copy files which are exclusively locked by other processes.
Continue reading Windows: Copy and backup open files with a batchfile
Hi,
these are just 2 templates for a OpenVPN Server and a clients based on the post.
The Server side, based on Debian Linux 8. Copy Key, Certificate & CRL to the right place and create the diffie hellmann key for key exchange.
# Root Directory of the CA export CA_ROOT_DIRECTORY=${HOME}/openvpn/CA # The common directory export CA_COMMON_DIR=${CA_ROOT_DIRECTORY}/common # Directory for Server Certificate export CA_SERVER_DIR=${CA_ROOT_DIRECTORY}/Server # The CRL export CA_CRL=${CA_COMMON_DIR}/crl.pem # The Environment variable where openssl looking for its config export OPENSSL_CONF=${CA_COMMON_DIR}/openssl.cfg # Move default config mv /etc/openvpn/server /etc/openvpn/server.old 2> /dev/null # Copy Key & Certificate mkdir /etc/openvpn/vpnsrv cp $CA_SERVER_DIR/server.p12 /etc/openvpn/vpnsrv cp $CA_CRL /etc/openvpn/vpnsrv # Create Diffie Hellmenn key for key exchange export OPENSSL_BIN=`which openssl` $OPENSSL_BIN gendh -out "/etc/openvpn/vpnsrv/dh.pem" 2048 # Create a Logfolder mkdir -p /var/log/openvpn
Continue reading OpenVPN: A default config template for server and client