Tuesday, 17 October 2017

Fixed: Error 0x80070718: Not enough quota is available to process this command

Recently, I had come across following error message when one of the users was trying to copy files to Network folder. His folder was setup with offline files option so that files are available to user when network connection to server is either poor or not available.

Error 0x80070718: Not enough quota is available to process this command

After doing it bit of a search, I found a following solution to above error message. This is caused by Offline files. I have followed these steps on Windows 7 Pro 64 bit PC.

  •          Open Control Panel
  •          Go to Sync centre
  •          Select Manage offline Files from left side column
  •          An Offline files box will appear, click on Disk Usage tab
  •          Click on Change limits button, change limit to required space.
  •          Click on OK button twice.
Hope you find it useful.

Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of error and shortcomings due to human or technical factors. www.TechieTalks.co.uk does not bear responsibility upon any loss or damage arising from conduct or activities related to the use of data and information contained in this blog.

Wednesday, 17 May 2017

RHEL 7: NDO2DB service is not running

I have Nagios Xi 4.3.2 installed on Red Hat Enterprise Linux 7.3 (Mapio). Recently, I had an issue with my Nagios monitoring tool. It stopped monitoring my devices. When I checked further, I found out that NDO2DB service stopped working. Because of that, I could not see most recent status of any of the devices monitored by Nagios.

I logged on to Read hat box and tried below command to check the status of the service:

#systemctl status ndo2db

You can also use following command to check any service status

#Service ndo2db status

I tried following commands to start/restart ndo2db service.

#systemctl start ndo2db

OR

#systemctl restart ndo2db

After applying above commands, I ran following command again to check status but it failed to start

#systemctl status ndo2db

After doing bit of searching on this issue, I found the solution. I entered following commands to start NDO2DB service.

#service nagios stop
#service ndo2db stop
#rm -f /usr/local/nagios/var/ndo2db.lock /usr/local/nagios/var/ndo.sock
#service ndo2db start
#service nagios start

Once NDO2DB service started, Nagios started to monitor all the devices. I hope you find this article helpful.


Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of error and shortcomings due to human or technical factors. www.TechieTalks.co.uk does not bear responsibility upon any loss or damage arising from conduct or activities related to the use of data and information contained in this blog.

Thursday, 6 October 2016

How to move Pagefile.sys to another drive?

Recently, I had to move Pagefile.sys from C: drive to another drive on a server to free up some space. Page file is used as a virtual memory in Windows. Generally, you can find on C:\Pagefile.sys. It is a hidden file and you won’t be able to see it until you changes settings in Windows Explorer not to hide protected operating system files.

To move the Pagefile to a new drive, follow these steps. You can perform these steps on any Windows Vista, or Windows 7 on wards or Windows server 2003 on wards.
  •  Go to Control Panel and then System and Security.
  • Now, click on Advanced system settings on the left side column.
  • System properties box will appear, click on Advanced tab.
  • Under Performance, click on Settings… button
  • Performance Options box will appear, click on Advance tab.
  • In Virtual Memory section, click on Change… button
  • Virtual Memory box will appear. In this box, untick Automatically manage paging file size for all drives
  • Select the drive letter C: (if pagefile is currently saved on C: drive)
  • Select No paging file option and click on Set
  • Now, select the drive letter D: (presumable) where you want to save pagefile.
  • Click on System managed size and click on Set button.
  • Note: If you would like to specify the size (MB) for Pagefile, select Custom size and provide Initial size and Maximum size
  • Click on OK button to close all boxes and restart PC.

Once PC has been restarted you can find that Pagefile is moved to a new drive.

Hope you find it informative.

Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of error and shortcomings due to human or technical factors. www.TechieTalks.co.uk does not bear responsibility upon any loss or damage arising from conduct or activities related to the use of data and information contained in this blog.

Monday, 26 September 2016

Windows 10: “Run as a different user” option is missing

Hi All, you may have already noticed that when you right click on any application on Windows 10 PC, you can see “Run as Administrator” option. But “Run as different user” option is missing. To get this option, you’ll make a make a change in registry.  

NotePlease backup registry and make a system restore point before making changes to Registry.
  • Click on Start. Type Regedit and press Enter key.
  • In Registry Editor, navigate to HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer      
  • If you do not find this key, right click on Windows key and select new key. Rename it to Explorer.
  • Now, in the right side pane, right click and add DWORD value ShowRunasDifferentuserinStart
  • Right click on ShowRunasDifferentuserinStart and click on Modify…
  • Change its value to 1 and click on OK.
  • Close Registry Editor and reboot PC.
Once you restart your PC, you can find Run as different user option is available when you right click on any application.

Hope you find it useful.

Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of error and shortcomings due to human or technical factors. www.TechieTalks.co.uk does not bear responsibility upon any loss or damage arising from conduct or activities related to the use of data and information contained in this blog.

Monday, 5 September 2016

PowerShell Script: Update AD attributes using CSV

Hi All, in this post I am going to share information on how can you update an attribute(s) in AD for multiple objects. In this post, I am using a CSV file that contains users’ First Name, Last Name, their login name and Employee ID. I wanted to update Employee ID for all the users listed in CSV file.

To achieve this, I have complied a PowerShell script that uses CSV file and update AD attributes for multiple users.

CSV file: I saved CSV file in C:\ADTest.CSV.




I ran following PowerShell script as admin. This script import CSV data, updates EmployeeID data for each login name (sAMAccountName) listed in CSV file.

#Import Active Directory module

Import-Module ActiveDirectory

#Import CSV file

$Obj=Import-Csv "C:\ADTest.csv"

