Tuesday 27 December 2016

PICKFIRST (System Variable)

PICKFIRST (System Variable)

Controls whether you can select objects before you start a command.
Type:Integer
Saved in:Registry
Initial value:1
0
Off. You can select objects only after you start a command
1
On. You can also select objects before you start a command

Friday 2 December 2016

Making classic ASP error messages display in the browser

In IIS 7 (Windows 2008 Server) the default settings prevent ASP error messages from being displayed to the user. This is good in a working web site but error messages are essential during the development and debugging stages. The error messages can be switched on through IIS properties but they require two adjustments. Part of the IIS property screen is shown below and the two sections that need changes are highlighted, ASP and Error Pages.
Setting ASP error messages in IIS
First, double click the ASP icon to open the ASP page. Expand the Debugging Properties node and set Send Errors To Browser to True. This is not enough to get a detailed error message. At this stage it will only show the error defined by Script Error Message.
Making ASP errors appear
Go back to the IIS properties as shown above and open the section for Error Pages. Select the link marked Edit Feature Settings from the list on the right and this opens the following dialogue. If you are viewing the pages with the server's own browser, you can select the bottom radio button as shown. This is the recommended selection for a live website because it will send custom error pages to an end user. Customer error pages are configured at the previous screen. If you are developing on a different computer you must set the radio button to Detailed Errors. This will send the full error message with an error code and line number. This is not advisable for a live website and the radio button should be changed back when debugging is complete.
Showing detailed ASP error messages

Making errors display in Internet Explorer

Internet Explorer does not show proper error messages by default. To switch them on, go into Internet Options and find the checkbox marked "Show friendly HTTP error messages" which is located under the Advanced tab and Browsing.

Thursday 1 December 2016

Autodesk The software license check out failed. Error 20"

The software license check out failed. Error 20"

how you fix it is
1: Pull up run (windows button and r) and type in services.msc
2: Click on the standard tab at the bottom.
3: Find FLEXnet licensing service.
4: Right click on it and press properties.
5: Make the start-up type Automatic.
6: Under “service Status”, press start.


Start by deleting the C:\ProgramData\Flexnet directory (hidden)


Then reactivate license.

Wednesday 30 November 2016

Delete key does not work in AutoCAD

Delete key does not work in AutoCAD

Issue:

When selecting objects in AutoCAD and pressing the Delete key on your keyboard, nothing happens. The selected objects are not erased. Additionally, if you use the ERASE command or click Erase on the Modify menu, the selection set is cleared and you are prompted to select objects again.

Solution:

To resolve this problem, s et the PICKFIRST system variable to 1. When PICKFIRST is set to 0, selected objects are not erased when you press Delete. Set PICKFIRST to 1 to enable noun-verb selection:
  1. Enter pickfirst on the command line.
  2. Enter 1 at the prompt.
You can now select objects and press Delete to erase the selected objects.

If the issue is hardware related, disconnect and reconnect your keyboard or try a different keyboard.


Additional information
The PICKFIRST system variable affects the selection of objects for almost all commands, and it is the system variable that is changed when you toggle the noun/verb selection setting.
When PICKFIRST is set to 0, you invoke the command first, and then select the objects to which you want to apply the command.
When PICKFIRST is set to 1 (default), you can either:
  • Invoke the command first, and then select the objects to which you want to apply the command.
  • Select the objects first, and then invoke the command to apply to the selected objects.
With the Sysvar (System Variable) Monitor in AutoCAD 2016 (and newer) products, you can configure a list of system variables whose modifications will cause an alert at the command line, or also with a balloon notification. Pickfirst is a good choice to have monitored by this tool, as its effects are far-reaching within AutoCAD.

Monday 10 October 2016

EXPLORER.EXE corrupted or infected

Here's how to fix this issue:

1. CTRL-Alt-Del to bring up Task Manager.
2. Click File | New Task(run).
3. Type regedit in the Run box and click OK.
4. Browse to the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution.options

5. Under this key there will be subkeys named explorer.exe and iexplorer.exe. Delete the explorer and iexplorer keys entirely. They should not be listed under the Image File Execution.Options key.
6. Close the Registry Editor.
7. Restart the computer.

Assuming no other viruses / adware / spyware / malware are interfering, the Windows desktop should load fine now

Monday 3 October 2016

No more connections can be made to this remote computer/too many connection windows 2003 server

Currently I see 10 connections to the server.  If the 11th users tries to access the remote share on this server they receive the following message:

"No more connections can be made to this remote computer at this because there are already as many connection as the computer can accept."

how do you increase this from 10?  I thought Window server 2003 has suppose to support up to 65000 connections?

I have tried increasing the Max limit as suggested here:

2. Locate and then click to select the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\
CurrentControlSet\Services\Lanmanserver\Parameters
3. On the Edit menu, point to New, and then click DWORD Value.
4. Type MaxMpxCt, and then press ENTER.
5. Right-click MaxMpxCt, and then click Modify.
6. In the Value data box, type the desired value, and then click OK.

with no change.

Wednesday 28 September 2016

Reset Terminal license on Windows 2008, 2008 R2 and 2012


EventID: 1128
Source: TerminalServices-RemoteConnectionManager


The RD Licensing grace period has expired and the service has not registered with a license server with installed licenses. A RD Licensing server is required for continuous operation. A Remote Desktop Session Host server can operate without a license server for 120 days after initial start up.



The official solution is to Activate the RDS/TS CAL License server and point the Server to License server with User/Device License and will be resolve the problem

But if you want to reset the timer and again avail 120 days grace time  here is the solution

