Lapas

otrdiena, 2014. gada 18. februāris

Notepad++ search with regular expressions

Don't forget to select Regular expression radio button in Search mode sectio.

([\s]+)([\s]+) -search for mutiple spaces
[ ]([a-zA-Z]) -search for any letter with space in front.

Get AD group members as text

To get active directory group's  members as sext - put this in powershell

dsquery group -name ("Group name here") |dsget group -members |dsget user -display >memberlist.txt

If you get error: dsget failed:Directory object not found check user names for restricted symbols.

Almost any characters can be used in Distinguished Names. However, some must be escaped with the backslash escape character. Active Directory requires that the following characters be escaped:

Comma ,
Backslash character \
Pound sign (hash sign) #
Plus sign +
Less than symbol <
Greater than symbol >
Semicolon ;
Double quote (quotation mark) "
Equal sign =
Leading or trailing spaces


The space character must be escaped only if it is the leading or trailing character in a component name, such as a Common Name. Embedded spaces should not be escaped.

pirmdiena, 2014. gada 10. februāris

NTP serveru adreses

ntp.sigmanet.lv 92.240.65.179
ntp.cert.lv 91.240.246.1, 91.240.246.3
2.lv.pool.ntp.org 85.254.216.1
1.europe.pool.ntp.org 85.12.35.12
0.europe.pool.ntp.org 148.251.9.60