Hi,
in the default configuration the ESXi host gets a TLS certificate from the vCenter signed bei the VMCA_ROOT_CERT certificate.
Continue reading VMware: Export the vCenter VMCA_ROOT_CERT certificate
Hi,
in the default configuration the ESXi host gets a TLS certificate from the vCenter signed bei the VMCA_ROOT_CERT certificate.
Continue reading VMware: Export the vCenter VMCA_ROOT_CERT certificate
Hi,
with powercli performance data could be exported for automatically created reports.
Continue reading vSphere: Get performance data of a VM by PowerCli
Hi,
powershell has some command lets to deal with with group policies. The command lets can be found in the GroupPolicy module.
Continue reading Active Directory: Export and import a group policies
Hi,
in some cases I uses git repositories for versioning log files and want to export a specific logfile in all versions:
for CommitHash in `git rev-list HEAD -- myFolder/myfile`; do git show ${CommitHash}:myFolder/myfile > export/${CommitHash}_myfile done
combined with given time range
git rev-list --after="2021-08-31" --until="2021-10-10" HEAD
and the the date of a commit in the filename
git show --format=%cd -s --date=format:'%Y%m%d-%H%M%S' 8dba4dd6ef44fe0c069ec87eb179ac8f8ae2222c
This should be this one:
export File=myFolder/myfile export ExportFolder=/tmp for CommitHash in `git rev-list --after="2021-11-01" --until="2021-11-16" HEAD -- $File`; do export CommitDate=$(git show --format=%cd -s --date=format:'%Y%m%d-%H%M%S' ${CommitHash}) export ExportFileName=${ExportFolder}/${File}_${CommitDate}_${CommitHash} echo Exporting $ExportFileName git show ${CommitHash}:${File} > $ExportFileName done
Michael
Hi,
Windows has a builtin command line utility to deal with Eventlogs: wevtutil
Some examples.
Continue reading Windows: Export EventLog from command line