The solution was to delete the REG_BINARY in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
Only leaving the default.


Note: you must take ownership and give admin users full control to be able to delete this key.

After a reboot the server should be working again for another 120 Days

Full Form


LASER - Light Amplification by Stimulated Emission of Radiation
GSM - Global System for Mobile Communications
GPRS - General Packet Radio Service
LED - Light-Emitting Diode 
WiFi - Wireless Fidelity
GPS - Global Positioning System
CDMA - Code Division Multiple Access
UMTS – Universal Mobile Telecommunications System 
SIM - Subscriber Identity Module 
CCTV - Closed Circuit Television
LCD - Liquid Crystal Display
MMS - Multimedia Messaging Service
TFT  - Thin Film Transistor
ISD - International Subscriber Dialing
CNC - Computerized Numerical Control
RADAR - RAdio Detection And Ranging
FAX  - Facsimile
PDA - Personal Digital Assistant
MICR - Magnetic Ink Character Recognition
PCO - Public Call Office
CNG - Compressed Natural Gas
lbs - Symbol for POUND
CAD - Computer Aided Design
CRT - Cathode Ray Tube
MCB - Miniature Circuit Breaker
FM - Frequency Modulation
CMS - Content Management System    


         



Keyboard shortcuts for Windows

Windows system key combinations

  • F1: Help
  • CTRL+ESC: Open Start menu
  • ALT+TAB: Switch between open programs
  • ALT+F4: Quit program
  • SHIFT+DELETE: Delete item permanently
  • Windows Logo+L: Lock the computer (without using CTRL+ALT+DELETE)

Windows program key combinations

  • CTRL+C: Copy
  • CTRL+X: Cut
  • CTRL+V: Paste
  • CTRL+Z: Undo
  • CTRL+B: Bold
  • CTRL+U: Underline
  • CTRL+I: Italic

Mouse click/keyboard modifier combinations for shell objects

  • SHIFT+right click: Displays a shortcut menu containing alternative commands
  • SHIFT+double click: Runs the alternate default command (the second item on the menu)
  • ALT+double click: Displays properties
  • SHIFT+DELETE: Deletes an item immediately without placing it in the Recycle Bin

General keyboard-only commands

  • F1: Starts Windows Help
  • F10: Activates menu bar options
  • SHIFT+F10 Opens a shortcut menu for the selected item (this is the same as right-clicking an object
  • CTRL+ESC: Opens the Start menu (use the ARROW keys to select an item)
  • CTRL+ESC or ESC: Selects the Start button (press TAB to select the taskbar, or press SHIFT+F10 for a context menu)
  • CTRL+SHIFT+ESC: Opens Windows Task Manager
  • ALT+DOWN ARROW: Opens a drop-down list box
  • ALT+TAB: Switch to another running program (hold down the ALT key and then press the TAB key to view the task-switching window)
  • SHIFT: Press and hold down the SHIFT key while you insert a CD-ROM to bypass the automatic-run feature
  • ALT+SPACE: Displays the main window's System menu (from the System menu, you can restore, move, resize, minimize, maximize, or close the window)
  • ALT+- (ALT+hyphen): Displays the Multiple Document Interface (MDI) child window's System menu (from the MDI child window's System menu, you can restore, move, resize, minimize, maximize, or close the child window)
  • CTRL+TAB: Switch to the next child window of a Multiple Document Interface (MDI) program
  • ALT+underlined letter in menu: Opens the menu
  • ALT+F4: Closes the current window
  • CTRL+F4: Closes the current Multiple Document Interface (MDI) window
  • ALT+F6: Switch between multiple windows in the same program (for example, when the Notepad Find dialog box is displayed, ALT+F6 switches between the Find dialog box and the main Notepad window)

Shell objects and general folder/Windows Explorer shortcuts

For a selected object:
  • F2: Rename object
  • F3: Find all files
  • CTRL+X: Cut
  • CTRL+C: Copy
  • CTRL+V: Paste
  • SHIFT+DELETE: Delete selection immediately, without moving the item to the Recycle Bin
  • ALT+ENTER: Open the properties for the selected object

To copy a file

Press and hold down the CTRL key while you drag the file to another folder.

To create a shortcut

Press and hold down CTRL+SHIFT while you drag a file to the desktop or a folder.

General folder/shortcut control

  • F4: Selects the Go To A Different Folder box and moves down the entries in the box (if the toolbar is active in Windows Explorer)
  • F5: Refreshes the current window.
  • F6: Moves among panes in Windows Explorer
  • CTRL+G: Opens the Go To Folder tool (in Windows 95 Windows Explorer only)
  • CTRL+Z: Undo the last command
  • CTRL+A: Select all the items in the current window
  • BACKSPACE: Switch to the parent folder
  • SHIFT+click+Close button: For folders, close the current folder plus all parent folders

Windows Explorer tree control

  • Numeric Keypad *: Expands everything under the current selection
  • Numeric Keypad +: Expands the current selection
  • Numeric Keypad -: Collapses the current selection.
  • RIGHT ARROW: Expands the current selection if it is not expanded, otherwise goes to the first child
  • LEFT ARROW: Collapses the current selection if it is expanded, otherwise goes to the parent

Properties control

  • CTRL+TAB/CTRL+SHIFT+TAB: Move through the property tabs

Accessibility shortcuts

  • Press SHIFT five times: Toggles StickyKeys on and off
  • Press down and hold the right SHIFT key for eight seconds: Toggles FilterKeys on and off
  • Press down and hold the NUM LOCK key for five seconds: Toggles ToggleKeys on and off
  • Left ALT+left SHIFT+NUM LOCK: Toggles MouseKeys on and off
  • Left ALT+left SHIFT+PRINT SCREEN: Toggles high contrast on and off

