Skip to main content

Posts

Turning on/off Windows firewall on remote PC

While trying to fix one of our user’s IT issue remotely, I had to turn off Windows firewall which was set to Public. Users account does not have appropriate permission to make any changes to the system or run a command prompt. When I tried to make a RDP connection, it failed due to Public firewall is enabled. I tried below Netsh command to turn off firewall on remote PC but it didn’t work. Netsh –r 192.168.1.15 –u admin –p Password –c advfirewall set allprofiles state off Then, I learnt about PsExec command. PsExec is a light-weight telnet replacement that allows users to run programs executable files on remote machines. First, you will have to download PSTools. Click Here to download it. Once you’ve downloaded PSTools, unzip the file and copy PsExec to executable path. I copied file to C:\. Run following command to turn off filewall on remote PC using PsExec: C:\> psexec ComputerName –u username –p password cmd ComputerName  - replace it with the r

Converting Ubuntu Core server to GUI - Error: E: Unable to locate package update

Today, I installed a Ubuntu server 16.04 LTS on my test lab. I installed it as a virtual machine on my Hyper-V host. When installation finished, I was presented with the server Core edition. As I am fairly new to Linux OS, I wanted to have Graphical User Interface (GUI). I went on Internet to find a way to convert my Core server to GUI. I learnt that I need to install ubuntu-desktop package to have GUI. sudo apt-get install ubuntu-desktop When I ran this command, I got a following error message: E: Unable to locate package update After doing a bit of a research, I found out that I will have to run some more commands to upgrade current package list before trying to install desktop version. I used following command to have GUI version of Ubuntu server. Use following command to upgrade packages installed on your PC or update your all system. When Prompted, type Y and press Enter key. Sudo apt-get upgrade Once you've upgraded your system, run this com

PowerShell command to export a list of domain users from AD group to a CSV file

Here I go with another post on PowerShell. This time, I would like to share a PowerShell command that will help you to export list of users of particular AD (Active Directory) group to a CSV file. Run PowerShell and type following commands: # This will import ActiveDirectory module Import-Module ActiveDirectory # This command will export list of users from GroupName to a CSV file Get-ADGroupMember -Identity "GroupName" -server "TestDomain" -recursive | get-aduser -Properties mail | select name , samaccountname | export-csv -path c:\Script\report.csv -NoTypeInformation In above command, replace GroupName with the Group you want to retrieve members list. Type your domain name in place of TestDomain . Once you run above command, it will create a CSV file “ Report.CSV ” and save it in C:\Script folder. I hope you find this post very useful. Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of error and shortc

PowerShell Script: Find out free disk space from multiple servers

Hi All, this is my very first post on PowerShell Script. Today, I am going to share a script that you can use to find out free disk space from multiple servers. You will have to create a Text file and a PowerShell script to accomplish this. Let’s begin by creating a Text file. I have setup a folder on my C: Drive called PS_Script (C:\ PS_Script). I created a Text file, ServerNames.txt, and saved it in C:\PS_Script folder. Use following code to create a PowerShell script and save it as DiskReport.PS1. #Get Current date $currdate = ( Get-Date ) . tostring( "dd-MM-yyyy" ) #Set path for output file $report = "C:\PS_Script\" + "DiskSpaceReport_" + " $Currdate .html" #Run command to get free disk space from multiple servers and export output to HTML file Get-WmiObject Win32_LogicalDisk -filter "DriveType=3" -computer ( Get-Content C:\PS_Script\ServerNames.txt ) | Select SystemName , DeviceID , V

Changing password while using Remote Desktop Connection

Hi All, I know it’s been a long a time since I have written an article. Today I came across a question where user wanted to change his/her password while they are connected to a Server remotely via Microsoft Remote Desktop Connection. Generally, you press CTRL+ALT+Del , you get  the following choices that includes Change a password… option. This works perfectly fine if you are logged in locally and wants to change password. But if you are logged on to PC remotely using Remote Desktop  connection and press CTRL+ALT+DEL from keyboard, it will apply command to your local PC instead of remote PC. There are two ways to change password using Remote Desktop connections.      Press CTRL+ALT+ END from your keyboard while you are logged in to Remote PC. You should get following options:     Alternatively, press Win +R key in your Remote desktop connection. Type OSK to launch OnScreen Keyboard. Press CTL+ALT from your keyboard and use mouse pointer to click on DEL but

Virtual USB port is missing on Windows 7

Hi All, it has been a long time since I have posted last blog. I was away for a while during Christmas time. Today, I am going to share information about how to get virtual USB port in drop down list while installing local printer (USB) on Windows 7, if it’s not available by default. I followed below steps to add virtual USB port to add USB printer to Windows 7 PC.           Click on Start . Go to Devices and Printers .           Click on Add Printer .           Select Add a local Printer           In Choose a printer port box, select Create a new port option.           From the drop down list, choose Local port and click on Next button.           Port Name dialog box will appear. Type port name USB001 , click on OK           In the step, choose appropriate printer driver from list or provide a driver disk to complete printer driver installation process. I hope you may find this very useful. Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of

Short URL for your links

Day by days, users are using various form of services like Facebook, Twitter, WhatsApp and Viber, etc… to communicate with others and send/receive messages. Some of these services allow users to type only limited number of characters in single message. Hence, if you would like to a link which has long URL, you will need to shorten your URL in such a way that it still directs users to correct page on Internet.  You can achieve this by a method call URL shortening, it is a unique way to convert your long URL in to shorter length and still directs user to correct page. For an example, http://goo.gl/1uSLM0 is shorted URL for our blogs’ main page: http://blog.techietalks.co.uk . You can create a separate short link for each of your webpages or blogs. The main advantage of a short link is that it can be easily communicated and typed without any error. Users don’t need to change their current configuration or possess in-depth technical knowledge. There are various sites who off