Lapas

otrdiena, 2014. gada 1. jūlijs

Create symbolic link from remote to local folder

To create  symbolic link to remote folder:

C:\Windows\system32>mklink /d "D:\DATA\IT\ISO" "\\SERVER_NAME\ISO"

To check does link already exists

if exist "D:\DATA\IT\ISO" (
goto next
)else (
ECHO Creating Symlcnc...
mklink /d "D:\DATA\IT\ISO" "\\SERVER_NAME\ISO"
)
:NEXT
PAUSE


When access a symbolic link on a file server, sometimes you may see the following error:
"The symbolic link cannot be followed because its type is disabled". This is because by default remote to remote symbolic links are disabled.

You can enable it with fsutil.

C:\Windows\system32>fsutil behavior query SymlinkEvaluation - check status
C:\Windows\system32>fsutil behavior set SymlinkEvaluation R2R:1 - enable from Remote to remote

otrdiena, 2014. gada 3. jūnijs

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