Microsoft Natural Keyboard keys

  • Windows Logo: Start menu
  • Windows Logo+R: Run dialog box
  • Windows Logo+M: Minimize all
  • SHIFT+Windows Logo+M: Undo minimize all
  • Windows Logo+F1: Help
  • Windows Logo+E: Windows Explorer
  • Windows Logo+F: Find files or folders
  • Windows Logo+D: Minimizes all open windows and displays the desktop
  • CTRL+Windows Logo+F: Find computer
  • CTRL+Windows Logo+TAB: Moves focus from Start, to the Quick Launch toolbar, to the system tray (use RIGHT ARROW or LEFT ARROW to move focus to items on the Quick Launch toolbar and the system tray)
  • Windows Logo+TAB: Cycle through taskbar buttons
  • Windows Logo+Break: System Properties dialog box
  • Application key: Displays a shortcut menu for the selected item

Microsoft Natural Keyboard with IntelliType software installed

  • Windows Logo+L: Log off Windows
  • Windows Logo+P: Starts Print Manager
  • Windows Logo+C: Opens Control Panel
  • Windows Logo+V: Starts Clipboard
  • Windows Logo+K: Opens Keyboard Properties dialog box
  • Windows Logo+I: Opens Mouse Properties dialog box
  • Windows Logo+A: Starts Accessibility Options (if installed)
  • Windows Logo+SPACEBAR: Displays the list of Microsoft IntelliType shortcut keys
  • Windows Logo+S: Toggles CAPS LOCK on and off

Dialog box keyboard commands

  • TAB: Move to the next control in the dialog box
  • SHIFT+TAB: Move to the previous control in the dialog box
  • SPACEBAR: If the current control is a button, this clicks the button. If the current control is a check box, this toggles the check box. If the current control is an option, this selects the option.
  • ENTER: Equivalent to clicking the selected button (the button with the outline)
  • ESC: Equivalent to clicking the Cancel button
  • ALT+underlined letter in dialog box item: Move to the corresponding item

Tuesday 27 September 2016

Cancel CHKDSK Using Command Prompt

To cancel scheduled chkdsk using the Command Prompt, press “Win + X” and select the option “Command Prompt (Admin)” in Windows 8. If you are using Windows 7 or Vista, search for the command prompt in the start menu, right-click on it and select the option “Run as administrator” to start the elevated command prompt.
Select the option 'Command Prompt (Admin).'
Before trying to cancel the scheduled chkdsk, you can actually see if there is a scheduled task. To do that, simply enter the following command in the Command Prompt and press the Enter button. If there is a chkdsk task scheduled you will receive a response that is similar to “chkdsk has been scheduled manually to run on next reboot.”
chkntfs C:
Check to see if there is a scheduled task.
Once you have confirmed, copy the below command and enter it in the command prompt to cancel the scheduled chkdsk task. As soon as you execute the command, Windows will cancel the task and display a response that doesn’t make any sense.
chkntfs /x C:
Cancel the scheduled CHKDSK task.
If you want to, just run the first command discussed above to see if the chkdsk scan is still effective. If there is no scheduled task, Windows will display a response that reads something like “Drive is not dirty.”
If there is not a scheduled task, Windows will display a response.
Besides using the Command Prompt, you can also cancel scheduled chkdsk from the Windows registry. To do that, press “Win + R,” type regedit and press the Enter button to  open the Windows Registry editor.
Cancel scheduled CHKDSK from Windows registry.
Here, navigate to the following key in the left pane.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
Navigate to the following key in the left pane.
Find and double click on the Multi-String value “BootExecute.”
Find and double click on the Multi-String value 'BootExecute.'
The above action will open the “Edit Multi-String” window. Replace the string autocheck autochk * /r\DosDevice\C: with the below string. Once replaced, click on the “Ok” button to save the changes.
autocheck autochk *
Replace the string autocheck autochk * /r\DosDevice\C:
That’s all there is to do, and it is that simple to cancel a scheduled chkdsk scan on a Windows system either by using the command prompt or by using the Windows Registry.
Even though cancelling the scheduled chkdsk scan is fairly easy, it is recommended that you continue the scan as it is quite essential for your Windows operations and also helps you in recovering some critical errors on your hard disk.
Hopefully that helps, and do comment below sharing your thoughts and experiences by using the above methods to cancel scheduled chkdsk scans on your Windows system.

Thursday 22 September 2016

Updated List of OS Version Queries for WMI Filters

Updated List of OS Version Queries for WMI Filters

Group PolicyMore likely than not, if you’re using Group Policy to push out software installation or registry entries to client machines or servers on the domain, the policy may be different depending on the OS version or architecture.
Examples, Group Policy Objects may need to be filtered by:
  • Desktop / Server
  • Domain Controller / Non-Domain Controller
  • 32-bit / 64-bit
If you haven’t used WMI filters before, they show up in Group Policy Management at the bottom, between Group Policy Objects and Starter GPOs.
Common OS WMI Filters
The WMI filters use a query to scope down the application of the Group Policy Object applicability. Here’s what a typical WMI OS filter looks like:
WMI filter
select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="1" AND OSArchitecture = "64-bit"
WMI Win32_OperatingSystem ProductType Tips:
ProductType 1 = Desktop OS
ProductType 2 = Server OS – Domain Controller
ProductType 3 = Server OS – Not a Domain Controller
WMI Win32_OperatingSystem Version Number Tips:
5.1 – Windows XP
5.2 – Windows Server 2003
5.2.3 – Windows Server 2003 R2
6.0 – Windows Vista & Windows Server 2008
6.1 – Windows 7 & Windows Server 2008 R2
6.2 – Windows 8 & Windows Server 2012
6.3 – Windows 8.1 & Windows Server 2012 R2
To create your own WMI filters, here is an updated list of WMI filter queries from Window XP – Windows 8.1 and from Server 2003 to Server 2012 R2.
IMPORTANT DISCLAIMER:
Always test your Group Policies and WMI filters before deploying.

