Category: Windows

Persistent connection to Windows shared folder using Linux Ubuntu

This is how you can connect to a windows shared folder as persistent using Linux Ubuntu, in this case we will connect to a Windows server using a domain user for connection credentials At first step we must create a now dir in media location, in ths case we will use testfolder [crayon-5c48e926a24ec816502057/] Then we

Add SQLSRV driver support in EasyPHP Devserver

Recently I had to develop a new project in php, jquery, ajax and javascript which needs a Microsoft SQL database connection. For developing purposes I like to use Easyphp Devserver , an all in one package like WampServer or XAMPP.  I Prefer this one because it seems more lightly and less intrusive for my overweighted system. By

Query Active directory form SQL server

A couple of weeks ago we had the needed to get some users data and our best option was querying directly to Active directory from an SQL server, this could be the best option in some cases, taking in mind that a healthy AD with a good maintainment is allways our best shot. Microsoft Active

Get Active Directory users expiration date

If you need to know when your users passwords will expire in AD, you can execute this commands in Powershell, this will response with all the accounts and dates. Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} –Properties “DisplayName”, “msDS-UserPasswordExpiryTimeComputed” | Select-Object -Property “Displayname”,@{Name=”ExpiryDate”;Expression={[datetime]::FromFileTime($_.”msDS-UserPasswordExpiryTimeComputed”)}} Output example: Displayname ExpiryDate ———– ———- John Doe 15/10/2018 18:45:29

Change Windows network IP address using console

The’s a way to change network configuration using Windows console, with this option you can set a new IP addess or switch bettwen static and dhcp,  Another interesting point of this is that you can do the same remotely using PsExec , I wrote a post time ago axplanating how it works, you can found just