Because this is the fifth time I fixed this issue I write a blog about it…
.local as the recommended root of internal domains, and serves them via unicast dns. Linux uses
.local as the root of multicast dns. If you’re stuck on a broken MS network like this, reconfigure your linux multicast DNS to use a different domain like .alocal.
To do this, add a
domain-name=.alocal line to the
[server] section of
/etc/avahi/avahi-daemon.conf, then restart avahi-daemon:
sudo service avahi-daemon restart.
You may need to flush the DNS, mDNS and resolver cache, as well as restart your web browsers to clear their internal cache.
First backup your transaction logging:
- Tasks > Backup
- Select transactionlog backup en select a disk where to backup
- Now check the status with DBCC LOGINFO(DATABASENAME)
- Check if the last status record is 0 (zero)
- When the status is 2 make another backup
- When the status is 0 you can run: DBCC SHRINKFILE(2)
You can use this script also:
Backup LOG DBNAME
TO DISK = 'C:\SQL_TMP\transactionlog.trn'
A lot of installations don’t clean the old MSI and MSP files in the c:\Windows\Installer folder.
There is a nice tool to clean that mess in 2 mouse clicks with the name patchcleaner. URL: http://www.homedev.com.au/free/patchcleaner
Won’t work with a maximized Window.
- Alt-Tab or Click On the Window
- Press “Alt & Space”
- Press “M”
- Use your arrow keys to move the Window
- Press Enter to exit
Will move your Window to the right or left half of the screen in the same manner as dragging a window to the right or left of the screen will.
- Press the Windows Key & Right Arrow or Left Arrow
- Move a Window with the Keyboard-right
will move your Window one display to the right or left.
- Press the Windows Key & Shift & Right Arrow or Left Arrow
This is an copy paste from a website. All credits to: http://www.sevenforums.com/tutorials/77361-move-window-keyboard.html
If you follow these steps you can create a self signed certificate with the following specifications:
- Wildcard certificate
- SHA256 hash
- 10 years
- 2048 bits public key
- Client and server verification
- Sha1 fingerprint
Be aware that self-signed certificates can manipulate by a man-in-the-middle. You should not use this in critical production environments.
Please use windows 10 powershell in admin mode. Otherwise you will get errors
New-SelfSignedCertificate -certstorelocation cert:\localmachine\my -dnsname *.domain.local -NotBefore $([datetime]::now.AddDays(-15)) -NotAfter $([datetime]::now.AddDays(3560))
Now export the certificates. Before you copy/paste change the thumbprint with the thumbprint you get from the above command.
$CertPassword = ConvertTo-SecureString -String "YourPassword" -Force –AsPlainText
Export-PfxCertificate -Cert cert:\LocalMachine\My\C6B46CEB7D3A40DB08E78B19FEDD3A24EA7A7919 -FilePath C:\test.pfx -Password $CertPassword
Export-Certificate -Cert Cert:\LocalMachine\My\C6B46CEB7D3A40DB08E78B19FEDD3A24EA7A7919 -FilePath C:\tstcert.cer
Now you can import the PFX with IIS and bind the certificate in IIS.
And import the *.CER in your MMC > Certificates > Computer account > trusted root Certification authority > Certificates
Have fun with your certificate the next 10 years 😀
I know for sure you have a track in your spotify playlist and you want more like that kind of music. There is a way to find all the public spotify playlists based on fans like yourself. Spotify unfortunately don’t have a solution, ut with a smart google search you find what you need 😀
The google search you can try is:
site:spotify.com “track artist” playlist
site:spotify.com “do it rootkit” playlist
Today our domain controller had a very bad day and had a bootloop after a reboot. I used recording software to capture the blue screen error: STOP: c00002e2 Directory Services could not start
Then we found a nice article to fix this issue. We had a second working domain controller so if you have the same setup you can use this how to, to fix this problem also. All the credits go to dbutch1976
- Restart the server and press F8 key, select Directory Services restore mode.
- Log in with the local administrator username and password (hope you remember what you set it to!).
- Type cd \windows\system32
- type NTDSUTIL
- type activate instance NTDS
- type files
- If you encounter an error stating that the Jet engine could not be initialized exit out of ntdsutil.
- type cd\
- type md backupad
- type cd \windows\ntds
- type copy ntds.dit c:\backupad
- type cd \windows\system32
- type esentutl /g c:\windows\ntds\ntds.dit
- This will perform an integrity check, (the results indicate that the jet database is corrupt)
- Type esentutl /p c:\windows\ntds\ntds.dit
- Agree with the prompt
- type cd \windows\ntds
- type move *.log c:\backupad (or just delete the log files)
This should complete the repair. To verify that the repair has worked successfully:
- type cd \windows\system32
- type ntdsutil
- type activate instance ntds
- type files (you should no longer get an error when you do this)
- type info (file info should now appear correctly)
You have bought een new system and the first thing what you want to do is check the disk performance (ehhh that’s always the first thing I want to know 😛 )
There is one tool I always use: ATTO Disk Benchmark
This is a very nice tool to quickly see how fast your troughput is of your new system.
But sometimes you want to check your IOPS. Then you can use another nice microsoft commandline benchmark tool DiskSpd
You can use this parameter to benchmark:
diskspd -b8K -d30 -o4 -t8 -h -r -w25 -L -Z1G -c20G testfile.dat
This example command line will run a 30 second random I/O test using a 20GB test file located on the T: drive, with a 25% write and 75% read ratio, with an 8K block size. It will use eight worker threads, each with four outstanding I/Os and a write entropy value seed of 1GB. It will save the results of the test to a text file called DiskSpeedResults.txt. This is a pretty good set of parameters for a SQL Server OLTP workload.
If you get errors like:
Results for timespan 1:
The test was interrupted before the measurements began. No results are displayed.
Error generating I/O requests
Or file creation errors like “Error opening file: testfile.dat” please try to replace the minus “-” characters with your keyboard. Sometimes your browser copy the wrong character.
Happy benchmarking 😀
Download Log Parser 2.2 from the microsoft site. After the installation google is your friend
Hits on a particular page by IP address
LogParser -i:IISW3C "SELECT c-ip, COUNT(*) As Hits FROM C:\WINDOWS\system32\LogFiles\temp\*.log WHERE EXTRACT_FILENAME(cs-uri-stem) = 'default.aspx' AND sc-status = '200' GROUP BY c-ip Order by Hits DESC" -o:DataGrid
Another great way to analyse log files is the tool: Log Parser Studio. With this tool you can easy query loggings with a GUI:
copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe to %systemroot%\System32
copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui to %systemroot%\System32\en-Us
Run cmd > cleanmgr and remove all the nasty update files!
After I cleaned up the server I had to stop the windows installer service (trustedinstaller.exe) to remove the c:\windows\logs\cbs\CBS.log (6GB file) manually. Maybe a restart of the server do the same but I cannot test it on a production environment.