Lapas

otrdiena, 2014. gada 18. februāris

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

trešdiena, 2014. gada 29. janvāris

How to determine which Office SP installed

Office 2003:

Start any Office application, such as Word. Click Help -> About Microsoft Word

RTM release - 11.0.5604.0 and higher
SP1 - 11.0.6255.0 and higher
SP2 - 11.0.7969.0
SP3 -  11.0.8173.0

Office 2007:
  1. Start any Office application, such as Word.
  2. Click on the Office Menu (upper left)
  3. Click "Word options" at the bottom of the menu
  4. There, select "Resources" on the left
  5. The version number will be displayed alongside the "About" button on the right
RTM release - 12.0.4518.1014
SP1 - 12.0.6211.1000 and higher
SP2 - 12.0.6415.1000 and higher

Offcie 2010:

Start any Office application, such as Word. Click on File -> Help -> Version:

RTM release - 14.0.4763.1000
SP1 - 14.0.6029.1000
SP2 -   14.0.7015.1000

Windows 7 advanced search

System.FileName:="zxc" - matches exactly
System.FileName:~="zxc" - approximately equals
System.FileName:~<"zxc" - starts with
System.FileName:~>"zxc.doc" - ends with but you'll have to specify the file suffix
System.Size:>100mb - file size larger than 100MB
System.Keywords:"family" - search file tags
System.Author:~!"Tim"  - any author that doesn't contain Tim in their name
System.Kind:<> picture – "is not" picture
System.DateModified:2013 – file modified 2013

kind:=folder created:‎30.‎10.‎2018 10:00:00 .. 30.‎10.‎2018 12:00:00 - folder created in certain time period.

Microsoft Lync shows blank screen when connecting to shared desktop or program

Delete from registry key {00000000-0000-0000-0000-000000000000}

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\ActiveX Compatibility\{00000000-0000-0000-0000-000000000000} (if using LYNC 2013 32 bits on Windows 8 64 bits)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{00000000-0000-0000-0000-000000000000} (if running LYNC 2013 64 bits or running LYNC 2013 32 bits on Windows 8 32 bits)

pirmdiena, 2014. gada 27. janvāris

If disappeared shortcuts to network files from desktop

If you create desktop shortcuts to removable storage places such as NAS the icons will disappear from time to time because Windows 7 has a built in task schedule to clean up broken and unused links. 
To prevent the task from running you need to disable the task in the Task Scheduler: start-> programs-> accessories-> system tools-> task scheduler
Expand the tree in the left hand pane until you get to Task Scheduler Library -> Microsoft -> Windows -> Diagnosis.
In the right hand pane, right click the task named Scheduled and click Disable.

sestdiena, 2014. gada 25. janvāris

Kā nomainīt fontu Sticky Notes

In the registry, you can change the font that Windows thinks is Segoe Print and Segoe Print Bold
  1. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
  2. First, export that key so you have a backup.
  3. Find Segoe Print (TrueType)
  4. Change the value to the file name of any other font that you wish to use that is already installed (navigate that registry key to find others).
  5. Do the same for the Segoe Print Bold (TrueType) and match it to the Bold version of this font.
  6. Then, log out and back on.