DESKTOPS

ANY WINDOWS DESKTOP OS

  • Any Windows Desktop OS – Version 1
    select * from Win32_OperatingSystem WHERE ProductType = "1"
  • Any Windows Desktop OS – Version 2 (better for Win7 sometimes)
    select * from Win32_OperatingSystem WHERE (ProductType <> "2") AND (ProductType <> "3")
  • Any Windows Desktop OS – 32-bit
    select * from Win32_OperatingSystem WHERE ProductType = "1" AND NOT OSArchitecture = "64-bit"
  • Any Windows Desktop OS – 64-bit select * from Win32_OperatingSystem WHERE ProductType = "1" AND OSArchitecture = "64-bit"

WINDOWS XP

  • Windows XP
    select * from Win32_OperatingSystem WHERE (Version like "5.1%" or Version like "5.2%") AND ProductType="1"
  • Windows XP – 32-bit
    select * from Win32_OperatingSystem WHERE (Version like "5.1%" or Version like "5.2%") AND ProductType="1" AND NOT OSArchitecture = "64-bit"
  • Windows XP – 64-bit
    select * from Win32_OperatingSystem WHERE (Version like "5.1%" or Version like "5.2%") AND ProductType="1" AND OSArchitecture = "64-bit"

WINDOWS VISTA

  • Windows Vista
    select * from Win32_OperatingSystem WHERE Version like "6.0%" AND ProductType="1"
  • Windows Vista – 32-bit
    select * from Win32_OperatingSystem WHERE Version like "6.0%" AND ProductType="1" AND NOT OSArchitecture = "64-bit"
  • Windows Vista – 64-bit
    select * from Win32_OperatingSystem WHERE Version like "6.0%" AND ProductType="1" AND OSArchitecture = "64-bit"

WINDOWS 7

  • Windows 7
    select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="1"
  • Windows 7 – 32-bit
    select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="1" AND NOT OSArchitecture = "64-bit"
  • Windows 7 – 64-bit
    select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="1" AND OSArchitecture = "64-bit"

WINDOWS 8

  • Windows 8 select * from Win32_OperatingSystem WHERE Version like "6.2%" AND ProductType="1"
  • Windows 8 – 32-bit
    select * from Win32_OperatingSystem WHERE Version like "6.2%" AND ProductType="1" AND NOT OSArchitecture = "64-bit"
  • Windows 8 – 64-bit
    select * from Win32_OperatingSystem WHERE Version like "6.2%" AND ProductType="1" AND OSArchitecture = "64-bit"

WINDOWS 8.1

  • Windows 8.1
    select * from Win32_OperatingSystem WHERE Version like "6.3%" AND ProductType="1"
  • Windows 8.1 – 32-bit select * from Win32_OperatingSystem WHERE Version like "6.3%" AND ProductType="1" AND NOT OSArchitecture = "64-bit"
  • Windows 8.1 – 64-bit
    select * from Win32_OperatingSystem WHERE Version like "6.3%" AND ProductType="1" AND OSArchitecture = "64-bit"

SERVERS

ANY WINDOWS SERVER OS

  • Any Windows Server OS
    select * from Win32_OperatingSystem where (ProductType = "2") OR (ProductType = "3")
  • Any Windows Server OS – 32-bit
    select * from Win32_OperatingSystem where (ProductType = "2") OR (ProductType = "3") AND NOT OSArchitecture = "64-bit"
  • Any Windows Server OS – 64-bit
    select * from Win32_OperatingSystem where (ProductType = "2") OR (ProductType = "3") AND OSArchitecture = "64-bit"
  • Any Windows Server – Domain Controller
    select * from Win32_OperatingSystem where (ProductType = "2")
  • Any Windows Server – Domain Controller – 32-bit
    select * from Win32_OperatingSystem where (ProductType = "2") AND NOT OSArchitecture = "64-bit"
  • Any Windows Server – Domain Controller – 64-bit
    select * from Win32_OperatingSystem where (ProductType = "2") AND OSArchitecture = "64-bit"
  • Any Windows Server – Non-Domain Controller
    select * from Win32_OperatingSystem where (ProductType = "3")
  • Any Windows Server – Non- Domain Controller – 32-bit
    select * from Win32_OperatingSystem where (ProductType = "3") AND NOT OSArchitecture = "64-bit"
  • Any Windows Server – Non-Domain Controller – 64-bit
    select * from Win32_OperatingSystem where (ProductType = "3") AND OSArchitecture = "64-bit"

WINDOWS SERVER 2003

  • Windows Server 2003 – DC
    select * from Win32_OperatingSystem WHERE Version like "5.2%" AND ProductType="2"
  • Windows Server 2003 – non-DC
    select * from Win32_OperatingSystem WHERE Version like "5.2%" AND ProductType="3"
  • Windows Server 2003 – 32-bit – DC
    select * from Win32_OperatingSystem WHERE Version like "5.2%" AND ProductType="2" AND NOT OSArchitecture = "64-bit"
  • Windows Server 2003 – 32-bit – non-DC
    select * from Win32_OperatingSystem WHERE Version like "5.2%" AND ProductType="3" AND NOT OSArchitecture = "64-bit"
  • Windows Server 2003 – 64-bit – DC
    select * from Win32_OperatingSystem WHERE Version like "5.2%" AND ProductType="2" AND OSArchitecture = "64-bit"
  • Windows Server 2003 – 64-bit – non-DC
    select * from Win32_OperatingSystem WHERE Version like "5.2%" AND ProductType="3" AND OSArchitecture = "64-bit"

