Categories
HOW TO Microsoft PowerShell Windows 10 Windows 7 Windows 8 / 8.1 Windows Server 2008 Windows Server 2012 Windows Server 2016

HOW TO find last time a server has been restarted

To check when a server/VM has been restarted last time is a recurrent task for who works in IT.

Open the Command Prompt or Windows PowerShell and run the following command:

systeminfo 

The result will show the Ststem Boot Time as shown in the following sreenshot

For futher information can be found in the Microsoft Docs.

Did my HOW TO help you? Leave a reply.

Categories
Business Central Dynamics NAV Microsoft PowerShell

Import-NAVData : The specified file does not exist at the specified location

I was trying to import NAV data using PowerShell but received the following error message:

Import-NAVData : The specified file does not exist at the specified location

Solution:

If the file path is in a user-specific folder (e.g. in the Desktop), move it under C drive.

Syntax used:

Import-NAVData -ServerInstance BC -CompanyName "My Company" -IncludeGlobalData -FilePath "C:\Company.navdata"

Did my solution solve your problem? Leave a reply.