C

  • Commandline update van VMware patches
    esxcli software vib install --depot=/vmfs/volumes/datastore/ESXi550-201410001.zip ...
  • Crontab
    Crontab   List active cron jobs   crontab -l less /etc/crontab   Systemctl restart crond     View Cron Jobs by User sudo crontab –u ...
  • Configureer NTP settings via de Registry
    Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]"NtpServer"="vul hier in de FQDN,0x1""Type"="NTP" ...
  • Colorscheme VIM
    Instructions   Connecting via SSH to your server Browse to your user directory with the following command: cd ~ Create a .vimrc file with the following command: ...
  • Copy with SCP
    On the host where the cron job is ssh-keygen -t rsa -b 4096 No password Cd ~/.ssh 760708 -rw-------. 1 root root 3401 May ...
  • Centos automatische updates
    dnf install dnf-automatic   rpm -qi dnf-automatic   vim /etc/dnf/automatic.conf   upgrade_type = default   apply_updates = yes   system_name = name server   emit_via = motd   systemctl enable --now dnf-automatic.timer   systemctl list-timers *dnf-* ...
  • Change version with DISM
    dism /get-imageinfo /imagefile:D:\Install\ISO\1909-UK\install.wim Dism /Mount-Image /ImageFile:D:\Install\ISO\1909-UK\install.wim /Index:1 /MountDir:D:\Mount\Offline Dism /Image:D:\Mount\Offline /Get-CurrentEditionDism /Image:D:\Mount\Offline /Get-TargetEditionsDism /Image:D:\Mount\Offline /Set-Edition:Professional Dism /Unmount-Image /MountDir:D:\Mount\Offline /Commit dism /cleanup-wim dism /Cleanup-Mountpoints dism /unmount-wim /mountdir:D:\Mount\Offline /discard ...
  • Convert Windows version to other version
    - Run command prompt or PowerShell as administrator:  Type following command:  dism /online /set-edition:ServerDatacenter /productkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /accepteula . (Replace xxxx with your activation key). ...
  • Configuratie Microsoft Deployment Toolkit (MDT) 2013
    Stap 1: In Windows Server 2012 R2, klik op het Startsymbool (Links onderin het scherm): Stap 2: Klik op het pijltje naar beneden onderin het scherm voor ...
  • Capture Windows 10 Image using MDT
    Preparing Windows 10 Reference Computer for MDT Capture Before you begin to capture Windows 10 image, you should prepare already deployed Windows 10 PC by installing ...
  • Check Exchange Server Build Numer
    Exchange servers tot versie 2010 >>>Klik hier<<<Exchange servers versie 2013 en nieuwer >>>Klik hier<<< ...
  • Connect to Exchange Online (Powershell)
    On your local computer, open Windows PowerShell and run the following command. PowerShell   $UserCredential = Get-Credential In the Windows PowerShell Credential Request dialog box, type your work or ...
  • Check Servicepack SQL
    Als je de build van een SQL server wilt controleren voor bv welk servicepack erop staat kun je dit nakijken op via de onderstaande linksqlserverbuilds ...
  • Create a file
    # Create-NewFile.ps1 # Full path of the file$file = 'c:\temp\important_file.txt' #If the file does not exist, create it.if (-not(Test-Path -Path $file -PathType Leaf)) {try {$null = New-Item ...
  • Create folder
    clear$folderName = (Get-Date).tostring(“dd-MM-yyyy”)$Path = "C:\files\" +$FolderName if (!(Test-Path $Path)){New-Item -itemType Directory -Path C:\files -Name $FolderName}else{write-host "Folder already exists" -ForegroundColor Red} ...
  • Create a website and add a certificate with powershell
    Import-Module WebAdministration # Create the new websiteNew-Website -Name DemoSite -PhysicalPath C:\inetpub\wwwroot\ # Notice all web bindings createdGet-WebBinding # Find the bindings only on the website we just created(Get-Website ...