WINDOWS SERVER 2003 R2

  • Windows Server 2003 R2 – DC
    select * from Win32_OperatingSystem WHERE Version like "5.2.3%" AND ProductType="2"
  • Windows Server 2003 R2 – non-DC
    select * from Win32_OperatingSystem WHERE Version like "5.2.3%" AND ProductType="3"
  • Windows Server 2003 R2 – 32-bit – DC
    select * from Win32_OperatingSystem WHERE Version like "5.2.3%" AND ProductType="2" AND NOT OSArchitecture = "64-bit"
  • Windows Server 2003 R2 – 32-bit – non-DC
    select * from Win32_OperatingSystem WHERE Version like "5.2.3%" AND ProductType="3" AND NOT OSArchitecture = "64-bit"
  • Windows Server 2003 R2 – 64-bit – DC
    select * from Win32_OperatingSystem WHERE Version like "5.2.3%" AND ProductType="2" AND OSArchitecture = "64-bit"
  • Windows Server 2003 R2 – 64-bit – non-DC
    select * from Win32_OperatingSystem WHERE Version like "5.2.3%" AND ProductType="3" AND OSArchitecture = "64-bit"

WINDOWS SERVER 2008

  • Windows Server 2008DC
    select * from Win32_OperatingSystem WHERE Version like "6.0%" AND ProductType="2"
  • Windows Server 2008 – non-DC
    select * from Win32_OperatingSystem WHERE Version like "6.0%" AND ProductType="3"
  • Windows Server 2008 – 32-bit – DC
    select * from Win32_OperatingSystem WHERE Version like "6.0%" AND ProductType="2" AND NOT OSArchitecture = "64-bit"
  • Windows Server 2008 – 32-bit – non-DC
    select * from Win32_OperatingSystem WHERE Version like "6.0%" AND ProductType="3" AND NOT OSArchitecture = "64-bit"
  • Windows Server 2008 – 64-bit – DC
    select * from Win32_OperatingSystem WHERE Version like "6.0%" AND ProductType="2" AND OSArchitecture = "64-bit"
  • Windows Server 2008 – 64-bit – non-DC
    select * from Win32_OperatingSystem WHERE Version like "6.0%" AND ProductType="3" AND OSArchitecture = "64-bit"

WINDOWS SERVER 2008 R2

  • Windows Server 2008 R2 – 64-bit – DC
    select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="2"
  • Windows Server 2008 R2 – 64-bit – non-DC
    select * from Win32_OperatingSystem WHERE Version like "6.1%" AND ProductType="3"

WINDOWS SERVER 2012

  • Windows Server 2012 – 64-bit – DC
    select * from Win32_OperatingSystem WHERE Version like "6.2%" AND ProductType="2"
  • Windows Server 2012 – 64-bit – non-DC
    select * from Win32_OperatingSystem WHERE Version like "6.2%" AND ProductType="3"

WINDOWS SERVER 2012 R2

  • Windows Server 2012 R2 – 64-bit – DC
    select * from Win32_OperatingSystem WHERE Version like "6.3%" AND ProductType="2"
  • Windows Server 2012 R2 – 64-bit – non-DC
    select * from Win32_OperatingSystem WHERE Version like "6.3%" AND ProductType="3"

Tuesday 20 September 2016

How do I print a listing of files in a directory?

  1. Get to the MS-DOS prompt or the Windows command line.
  2. Navigate to the directory containing the content you'd like a list to print. If you're new to the command line, familiarize yourself with the cd command and the dir command.
  3. Once in the directory you want to print the contents of, type one of the below commands.
dir > print.txt
The above command takes a list of all the files and all of the information about the files, including size, modified date, etc., and sends that output to the print.txt file in the current directory.
dir /b > print.txt
The above command would print only the file names and not the file information of the files in the current directory.
dir /s /b > print.txt
The above command would print only the file names of the files in the current directory and any other files in the sub-directories within the current directory.
  1. After executing any of the above commands, the print.txt file is created. Open this file in any text editor (e.g. Notepad) and print the file. You can also print from the command prompt by typing notepad print.txt.

Wednesday 27 July 2016

How to change the listening port for Remote Desktop

How to change the listening port for Remote Desktop

Let me fix it myself

To change the port that Remote Desktop listens on, follow these steps.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
  1. Start Registry Editor.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
  3. On the Edit menu, click Modify, and then click Decimal.
  4. Type the new port number, and then click OK.
  5. Quit Registry Editor.
  6. Restart the computer.
Note When you try to connect to this computer by using the Remote Desktop connection, you must type the new port. Maybe you have to set the firewall to allow the new port number before you connect to this computer by using the Remote Desktop connection.

Friday 22 July 2016

How to hack or crack IDM manually

How to hack or crack IDM manually.

Step 1: Download the IDM trial or If you already have IDM installed Update it by going to Help---}} then to check for Updates. If you don&...
 
 
Step 1: Download the IDM trial or If you already have IDM installed Update it by going to Help---}} then to check for Updates. If you don't wanna update your version, Just click on Registration.

Step2:
When you click on registration, Now a new dialog appears that is asking for Name, Last Name, Email Address and Serial Key.

