What ADDS Site

To find out in what ADDS site a computer is running use the following  command

nltest [/server:<remote computer name>] /dsgetsite
Posted in Information Technology | Tagged | Comments Off on What ADDS Site

NTLM

TechNet article written by Jesper Johansson explains NTLM

Security Watch The Most Misunderstood Windows Security Setting of All Time
https://technet.microsoft.com/en-us/library/2006.08.securitywatch.asp

Posted in Information Technology | Tagged | Comments Off on NTLM

Get OS Version from Windows Install medium

Find the wim file located in :\sources on the install medium then run a command shell as administrator.

dism /get-wiminfo /wimFile:<Drive>:\sources\<Wimfile>

As a result you should get something like this:

dism /get-wiminfo /wimfile:Y:\sources\boot.wim

Deployment Image Servicing and Management tool
 Version: 6.3.9600.17031

Details for image : Y:\sources\boot.wim

Index : 1
 Name : Microsoft Windows Recovery Environment (x64)
 Description : Microsoft Windows Recovery Environment (x64)
 Size : 1'956'357'322 bytes

The operation completed successfully.

Conclusion

This version number is pointing to  “Microsoft Windows 8.1, 6.3.9600.17031 (IR3)”

 

Posted in Tips | Tagged | Comments Off on Get OS Version from Windows Install medium

Change WordPress file rights on Synology

If you copied a wordpress file structure to your NAS you possible endup in wrong file rights.

Open Telnet session and change to superuser mode . After that, change owner and rights so WordPress is working without errors.

su sudo

cd /volume1/web

chmod -R 644 ./wordpress
chmod -R a+rX ./wordpress
chown -R http:http ./wordpress

Result:


 

Posted in Fix IT, Information Technology | Tagged , | Comments Off on Change WordPress file rights on Synology

German date is not accepted in Powershell

Problem:

Systems or commands  working with english datetime do not accept german date formats. Converting them directly to Datetime ist not possible.
 “System.DateTime”. Error: “String was not recognized as a valid DateTime.”
Example:

Solution:

Convert the date to an english datetime in case there are dots in it. German = 28.02.2017 , English 02/28/2017

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$DateValue = "28.02.2017" # Play with this two values
$DateValue = "02/28/2017" # Play with this two values
 
 
if ($DateValue.contains("."))
            {
            $DateValue = [datetime]::parseexact($DateValue,"dd.MM.yyyy",$null)
            Write-host "de"
            }
Else
            {
            $DateValue = [datetime]$DateValue
            Write-host "en"
            }

 

Posted in Information Technology | Tagged | Comments Off on German date is not accepted in Powershell

Permalink dos not change in WordPress

I changed to a new Synology NAS from DSM 5.2 to 6.1. After migrating my WordPress site Permalinks worked only in default mode. On my old NAS i used to have something like “/2013/10/file-open-security-warning/”  .

Problem:

The permalink update is not running after a change. So all posts ended up in 404 Errors.

Solution:

Changing the website server from Nginx to Apache within virtual host settings solved the Problem.

Synology Virtual Host

 

 

Posted in Fix IT, Information Technology | Tagged , | Comments Off on Permalink dos not change in WordPress

Cleanup winsxs folder

Do not delete files manually from winsxs folder . Instead use the following command to remove old servicepack files.

dism.exe /online /cleanup-Image /spsuperseded
Posted in Fix IT, Tips | Comments Off on Cleanup winsxs folder