How to Fix: Microsoft Word Error, can’t save to OneDrive, can’t save…

The Error

Word saving files to onedrive

Sorry we couldn’t find https://……… is it possible it was moved, renamed or deleted?
The file you are merging into is currently in use, Please try again later.

The Fix

We need to repair the Office.

Method 1

1 Use start menu to search “Control” then open control panel or Use Win + R key combination to open “Run window”

Microsoft Windows - Run window
Microsoft Windows – Run window

Then type “appwiz.cpl” then hit Enter key to bring up the “Programs and Features” window

2 Find office, click on “Change -> Repair”

Method 2

If you are using office 365, you can just download the office installation file from Microsoft, then repair install.

Possible Errors during installation/rearing

If the following error appears

Installing office
Something went wrong
Error Code: 30010-4

Close all windows related to the office and office rearing properly.

Restart the Windows Operating System.

Then try to install office again.

When the rearing or installation is done, there should be on problem to save to OneDrive, OneDrive for business, or save to local hard drive.


How to: Find Largest file on Windows, Windows 7, Windows 10, Microsoft Windows, Windows Server (Disk Space Usage)

For finding largest file/folder or showing disk space usage on Linux, refer to this one: (Linux Command Line/ Terminal Disk Space Usage tool (Find largest folder/file))

Sometimes, we want to find largest files or folders from our computer, especially when we are running out of space on hard drive. Because spending time to find different small useless files and then delete them can be very time consuming and after all it’s possible that we have only deleted couple MB of files which won’t help much. Remove one or two huge files or folders may help a lot.

Here is a list of software which can be used just for this purpose and for free, even better, some are open source.

WinDirStat

WinDirStat
WinDirStat
  • Easy to use
  • Free, Open Source
  • Can be installed
  • Portable version available (via portableapps)

SpaceSniffer

SpaceSniffer
SpaceSniffer
  • Easy to use
  • Free
  • Portable version available

WizTree

WizTree
WizTree
  • Easy to use
  • Free
  • Can be installed
  • Portable version available

Summary

Out of three, WinDirStat is the only open source one, Space Sniffer and WinTree are both freeware only.

WinDirStat does not provide official portable version, but portable version can be downloaded from portableapps. Both SpaceSniffer and WizTree provide official portable version.

All of them are very easy to use, the user interface of WinDirStat and WizTree are very similar, you click on the tile or block to reveal the file name, while SpaceSniffer displays the file and folder name directly on the tile/block.

Bottom line, choose whichever you like to use or give all of them a try and decide which one to go with, or even keep all of them in your bag, backup plan will not hurt 😉

Download/Resource

  1. WinDirStat
  2. SpaceSniffer
  3. WinTree

Make the touchpad better on Windows

Note: Make sure you have a backup mouse ready before you start following steps

Windows 10 – Precision Touchpads settings

1 Use Win + I key to Open the Settings App

2 Navigate to “Devices -> Touchpad” or just use following link

Click here to bring up touchpad settings page directly (ms-settings:devices-touchpad)

Windows 10 Settings - Touchpad
Windows 10 Settings – Touchpad

Then you can start to customize different gestures

Windows - Settings - Other gestures
Windows – Settings – Other gestures
Windows - Advanced gesture configuration
Windows – Advanced gesture configuration

Precision Touchpad Driver (If Windows 10 Precision Touchpad settings is not showing up)

If you did not see those options in touchpad settings page, try to install the driver, see if the option appears after that.

First we need to find out if our touchpad is mad by Synaptics or ELAN.

1 Launch the Run window via Win + R key combination

Microsoft Windows - Run window
Microsoft Windows – Run window

2 Enter “devmgmt.msc”

3 Now the Device Manager is opened

4 Look for “Mice and other pointing devices”

Device Manager
Device Manager

5 Expand it, see if we have Synaptics or ELAN

6 If it’s Synaptics open this link: https://www.catalog.update.microsoft.com/Search.aspx?q=synaptics

ELAN open this link: https://www.catalog.update.microsoft.com/Search.aspx?q=ELAN%20wdf

7 Download latest version of the driver from the website

8 When downloaded, open the file, extract it, find the “dpinst.exe”

9 Double click on it to install it

10 Restart the device once the installation is done

11 Follow step 1 to 4 again find the touchpad device, right click on it then click on “Update driver”, reboot maybe required after updating

