HOW TO set NAV Service Startup Type via PowerShell

When you create a new Instance using the command New-NAVServerInstance it will set the Startup Type of the NAV Service as “Automatic” by default.

I haven’t found any NAV command to change it, so let us think about NAV Service as any other Windows Service.

In PowerShell there is a command Set-Service that allows to change an existing Service.

NAV Service names have the following format

MicrosoftDynamicsNavServer$<ServerInstance>

where <ServerInstance> is the name of the NAV Instance

So running the following command we can change the Startup Type to Automatic, Manual or Disabled.

Set-Service –Name "MicrosoftDynamicsNavServer`$DynamicsNAV100" –StartupType Manual

This example will set the NAV Service for the Server Instance DynamicsNAV100 to Manual.

Unfortunately -StartupType parameter does not have a value for Automatic (Delayed Start)

So it seams a bit tricky but just looking into the register I’ve noted that the other services that had Automatic (Delayed Start) as Startup Type have a REG_DWORD value called “DelayedAutoStart” with value 1 under HKLM\System\CurrentControlSet\Services\

So the idea is use the previous command to set the Startup Type to Automatic then add REG_DWORD via script

Set-Service –Name "MicrosoftDynamicsNavServer`$DynamicsNAV100" –StartupType Automatic
Set-ItemProperty -Path "Registry::HKLM\System\CurrentControlSet\Services\MicrosoftDynamicsNavServer`$DynamicsNAV100" -Name "DelayedAutostart" -Value 1 -Type DWORD

In reality we could setup everything from the registry

Set-ItemProperty -Path "Registry::HKLM\System\CurrentControlSet\Services\MicrosoftDynamicsNavServer`$DynamicsNAV100" -Name "Start" -Value 2 -Type DWORD
Set-ItemProperty -Path "Registry::HKLM\System\CurrentControlSet\Services\MicrosoftDynamicsNavServer`$DynamicsNAV100" -Name "DelayedAutostart" -Value 1 -Type DWORD

NOTE 1: Both scripts will work only if the current Startup Type is different of Automatic
NOTE 2: “DelayedAutostart” DWORD will have effect only if you setup the Service Type as Automatic.

Did my HOW TO help you? Leave a reply.

HOW TO display the Menu bar in Windows Internet Explorer (IE)

Since Windows Internet Explorer 7 the menu bar is hidden by default, to display it you can press Alt.

If you’d like it to be always displayed follow these simple steps:

  1. Launch IE
  2. press Alt to display the menu bar
  3. click View -> Toolbars
  4. check Menu bar
  5. check Lock the bars if you want lock the displayed bars

With the same steps you can display/hide different bars: Favorites bar, Command bar and Status bar.

For Systems Engineers:

It’s possible enable/disable the menu bar setting Local Computer Policy.
Run gpedit.msc and expand
Computer Configuration node to set the Policy for all users that use the computer
or
User Configuration node to set the Policy only for current user
Administrative Templates -> Windows Components -> Internet Explorer
Double-click
or
Right-click and select Edit
on Turn on menu bar by default, choose
Enabled to enable always displayed menu bar
or
Disabled/Not Configured to disable always displayed menu bar
then click OK.

For Network Administrators:

You can set the policy as above using Group Policy Management
Run gpmc.msc in the Domain Controller (DC) and
Create a GPO in this domain, and Link it here…
or
select an existing Group Policy Object (GPO), right-click and select Edit
in your
Forest
or
Organization Unit (Domain)
or
Site.

Did my HOW TO help you? Leave a reply.

Adobe Reader Protected Mode

When you try to open a pdf file with Adobe Reader show the following message:

Adobe Reader Protected Mode
Adobe Reader cannot open in Protected Mode due a problem with your system configuration. Would you like to open Adobe Reader with Protected Mode disabled?

• Open with Protected Mode disabled
• Always open with Protected Mode disabled
• Do not open with Protected Mode disabled

Adobe Reader Protected Mode

Solution 1:
If you choose one of the first two options, the file opens, with the third no.

Solution 2:
To change your system configuration, launch Adobe Reader

click Edit menu then select Preferences…
or
use shortcut Ctrl+K

Inside General category uncheck “Enable Protected Mode at startup” on the bottom of the page.
Then click Yes in the confirm alert window

Adobe Reader
You have to chosen to turn off Reader’s protected mode. In order for these changes to take effect, you would have to manually restart the application.

Are you sure you want to continue?

Adobe Reader Protected Mode Turn Off Alert

and then click OK on bottom of the page to close Preferences window.
Close Adobe Reader.

Note:
If you use the Microsoft Application Virtualization (App-V) Softgrid Client or Citrix Receiver, the Acrobat Reader is an application different from your local installation. You have to change the configuration here rather that in your local installation. I suggest you to open the file using the first option then change system configuration from this window.

Did my solution solve your problem? Leave a reply.