Me Learning Tech

This is where I write about anything that I learn related to any technology.

[POWERSHELL] : Get-PrinterDetails from Print Servers




In your server environments sometimes to get the details of printers on a print server people need to log-in to the print server, open MMC console, go to print management, add servers and then get to see the printer details.

This is a Powershell script which is invoked by the batch file in the main folder does that all for you. Running the batch file would give a prompt asking for server name and credentials for the server.

The output produced is a HTML file which opens right after the execution completes. Continue reading “[POWERSHELL] : Get-PrinterDetails from Print Servers”


[POWERSHELL] : Getting Started

After we get an overview of what Powershell is, we are ready to get started.

So let’s Get Started!! Continue reading “[POWERSHELL] : Getting Started”

[POWERSHELL] : Why the hell “Powershell”?

PowerShell logoWell, while we are starting to learn Powershell, just like me many people would have come across the thought  “OK, the name sounds cool, it has a fancy logo, seems to be POWERful, I have heard the nerds talk about it, but ….. What the hell is it?”. Continue reading “[POWERSHELL] : Why the hell “Powershell”?”

Change Facebook username more than once

Facebook of course is the most popular social media website today. People (including me) are very dangerously addicted to facebook. We share our photos, feelings, and what not.

But, Facebook came into existence and became popular around 2006 and we were so busy looking into our wall(now timeline) that we never cared about what stupid username we have given to our accounts, and suddenly later someday we realize that the username is stupid, Oh no! now we want to change it. Well, Facebook let’s you do it once, and only once. And you realize, you can’t change it anymore.

Unlike other social media websites Facebook doesn’t allow you to change the username more than once. But of course there is a workaround. Even-though I don’t think Facebook would ever approve of it, but you can do this if you really hate your username and want to change it again. Just follow these steps.

1. Login to your Facebook account.

2. Now create a dummy Facebook Page by clicking on the gear like icon on the extreme top right corner and then selecting “Create Page” option. Give it some name, but don’t give it any web address or facebook web address. Just skip the rest of the steps.

3. Now you have your dummy page. in the admin panel go to Edit Page -> Edit Settings.

4. Here you have to select the “Page Info” tab

5. Here click on “Facebook Web Address” option under Page Info.

6. Here is the tricky part, give the dummy page the “Facebook Web Address” as your own username. i.e if your username is “johncrazydoe” and you want to make it “johndoe”, then enter the dummy page’s web address as

7. Now because of the clash between your username and dummy page’s username, Facebook woul ask you if you would like to “Transfer Username” to the page. Click on Transfer.

8. Now go back to your own profile then to account settings and there you have the option to assign a new username.

9. IMPORTANT!!! – DELETE THE DUMMY PAGE! Make sure you delete the dummy page.

So people, I don’t encourage you to do this again and again, don’t piss off Facebook. Do this only when you really are in a bad need of new username. I hope this article was helpful. Now go share this article with your Facebook friends.

Happy Facebooking !!

[Windows] : BATCH files – What, Why and How?

Well you must be knowing or have heard about “Batch files” or “dot bat (.bat)” files if you have anything to do with computer stuffs. If you don’t know what it exactly is, then maybe this is a pretty good place to start with. If you are already an expert programmer an know all about it then you are most welcome to share your knowledge here.

What is a BATCH file?

DOS, OS/2 and even Microsoft Windows use batch files as script file. It has a reason it is called a batch file, because a batch file basically contains multiple DOS commands or a group of DOS commands to be executed sequentially by the command interpreter (Command prompt precisely). A batch file is run by or cmd.exe which is similar to running shell scripts. Just so you know, is not a website but a command interpreter in Microsoft Windows.

Why to use a BATCH file?

BATCH files are generally used to schedule or automate a task. For example, if you want to copy certain files from one directory to other every week, you can just create a text file with the DOS commands written in a sequence and save it with a .bat extension to make it a batch file. Execute it and your job is done. No need to do the task repeatedly.

So, basically YES, it is indeed useful sometimes.

How to use a BATCH file?

Batch files are pretty easy to create and execute. Just open any text editor (maybe notepad) and write the DOS commands in each line and save it as a .bat file (anyname.bat).

Here are few tips when you are creating a batch file of your own.

You may consider writing “@echo off” at the start or some point of the file where you don’t want the command prompt to display the processing steps of the commands.


@echo off


Another keyword is “echo” which is used to print or display any text in the command prompt. This example batch file displays “Hello World!”, prompts and waits for the user to press a key, and then terminates.

@echo off
echo Hello World


You can try few more DOS commands together in a single batch file. Here is a simple batch file to copy a folder’s content to another destination.

@echo off title Just Copying Few Stuffs to D Drive
echo Copying started..... 
xcopy /q /h /c /s "C:My Folder" "D:My New Folder"
echo Copying is done my friend 
msg * Copying is done. 


To know more about DOS commands you can just type “help” in command prompt and to know details about any particular command write the command name followed by /? e.g. “xcopy /?”


Happy Coding ….

Powered by

Up ↑