12 Now you should be able to see the Windows 10 Precision Touchpad options.

Third-party software solution

If the above steps still not working, we can try to install a software which will dramatically improve our touchpad experience as well and it’s free!

The software is named “GestureSign”, even better, we can download it from Microsoft store for free

Microsoft Store- GestureSign
Microsoft Store- GestureSign

Description from Microsoft Store

GestureSign is a gesture recognition software for Windows tablet, Precision Touchpad and mouse. You can automate repetitive tasks by simply drawing a gesture with your fingers or mouse.

GestureSign supports the following commands:

  • Activate Window
  • Window Control
  • Touch Keyboard Control
  • Keyboard simulation
  • Key Down/Up
  • Mouse Simulation
  • Send Keystrokes
  • Open Default Browser
  • Screen Brightness
  • Volume Adjustment
  • Run Command Prompt Commands
  • Open File or Website
  • Launch Windows Store App
  • Send Message
  • Toggle Window Topmost
GestureSign - Action
GestureSign – Action
GestureSign - Gesture
GestureSign – Gesture
GestureSign - Options
GestureSign – Options
GestureSign - Ignored
GestureSign – Ignored

Click here to Download

How to: Quickly remove printer jobs from Windows, Quickly reset printer jobs

Method 1

1 Save following text to ResetPrinterJob.cmd or ResetPrinterJob.bat

Simple version

rem https://dannyda.com
net stop spooler
del /q /s c:\windows\system32\spool\printers*.*
net start spooler

Verbose version