Step3: Now Enter you name, last name, email address and in field of Serial Key enter any of the following Keys:

RLDGN-OV9WU-5W589-6VZH1
HUDWE-UO689-6D27B-YM28M
UK3DV-E0MNW-MLQYX-GENA1
398ND-QNAGY-CMMZU-ZPI39
GZLJY-X50S3-0S20D-NFRF9
W3J5U-8U66N-D0B9M-54SLM
EC0Q6-QN7UH-5S3JB-YZMEK
UVQW0-X54FE-QW35Q-SNZF5
FJJTJ-J0FLF-QCVBK-A287M And click on ok to register.

Step4: Now after you click ok, it will show an error message that you have registered IDM using fake serial key and IDM will exit. Now here the hack starts.

Step5: Now Go to START --}} Then go to RUN and type the following text and click enter:
notepad %windir%\system32\drivers\etc\hosts
For Windows 7 users, due to security reasons you will not be able to save hosts file.

First of all go to C:/ drive then go to Windows Folder and then go to System32 folder and then go to Drivers folder and then go to Etc Folder, in the Etc folder you will see the hosts file. Now right click on hosts file and go to its properties, then go to security tab and then select your admin account, just below u will see an edit button (in front of change permissions), Now give the user full control and write and read rights and then click on apply and then click on Ok, now u will be able to edit the hosts file and save changes in it.

Step6:
Now a notepad file appears something

Now copy the below lines of code and add to hosts file as shown above:

127.0.0.1 tonec.com
127.0.0.1 www.tonec.com
127.0.0.1 registeridm.com
127.0.0.1 www.registeridm.com
127.0.0.1 secure.registeridm.com
127.0.0.1 internetdownloadmanager.com
127.0.0.1 www.internetdownloadmanager.com
127.0.0.1 secure.internetdownloadmanager.com
127.0.0.1 mirror.internetdownloadmanager.com
127.0.0.1 mirror2.internetdownloadmanager.com

After adding these piece of code, save the notepad file. And exit from there. Now start your Internet download manager, and now you IDM has been converted to full version and specially when you update next time, your registration will not expire. That means it will remain full version for life time and you can update it without any problem.

Saturday 9 July 2016

There is no disk in the drive. Please insert a disk into Drive\Device\Harddisk1\DR1

i suppose these simple steps might help you;
start you computer
go to start button
run
type regedit (this will open the registry Editor )
go to HKEY_ LOCAL _MACHINE
SYSTEM
CurrentControlSet
control
windows( this will open  a list on the right side of the window)
go to error mode
this will open edit DWORD Value window
change the value data from 0 to 2
then change base to Decima then press ok button
then on the registry editor window, go to view tab and press refresh
close the window and restart your computer.
THE ERROR WILL BE SUPPRESSED.
THE PROBLEM OCCURS DUE TO AN INFECTION BY A VIRUS IN YOUR COMPUTER.
I HOPE THIS WILL SOLVE YOUR PROBLEM

Thursday 7 July 2016

Verifying License… AutoCAD not responding… Crash!

Verifying License… AutoCAD not responding… Crash!

Windows 10, Windows 7, Windows 8 and Windows 8.1 users (32bit and 64bit) – If you are encountering Autodesk licensing issues such as blank Authorization code (authcode) screens or even crashing on startup with messages like “Verifying license…” then “AutoCAD has stopped responding” when launching AutoCAD, it could be caused by:
  1. The July 2014 Windows Security Update KB2962872
    1. these KB’s may also affect your system too – KB2943357, KB2977629 and KB2976627
  2. You are using a version of Microsoft Internet Explorer which is not compatible with your version of AutoCAD
NOTE: If you are primarily seeing script errors, then first check out how to enable scripting support in IE 11
Here is a list of AutoCAD versions (and other similarly labeled Autodesk products too) that most likely will be affected…
  • AutoCAD 2005
  • AutoCAD 2006
  • AutoCAD 2007
  • AutoCAD 2008
  • AutoCAD 2009
  • AutoCAD 2010
  • AutoCAD 2011
  • AutoCAD 2012
  • AutoCAD 2013
  • AutoCAD 2014
Windows Security Update KB2962872
This update can causes all Autodesk products to crash on licensing verification specifically when using these newer versions of Microsoft Internet Explorer
  • Internet Explorer 10
  • Internet Explorer 11
You can very easily uninstall KB2962872 using these short steps:
  1. Open your Windows Control Panel
  2. Navigate to Programs
  3. Click View Updates
  4. Now search for KB2962872, if KB2962872 is listed there, simply select it in the listbox and then click uninstall
  5. Let your machine take a while to think, now reboot.
  6. Now try your Autodesk product again.
If the KB2962872 doesn’t solve the problem, these KB’s may also affect your system – KB2943357, KB2977629 and KB2976627
Another reason is that because you have Microsoft Internet Explorer 11 installed on your system. The solution is to rollback to Microsoft Internet Explorer 10, or maybe back as far as Internet Explorer 8
Failing that, I did find this link on the Autodesk website regarding ‘Script Errors in AutoCAD activation‘ – perhaps it helps  somehow.

Friday 3 June 2016

PRI vs SIP Trunking – Main Differences

What are the Major Differences?

 PRI

  • PRI (Primary Rate Interface) is a physical connection to the PSTN over a dedicated line that only serves voice transmission.
  • PRI uses a circuit switched model for making voice connections between people
  • PRI has a guaranteed Quality of Service (QoS)

