Skip to main content

Posts

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:

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.   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_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 f

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) " } -

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 (op

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 degr

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\MSLicensi

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