@echo off
echo dannyda.com
echo(
NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 0 (
    ECHO Administrator PRIVILEGES Detected! 
) ELSE (
    ECHO This script has to be run with Administrator PRIVILEGES!
    ECHO(
    ECHO The script will now terminate.
    @pause
    exit
)
echo(
net stop spooler
del /q /s c:\windows\system32\spool\printers.
net start spoolerA
if %ERRORLEVEL% == 0 goto :successful
echo "Errors encountered during execution.  Exited with status: %errorlevel%"
goto :failed
:successful
echo The printer is ready for use again!
@pause
exit
:failed
echo "Script completed with error"
@pause

2 Run ResetPrinterJob.cmd or ResetPrinterJob.bat in Admin mode.

3 Now the printer is ready to be used again.

Method 2

1 Open “Task Manager” by using Ctrl + Alt + Deletekey combination or right click on task bar then click on “Task Manager”

2 Click on “Services” tab

3 Find “Spooler”

4 Right click on it then click on “Stop”

5 Open file explorer navigate to “C:\Windows\system32\spool\PRINTERS”

6 Delete all files within the folder (Do not delete the “C:\Windows\system32\spool\PRINTERS” folder)

7 Bring back the Task Manager, start the Spooler service

8 Now the printer is ready to be used again.


How to: Solve math equation/Algebra step by step? Mobile App and Windows Software

Are you an student? Trying to resolve an math equation? Don’t know how to resolve it even the final answer is in front of you? Read on! 😉

Microsoft created two free Math tools which can help you to get the answer, even better, it can show you step by step resolution, so that you understand and learn how to get the final answer rather than copy the final answer.

Microsoft Math Solver

With this mobile app, we can input math equation by three ways:

  • Scan from writing (Take photo from exercise book etc.)
  • Handwriting directly within the App
  • Enter the equation by using builtin math keyboard

It will then return final results with steps which you can expand and learn.

Microsoft Math Solver
Microsoft Math Solver
Microsoft Math Solver - Snap and Solve
Microsoft Math Solver – Snap and Solve
Microsoft Math Solver - Draw and Practice
Microsoft Math Solver – Draw and Practice
Microsoft Math Solver - Explore and Learn
Microsoft Math Solver – Explore and Learn
Microsoft Math Solver - Steps
Microsoft Math Solver – Steps
Microsoft Math Solver - Steps
Microsoft Math Solver – Steps
Microsoft Math Solver - Graph
Microsoft Math Solver – Graph
Microsoft Math Solver - Handwriting
Microsoft Math Solver – Handwriting
Microsoft Math Solver - Built-in math keyboard
Microsoft Math Solver – Built-in math keyboard
Microsoft Math Solver - Built-in math keyboard
Microsoft Math Solver – Built-in math keyboard
Microsoft Math Solver - Resolve
Microsoft Math Solver – Resolve
Microsoft Math Solver - Scan
Microsoft Math Solver – Scan
Microsoft Math Solver - Resolve
Microsoft Math Solver – Resolve
Microsoft Math Solver - Resolve
Microsoft Math Solver – Resolve
Microsoft Math Solver - Resolve
Microsoft Math Solver – Resolve
Microsoft Math Solver - Final Answer
Microsoft Math Solver – Final Answer

Microsoft Mathematics

This free software can be used on Microsoft Windows to resolve math equations.

Microsoft Mathematics
Microsoft Mathematics
Microsoft Mathematics - Main Window
Microsoft Mathematics – Main Window
Microsoft Mathematics - Resolve linear equation in two variable
Microsoft Mathematics – Resolve linear equation in two variable
Microsoft Mathematics - Resolve linear equation in two variable, Steps
Microsoft Mathematics – Resolve linear equation in two variable, Steps
Microsoft Mathematics - Resolve linear equation in two variable, Steps
Microsoft Mathematics – Resolve linear equation in two variable, Steps

Keywords: Solve math equation, solve linear equation, solve linear equation in two variable, solve math problems, software, application, app, computer program, free, Algebra


How to: compare Files/Code/Folders/Images/Pictures – List of three Open source Comparing Software/Tools

WinMerge

WinMerge
WinMerge
  • Windows
  • Open source/Free
  • Compare text files/source code files/folders/images
  • Easy to use

WinMerge

Notepad ++

Notepad++ with Compare plugin
Notepad++ with Compare plugin
  • Windows
  • Open source/Free
  • Compare text files/source code files
  • Easy to use

Notepad++

By default Notepad++ doesn’t have compare function.

We can make it possible by easily installing a compare plugin after Notepad++ is installed.

“Plugins -> Plugins Admin…-> Search for “Compare -> Check “Compare” -> Click “Install” button. -> Click on Yes when the pop-up window appears” After it’s done, Notepad++ will restart itself.

Notepad++ -> Plugins Admin
Notepad++ -> Plugins Admin
Notepad++ Install Compare plugin
Notepad++ Install Compare plugin
Click on Yes
Click on Yes
Wait until it's downloaded and installed
Wait until it’s downloaded and installed

Now we can see the Compare plugin is installed. “Plugins -> Compare”

Compare plugin installed
Compare plugin installed

Diffuse

Diffuse
Diffuse
  • Windows/Linux
  • Open source/Free
  • Compare text files/source code files
  • Easy to use

Diffuse

DiffImg

DiffImg
DiffImg
  • Windows/Linux
  • Open source/Free
  • Compare Image files
  • Easy to use

DiffImg

There are many free online text/source code compare and image compare tools as well which doesn’t require any installation, can be handy when it needs to be done quickly, not suitable for huge files or images or any confidential content.


Windows PowerShell: “… .ps1 cannot be loaded because running script is disabled on this system, for more information see about_Execution_Policies at….”

The Error

When executing some PowerShell scripts, this error comes up.

… .ps1 cannot be loaded because running script is disabled on this system, for more information see about_Execution_Policies at https://go,microsoft.com/fwlink/?LinkID=135170

The Fix

1 Enter following command then hit Enter key in PowerShell

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted

2 Enter Y or A to continue when prompted.

3 Now we can run the script again, this time there should be no error returned.


Useful Windows network commands

1 ping

Usually, it can be used for testing the connectivity and the network latency in millisecond (ms)

TTL: Time To Live

ping <host name>
ping <domain name>
ping <IP address>
ping google.com
ping google.com

1.1 ping 127.0.0.1: Check if the Network interface controller (NIC), TCP/IP protocol, subnet mask works.

1.2 ping the current host’s IP address: Check if local configuration/installation are correct. (If not, we can check network equipment and cables.)

1.3 ping IP within the current subnet: Check if the NIC works in local area network (LAN), if there is no reply, it means that the subnet mask may be incorrect, network cable issue, configuration issue etc.

1.4 ping default gateway: Check if the gateway works.

1.5 ping remote IP address: Check if the default gateway works, if the device can get on to internet.

1.6 ping localhost: localhost is an operating system (OS) reserved host name. It resolves to 127.0.0.1. Usually, devices should be able to resolve this to such address, otherwise there can be something wrong with the host file (/Window/host for Windows) (/etc/host for Linux)

1.7 ping www.google.com: It will be resolved to IP address first via querying DNS server, if not resolved, it can be the DNS server is not configured correctly or DNS server is not working. Sometimes it can be the domain is blocked by firewall in local area network. (ping can be blocked completely by firewall as well.) Or simply, the domain does not exist.

ping IP -t: ping the IP address continuously until Ctrl + C is pressed.

ping IP -l 1000: ping with specified length (1000 bytes) (default is 32 byte)

ping IP -f -l 1492: ping with specified length without fragmenting the packet.

ping IP -n 10: execute the ping command 10 times.

Note: Ping command can be blocked by firewall deployed in the LAN, while it is a useful and helpful command for troubleshooting the network issues most of the time, but do not rely on it entirely and draw conclusion completely from ping command. Better to use it as a reference.

2 ipconfig

Used for checking TCP/IP configuration. Release, Renew DHCP leasse. Flush DNS cache etc.

2.1 ipconfig: Show IP address, Subnet Mask, Default Gateway of the interface

2.2 ipconfig /all: Show all details including DNS, WINS and extra information, MAC address, DHCP server IP address, DHCP lease obtained time, expire time etc.

2.3 ipconfig /release: Release all IP addresses obtained from DHCP server

2.4 ipconfig /renew: Renew the IP address from DHCP server, usually it will be the same IP address before “ipconfig /release”

2.5 ipconfig /flushdns: Flush DNS cache in Windows

2.6 ipconfig /displaydns: Print DNS cache from local machine on screen. (We can use ipconfig /displaydns > C:\dns-cache.txt to save output to text file for easier diagnostic)

3 tracert (traceroute)

Windows: tracert

Linux: traceroute

Used for checking routing condition/path and latency etc.

tracert <host name>
tracert <domain name>
tracert <IP address>
tracert google.com
tracert google.com

Output with 5 columns

Column 1: The number of the hop

Column 2: Round Trip Time 1 (RTT 1)

Column 3: RTT 2

Column 4: RTT 3

Column 5: IP address, name of the router

If any packet loss happen, “*” will be used instead of time in “ms”

4 arp (Address Resolution Protocol)

Used to check the corresponding Media Access Control Address (MAC address) of the IP address.

Can be used to output ARP cached information from current device or other devices. Manually set the MAC/IP pair.

arp -a
arp -a <IP>
arp -s <IP>
arp -d <IP>

4.1 arp -a: Show all data in ARP cache

4.2 arp -a IP: Only show all ARP cache from one of the NIC associated with the specified IP address

4.3 arp -s IP MAC: Manually add the IP MAC pair as static ARP cache to the system (Persistent across reboots)

4.4 arp -d IP: Manually delete a static ARP cache

5 route

Used for checking and configuring routing information.

route print
route add
route change

5.1 route print: Show current routing table

5.2 route add:

e.g. To configure a routing table for reaching 192.168.1.11, through 5 networks, via one of the route on local network which is 192.168.2.22, where the subnet is 255.255.255.224, then the following command will be used

route add 192.168.1.11 mask 255.255.255.224 192.168.2.22 metric 5

5.3 route change:

Can be used to change the path for the routing table but not the routing destination.

e.g. Change the above example from metric 5 to metric 2

route change 192.168.1.11 mask 255.255.255.224 metric 2

5.4 route delete: Delete routing table.

route delete 192.168.1.11

6 nslookup

Used to find out domain name/IP address of an host. Usually require DNS server.

6.1 nslookup: Show current configured DNS server on the host

nslookup

6.2 nslookup google.com: Use the default DNS server to check DNS records

nslookup goolge.com

6.3 nslookup google.com 8.8.8.8: Use the google DNS server (8.8.8.8) to resolve domain (google.com)

nslookup google.com 8.8.8.8
nslookup google.com 8.8.8.8
nslookup google.com 8.8.8.8

6.4 nslookup <IP address> <DNS server>: Reverse lookup

nslookup 8.8.8.8 8.8.8.8
nslookup 8.8.8.8 8.8.8.8
nslookup 8.8.8.8 8.8.8.8

7 netstat

Get current network information from current host.

Show active TCP connections, Ports the host listening on, Ethernet information, IP routing table, IPv4 information (IP, ICMP, TCP, UDP protocol), IPv6 information (IPv6, ICMPv6, TCP, UDP over IPv6).

7.1 netstat

Show active TCP connections

netstat

7.2 netstat -a: Show all connections, including “ESTABLISHED”, “LISTENING” states. (With host name/domain)

7.3 netstat -n: List the detail in IP address rather than host name/domain name.

7.4 netstat -e: Show statistical data about Network interface. (Total Bytes transferred, Errors, Discards, Unicast packets, Unknown protocols, Non-unicast packets)

7.5 netstat -r: Similar to route print, the output is similar to rout print command as well. Output routing table information.

Network DestinationDestination network
0.0.0.0Unknown network (Added automatically when using default gateway)
127.0.0.0Local host network address
224.0.0.0Multicast address
255.255.255.255Broadcast address
NetmaskNetmask address
GatewayGateway address
InterfaceInterface address
MetricHops

8 nbtstat

Used to troubleshoot NetBIOS.

8.1 nbtstat -n: Show information about your workgroup.

8.2 nbtstat -a <IP Aaddress>: Show NetBIOS information about that device

9 net

Used for service related, network related.

9.1 net help: Get more help

9.2 net hep <command> e.g. net help accounts: To get help on that specific net command (accounts in this case)

CommandExampleDescription
NET ACCOUNTSNET ACCOUNTSShow current accounts information
NET CONFIGNET CONFIG SERVER (or WORKSTATION)Show network configuration
NET GROUPNET GROUPShow groups (Only available on Domain Controller)
NET SENDNET SEND server1 “test message”Send broadcast message to other computers
NET SHARENET SHAREShow shared files/folders from local host
NET STARTNET START FaxStart service
NET STOPNET STOP FaxStop service
NET STATISTICSNET STATISTICS WORKSTATION (or SERVER)Show network statistics
NET USENET USE x:\serverFolderMap network drive with letter
NET USERNET USERShow accounts/users on local host
NET VIEWNET VIEWShow available computers on network

How to: Create/Add/Delete/Remove/List Users/Groups with Command Prompt/Command line in Windows (net command)

Keywords: Windows command prompt, command line, cmd, Add Users, Create Users, Delete Users, Remove Users, List Users, Add local groups, Create local groups, Delete local groups, List local groups, net command

Launch the Command Prompt (In Admin mode)

We should launch the Command Prompt in Administrator mode.

  • Use Win + X key combination -> “Windows PowerShell (Admin)”

or

  • Open start menu -> Type “cmd” -> Right click on “Command Prompt” -> Run as administrator

Add a New User

net user username password /add

net user user1 1234 /add
net user username password /add
net user username password /add

Add a user to a group

net localgroup administrator username /add

e.g. add user to local administrator group

net localgroup administrators user1 /add
net localgroup administrators user1 /add
net localgroup administrators user1 /add

Add a New Local Group

net localgroup newGroupName /add

net localgroup newgroup /add
net localgroup newgroup /add
net localgroup newgroup /add

List All Users

net user

net user
net user
net user

List information about a specific User

net user userName

net user win10
net user win10
net user win10

List All Users with Sid

WMIC useraccount get name

WMIC useraccount get name,sid

WMIC useraccount get name
WMIC useraccount get name,sid
WMIC useraccount get name,sid
WMIC useraccount get name,sid

List All Local Groups

net localgroup

net localgroup
net localgroup
net localgroup

Remove a User from a Local Group

net localgroup groupName userName /delete

net localgroup administrators user1 /delete
net localgroup administrators user1 /delete
net localgroup administrators user1 /delete

Remove a Local Group

net localgroup groupname /delete

net localgroup mygroup /detele
net localgroup mygroup /detele
net localgroup mygroup /detele

Remove a User

net user username /delete

net user user1 /delete
net user user1 /delete
net user user1 /delete

Windows Operating System Penetration – Disable security measures via commands

We must have obtained admin privilege first, then execute following commands under administrator privilege.

  • Disable built-in firewall
netsh advfirewall set allprofiles state off
Disable Windows firewall
Disable Windows firewall

  • Disable Windows Defender (Via sc stop or net stop command, or via registry)

  • Disable DEP
bcdedit.exe /set {current} nx AlwaysOff 

  • Disable Bitlocker
manage-bde -off C:

(Use following command to check Bitlocker status)

manage-bde -status C:
manage-bde
manage-bde