Free image stock and graphical resources

Recently, I needed huge photo database from which I can choose couple of images for an upcoming project of mine for the web site I am preparing. It is a product oriented web site but right now I don’t posses the product so it was simply impossible to pay for photographer. Until the product is here, I needed photos /or any graphical resources/. So, here is the list of what I’ve managed to collect:

Blog posts (in Bulgarian with free resources):

 

How to make offline web site mirror?

There are plenty of times where I have just seen a tutorial/news/article but I don’t have the time to read it. Actually, the last time I needed this was when I saw really nice how-tos regarding starting successful online business. And it was completely free. The guys basically showed step by step how to choose and sell products. And in their articles they started from $0 to $2000 for 1 month. And it seemed interesting. And now it’s all gone and they sell it for $75. Of course, you know me, I managed to find a way to get those stuff and then I made offline mirrors to all pages. It is really simple. I used ‘wget’.

wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://example.org

Where:

–mirror – Makes (among other things) the download recursive.
–convert-links – convert all the links (also to stuff like CSS stylesheets) to relative, so it will be suitable for offline viewing.
–adjust-extension – Adds suitable extensions to filenames (html or css) depending on their content-type.
–page-requisites – Download things like CSS style-sheets and images required to properly display the page offline.
–no-parent – When recursing do not ascend to the parent directory. It useful for restricting the download to only a portion of the site.

[Quicks]How to hack RDP max sessions allowed

Hello, friends!

I have found a new workaround in order to walk through the annoying message:

1

Basically, you have to hack your own configuration if you don’t want to change your settings on the terminal server.

If using RDP 6 client or above:
mstsc /v IPADDRESS /admin
If using older than RDP 6:
mstsc /v IPADDRESS /console

With this command you can open one extra session. But if administrator is logged you cannot kick him our. This is valid only for regular users.

Open CMD/PowerShell:

net use \\server

2

or

net use /user:[username] \\server\share

Now we are executing commands for the server name/IP we have just enter info about.

Then:

query session /server:servername

With this command you will review all active sessions. You have to choose which user/administrator to kick out of the server in order to take his place inside. Once you did this, enter the following command:

reset session [ID] /server:servername

Other possible commands for session reset:

qwinstra /server:servername
rwinsta session [ID] /server:servername

 

[Quicks]Useful commands when migrating to a new DC

Howdy, friends!

One of my task recently was to migrate to a new DC ‘cuz the old one is totally broken. So I had to export somehow all the users, OUs and SG from the domain controller which was so damaged that I wasn’t able to list the roles installed. That’s why I had to use PowerShell in which I’m newbie. So .. the struggle was real and I decided to share my research and knowledge related to this topic!

As I understood, the best way to export users is CSV file because this is the easiest way to import them directly to the new DC with their old profile configurations.

Get-ADUser -Filter * -Properties * | Select-Object -Property Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,
Title,Department,whenCreated,Enabled,Organization | Sort-Object
-Property Name | ConvertTo-CSV

With this command I am telling to PowerShell to export in a CSV file all users from the Active Directory with the following parameters: Name (Rosen Slavchev), SamAccountName (rslavchev or r.slavchev or whatever your sys admin decided to be), Description (“This is test account for our ERP system and ..”), Email (rslavchev@domain.com), LastLogonDate (the format is: 10:11:12 10.11.12 y), Manager (your manager’ name set in the AD), Title (Systems Engineer), Department (Technical), whenCreated (same format as LastLogonDate), Enabled (will list only ENABLED accounts from the AD), Organization.

After all of this you can open your .csv in Excel and you will be surprised with the good result.

Another command is exporting all Organizational Unites using LDIFDE tool. The command is:

ldifde -f c:\ExportOU.ldf -s domain.local -d “dc=emeneye,dc=co,dc=local” -p subtree -r “(objectcategory=organizationalUnit)” -l “cn,objectclass,ou”

In my case I used local DC but it can be public! The format here is different. I suggest opening with editor like Notepad ++ for best review.

Analog command to this but again in .csv is:

Get-ADOrganizationalUnit -filter * | Select Name, DistinguishedName | export-csv c:\AD_OU_Tree.csv -NoTypeInformation

I hope that this was helpful for PowerShell newbies like me. Do not hesitate to ask me anything regarding this.

[Quicks] PowerShell How-To find all disabled users in Active Directory

Hello folks!

I found something extremely useful while I was doing a research for another topic. Back in the days I tried couple of times to review all AD users, including deleted. I had a lot of headaches regarding this task. Now I want to share with you couple of PowerShell commands.

Get-ADUser -Filter {Enabled -eq $false} | FT samAccountName

With this command you will find all disabled users inside your AD.


Get-ADUser -Filter {Enabled -eq $false} | FT samAccountName, GivenName, Surname

This is the same as the command above but with extra parameters (GivenName, Surname). So this will output the samAccountName, first name, and last name of the disabled users.


Get-ADUser -Filter {Enabled -eq $false} 

If you want no formatting whatsoever and have AD spit a bunch of information back at you, try running just the Get-ADUser part with the filter applied.


Search-ADAccount -AccountDisabled

This can be used to find out the disabled users AND computers.