Lapas

ceturtdiena, 2014. gada 29. maijs

If cannot install .NET framework 3.5 from Windows Update under Windows 8

1. Insert Windows 8 installation DVD
2. Run cmd as administrators

3. Run the following command Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess

ceturtdiena, 2014. gada 15. maijs

Excel shortcuts to insert current date and time

Current date     Select a cell and press CTRL+;
Current time     Select a cell and press CTRL+SHIFT+;
Current date and time     Select a cell and press CTRL+; then SPACE then CTRL+SHIFT+;

otrdiena, 2014. gada 11. marts

Get Office 365 user list

To get active users list in excel or txt file at firs you need to install:
1. Windows Management Framework
2. Windows PowerShell 3.0
3. The Microsoft Online Services Sign-In Assistant
4. Windows Azure AD Module

Then run Windows Azure Active Directory Module for Windows PowerShell. Connect to Office 365 with cmdlet Connect-MsolService and enter the corresponding administrator credentials.
After that request active users with cmdlet:

PS C:\Windows\system32> Get-MsolUser | Where-Object { $_.isLicensed -eq "TRUE" } | Select-Object UserPrincipalName, DisplayName, Country, City, Department, UsageLocation | Out-GridView
 

Source: Microsoft Support

piektdiena, 2014. gada 7. marts

Get Autodesk Inventor and Autocad serial nubers from windows.

Inventor Serial numbers  
C:\ProgramData\Autodesk\AdLM\*_USRegInfo.html
HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\Inventor\RegistryVersionX.Y\System\License

 AutoCAD serial numbers 
List the value of the *_PKSER variable (enter as a command on the AutoCAD commandline)
Use command ABOUT to display product information window
List the Registry key SerialNumber in a Registry hive corresponding to your application - e.g.: HKLM\SOFTWARE\Autodesk\AutoCAD\R17.2\ACAD-7001:409

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.