foreach($Usr in $Obj)
{
Get-ADUser -Filter "sAMAccountName -eq '$($u.sAMAccountName)'" -properties * | set-aduser -replace @{employeeID="$($u.employeeID)"} -PassThru
}

I hope you find this useful.

Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of error and shortcomings due to human or technical factors. www.TechieTalks.co.uk does not bear responsibility upon any loss or damage arising from conduct or activities related to the use of data and information contained in this blog.

Tuesday, 23 August 2016

Windows 10 phone: This device has been locked for security reasons. Connect your device to a power source for at least two hours, then restart it to try again.

Hi All, this is my very first post on Windows 10 phone. I have a Windows 10 phone. Today, I saw following error message on phone. It didn’t allow me to unlock my phone using 4 digit pin I had set. The “Emergency calls” was the only option available to me.

Error: This device has been locked for security reasons. Connect your device to a power source for at least two hours, then restart it to try again.

I tried performing soft reboot but it didn’t fix. After doing a bit of research, I found a solution. Make sure that your phone is connected to Internet during this process. To fix this issue, follow these steps:
  • Launch https://account.microsoft.com/devices on a web browser on another PC/Tablet or a smart phone
  • Login using your Microsoft account (it is the same account you’ve used to configure your phone).
  • Once you’ve logged in, Select your phone.
  • On the next page, click on Lock button.
  • A box will appear asking to enter 6 digit pin, a number where you can be reached (optional) and a message to show on the screen.
  • Type the 6 digit pin and something in message box like “Phone is locked”. Click on OK button.
  • Restart your phone.
  • Use the 6 digit pin to unlock your phone when it is prompted. You will find that error message disappeared and you can access your phone now.
I hope you find this useful.


Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of error and shortcomings due to human or technical factors. www.TechieTalks.co.uk does not bear responsibility upon any loss or damage arising from conduct or activities related to the use of data and information contained in this blog.

Tuesday, 2 August 2016

Explained: SNR Margin and Loop Attenuation

I would like to share some information about SNR margin and Loop Attenuation values for your ADSL connection. These are very important to determine the performance of the Internet connection. I strongly suggest that you should use this information as guide only. These values may vary for different types of Internet connection such as ADSL, ADSL Max or Fibre connection.

SNR (Signal to Noise Ratio) margin measures strength of the DSL signal to Noise ratio. Most of the modem manufactures suggest 6dB is the lowest to able to make Internet connection. The higher the value of SNR margin, better the connection.

SNR Value (in dB)
Internet connection status
6 or less
Bad or may experience no sync or intermittent sync issue
7 – 10
Fair connection
11 – 20
Good connection with no sync issues
20 – 28
Excellent
29 or above
Outstanding

Loop Attenuation (Loop Att.) measures of how much the signal has degraded between the DSLAM and the modem. 60dB is the maximum signal loss recommended. So, if Loop Attenuation value is lower on your router, it is better for connection.

Loop Attenuation (in dB)
Internet connection performance
20 or less
Outstanding
20 – 30
Excellent
30 -40
Very good
40 – 50
Good
50 -60
Poor, may experience connectivity issues
60 or more
Bad, will experience connectivity issues

I hope you find it useful.

Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of error and shortcomings due to human or technical factors. www.TechieTalks.co.uk does not bear responsibility upon any loss or damage arising from conduct or activities related to the use of data and information contained in this blog.

Tuesday, 28 June 2016

Fixed: The remote session was disconnected because there are no remote desktop client access licences available for this computer. Please contact your system administrator.

The easiest way to connect to remote PC is using Remote Desktop Protocol (RDP). Most common application to make a connection to remote PC is Remote Desktop Connection in Windows environment.

Sometimes you may get error while trying to make a Remote Desktop connection. Recently, I came across following error message:

The remote session was disconnected because there are no remote desktop client access licences available for this computer. Please contact your system administrator.

If you’re getting this error message, there are couple of ways to fix it.

Option 1: Run Remote Desktop Connection (mstsc.exe) application as “Run as administrator”.

Option 2: Still no luck with Option 1, try following below steps:

Note: Please backup registry and make a system restore point before making changes to Registry.

  •          Click on Start. Type Regedit and press Enter key.
  •          In Registry Editor, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing
  •          Right click on MSLIcensing and Delete the key.
  •          Reboot PC. When you try to make a remote connection again, this key will be rebuilt.
Hope you find it useful.


Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of error and shortcomings due to human or technical factors. www.TechieTalks.co.uk does not bear responsibility upon any loss or damage arising from conduct or activities related to the use of data and information contained in this blog.

Thursday, 19 May 2016

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 remote computername
  • Username – replace it with your admin user name
  • Password – enter your admin user account password
This will open a command line for that remote PC; enter this command to disable firewall:

C:\Windows\System32>Netsh advfirewall set allprofiles state off

This command will turn off all firewall profiles. If you want to turn off only current profile, replace allprofiles with currentprofile. Type “ON” instead of “OFF” if you want to turn ON firewall.

I hope you find this article informative.

Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of error and shortcomings due to human or technical factors. www.TechieTalks.co.uk does not bear responsibility upon any loss or damage arising from conduct or activities related to the use of data and information contained in this blog.

Monday, 2 May 2016

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 command to install desktop version, When Prompted, type Y and press Enter key.

Sudo apt-get install ubuntu-desktop

It will install required packages. You can use same command to install other packages. Replace ubuntu-desktop with the name of package you would like to install.

I hope you find this post informative. The more I will learn about Ubuntu server and its administration, I will share further information on it.

Disclaimer: www.TechieTalks.co.uk does not conceal the possibility of error and shortcomings due to human or technical factors. www.TechieTalks.co.uk does not bear responsibility upon any loss or damage arising from conduct or activities related to the use of data and information contained in this blog.