SIP Trunking

  • SIP (Session Initiating Protocol) Trunking is a virtual connection to the PSTN over a physical line that is often shared over your existing data connection.
  • SIP Trunking uses a packet switched model for making voice connections between people
  • SIP Trunking is typically Best Effort


Let’s Talk – PRI

A PRI is a single line (typically a T1 connection in North America) with 23 voice channels (and a single data/control channel), that allows your business to hold 23 calls simultaneously.  This is not always equivalent to the number of phone numbers a business has.  Your business may have 100 phone numbers that are directed to come across a single PRI, however, you will only be allowed to hold 23 phone conversations at once.

 

 

Let’s Talk – SIP 

In short, SIP Trunking is a method of sending your voice connection over an existing data line, and therefore is commonly referred to as VoIP (Voice over Internet Protocol).  

Your call goes out over the SIP Trunk, is treated exactly like every other piece of data on that connection and is not given priority over webpages, emails, or instant messages. 

 

  Once it arrives at your carriers network over the SIP Trunk, your provider’s equipment knows where to direct that call; this may either switch it over to the PSTN (so that someone with a regular phone can receive the call) or perhaps send it to a PBX at another location. A single SIP Trunk is typically limited only by the amount of bandwidth on your data connection, or in some cases, limited by the number of “call paths” you are purchasing from your SIP Trunk provider.

 

 

 

 

 

 

 

 

 

 

 

 


 

Wednesday 25 May 2016

Error 1606:Could not access network location Autodesk\Autocad

1606 Error + Autodesk 20xx installation + Product Initialization

We have been getting a lot of 1606 errors recently with various Autodesk products.  One suggestion that has worked to resolve this issue has been to...
1. Run regedit.exe.
2. Browse to:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Please check for “Name” =  Common Documents defined as C:\Users\Public\Documents
 
If you cannot find registry key name and data, please add below registry information under:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Key name    : Common DocumentsType            : REG_SZData             : C:\Users\Public\Documents
 Public




OR Maybe another cause

Public folder exist or not in c:\users

 

Tuesday 17 May 2016

RDP: Suddenly plagued with "Because of an error in data encryption..."

Remote Desktop Connection
---------------------------
Because of an error in data encryption, this session will end. Please try connecting to the remote computer again.
 
 
To resolve this issue, follow these steps:
  1. Start Registry Editor.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\TermService\Parameters
  3. Under this registry subkey, delete the following values:
    • Certificate
    • X509 Certificate
    • X509 Certificate ID
  4. Quit Registry Editor, and then restart the server.
Does anyone have any suggestions please as I'm at a total loss what is happening here.
Thanks.
 

Monday 16 May 2016

Remove and Re-add License Key for Office 2013


Introduction

Having been on Microsoft Office 365 for a few months now, we started to notice that when users who had activated software on a PC were removed from Office 365, the software would go into "grace period" and would continually notify the new user of the PC that there was a problem. The trouble was I could not figure out how to reassign the software license to the new user. Finally I have found steps that will accomplish this without having to repair/reinstall office.

1.

Open Command Prompt on PC

Open a Command Prompt window, and then take one of the following actions:
• If you installed the 64-bit version of Office 2013, move to the following folder: C:\Program Files\Microsoft Office\Office15

• If you installed the 32-bit version of Office 2013, move to the following folder: C:\Program Files (x86)\Microsoft Office\Office15

2.

Display the Current License(s)

Type the following command to display the license status. Note the last five characters of any and all license keys that display in the output:
cscript ospp.vbs /dstatus

3.

Remove the License(s)

Now run the following command as many times as needed to remove all of the license keys you noted from the previous step.
cscript ospp.vbs /unpkey:<last five characters of product key>

4.

Restart the Computer

Once the remove commands are successfull, close the command prompt and restart the PC.

5.

Reactivate MS Office 2013 with New Account

Launch one of the MS Office 2013 applications (I like to use Word). The application should prompt you to reactivate the by providing your sign-on ID. Enter in the new user's credentials and the software will now be licensed under their ID.





Wednesday 4 May 2016

Website Added to the Whitelist Does Not Load Completely

Website Added to the Whitelist Does Not Load Completely

by hshah on ‎07-05-2013 04:25 PM - edited on ‎08-27-2015 04:13 PM by editeur (3,348 Views)

Issue

A website is added to the whitelist on the Palo Alto Networks firewall. However, when navigating to the website on a web browser, the page displays only partial content.

Cause

The issue may be due to the dependency, within the web page, on content from sites in the blocked list.

Details

To whitelist any website add the URL using the following format:
www.<site>/
<site>
*.<site>/

For example:
To add skype.com to the whitelist, use the following format:
www.skype.com/
skype.com
*.skype.com/

For this scenario, assume that all other sites are in the blocked category. Open www.skype.com with a browser (Chrome is used for this example). The page shows only partial content because the page calls for content from websites in the blocked category.

Resolution

Check the whitelisted web page for content references to other sites. Then, add those sites to the whitelist.

For example, using the Chrome browser with skype.com:
  1. Right click on skype.com web-page and click on Inspect content.
  2. Click on Network tab.
  3. Reload the page.
  4. Then, click on Network tab again.

Tuesday 12 April 2016

Change the Google Drive default folder

Change the Google Drive default folder
Use this tip to change the default folder location in Windows
1) Click on the Google Drive icon in your system tray
2) Choose Quit Google Drive
3) Now move the Google Drive folder within Windows Explorer to a new location
4) Restart Google Drive from Start --> All Programs
5) Google Drive will warn you that it can't find the folder, click on the Google Drive icon again and choose Error - Google Drive folder is missing
6) A window will open up, choose Locate folder and go find the new Google Drive folder.

Wednesday 30 March 2016

The system cannot log you on due to the following error: The RPC server is unavailable

CAUSE
There can be a few reasons for this problem:

     1. Incorrect DNS settings.

     2. Incorrect Time and Time zone settings.

     3. The "TCP/IP NetBIOS Helper" service isn't running.

     4. The "Remote Registry" service isn't running.



RESOLUTION
  1. Verity correct DNS settings.

               Troubleshooting "RPC Server is Unavailable" in Windows
              

    2. Verity correct Time and Time Zone settings.

    3. Verity that "TCP/IP NetBIOS Helper" is running and set to auto start after restart.

    4. Verity that "Remote Registry" is running and set to auto start after restart.


  •      Its recommended to reboot the computer after changing the required settings.

Tuesday 23 February 2016

How to use Excel's VLOOKUP function

What exactly is VLOOKUP?

Basically, VLOOKUP lets you search for specific information in your spreadsheet. For example, if you have a list of products with prices, you could search for the price of a specific item.
We're going to use VLOOKUP to find the price of the Photo frame. You can probably already see that the price is $9.99, but that's because this is a simple example. Once you learn how to use VLOOKUP, you'll be able to use it with larger, more complex spreadsheets, and that's when it will become truly useful.
screenshot of Microsoft Excel
We'll add our formula to cell E2, but you can add it to any blank cell. As with any formula, you'll start with an equals sign (=). Then type the formula name. Our arguments will need to be in parentheses, so type an open parenthesis. So far, it should look like this:
=VLOOKUP(

Adding the arguments

Now, we'll add our arguments. The arguments will tell VLOOKUP what to search for and where to search.
The first argument is the name of the item you're searching for, which in this case is Photo frame. Because the argument is text, we'll need to put it in double quotes:
=VLOOKUP("Photo frame"
The second argument is the cell range that contains the data. In this example, our data is in A2:B16. As with any function, you'll need to use a comma to separate each argument:
=VLOOKUP("Photo frame", A2:B16
Note: It's important to know that VLOOKUP will always search the first column in this range. In this example, it will search column A for "Photo frame". In some cases, you may need to move the columns around so the first column contains the correct data.
The third argument is the column index number. It's simpler than it sounds: The first column in the range is 1, the second column is 2, etc. In this case, we are trying to find the price of the item, and the prices are contained in the second column. This means our third argument will be 2:
=VLOOKUP("Photo frame", A2:B16, 2
The fourth argument tells VLOOKUP whether to look for approximate matches, and it can be either TRUE or FALSE. If it is TRUE, it will look for approximate matches. Generally, this is only useful if the first column has numerical values that have been sorted. Because we're only looking for exact matches, the fourth argument should be FALSE. This is our last argument, so go ahead and close the parentheses:
=VLOOKUP("Photo frame", A2:B16, 2, FALSE)
That's it! When you press Enter, it should give you the answer, which is 9.99.
screenshot of Microsoft Excel

How it works

Let's take a look at how this formula works. It first searches vertically down the first column (VLOOKUP is short for vertical lookup). When it finds "Photo frame", it moves to the second column to find the price.
screenshot of Microsoft Excel
If we want to find the price of a different item, we can just change the first argument:
=VLOOKUP("T-shirt", A2:B16, 2, FALSE)
or:
=VLOOKUP("Gift basket", A2:B16, 2, FALSE)

Another example

Are you ready for a slightly more complicated example? Let's say we have a third column that has the category for each item. This time, instead of finding the price we'll find the category.
screenshot of Microsoft Excel
To find the category, we'll need to change the second and third arguments in our formula. First, we'll change the range to A2:C16 so it includes the third column. Next, we'll change the column index number to 3 because our categories are in the third column:
=VLOOKUP("Gift basket", A2:C16, 3, FALSE)
When you press Enter, you'll see that the Gift basket is in the Gifts category.
screenshot of Microsoft Excel

Macro to Change All Text in a Cell Range to Initial Capital Letters

Macro to Change All Text in a Range to Uppercase Letters


Sub Uppercase()
   ' Loop to cycle through each cell in the specified range.
   For Each x In Range("A1:A5")
      ' Change the text in the range to uppercase letters.
      x.Value = UCase(x.value)
   Next
End Sub
    

Macro to Change All Text in a Range to Lowercase Letters


Sub Lowercase()
   ' Loop to cycle through each cell in the specified range.
   For Each x In Range("B1:B5")
      x.Value = LCase(x.Value)
   Next
End Sub
    

Macro to Change All Text in a Cell Range to Initial Capital Letters


Sub Proper_Case()
   ' Loop to cycle through each cell in the specified range.
   For Each x In Range("C1:C5")
      ' There is not a Proper function in Visual Basic for Applications.
      ' So, you must use the worksheet function in the following form:
      x.Value = Application.Proper(x.Value)
   Next
End Sub
    

Testing the Sample Macros

To test the sample macros, follow these steps:
  1. In the same workbook that contains the macros, enter the following sample data into a new worksheet:
        A1: toM         B1: toM        C1: toM
        A2: sUe         B2: sUe        C2: sUe
        A3: joe SMITH   B3: joe SMITH  C3: joe SMITH
        A4: mary        B4: mary       C4: mary
        A5: LORI        B5: LORI       C5: LORI
          
    NOTE: This sample data contains text formatted in various cases that you can use to verify how each macro works.
  2. Run each of the macros.
The text in the range specified in the macro (in the line that reads "For each x in ...") will be formatted in uppercase, lowercase, or initial capitals, as appropriate.