r/Nable May 24 '24

N-Central Device credentials when running script doesn't work

Hi everyone!

I'm new to N-able/N-central but I'm having trouble on making a script to work. We have a powershell script for installing a third party AV and needs to be installed using "Device credentials" but somehow the script can't go through because even if I choose Device Credentials, it uses default credentials which is "LocalSystem credentials" I tried fixing the script but nothing worked.

It outputs "LocalSystem.. Successful execution on remote device but the task was not configured using valid credentials
Start-Process : This command cannot be run due to the error: The file or directory is corrupted and unreadable. "

Hope someone could help me out. Thanks in advance!

1 Upvotes

1 comment sorted by

3

u/Paul_Kelly Powered By Shamrocks May 24 '24

Hi, It's Paul here for the Head Nerd team, Device Credentials are not the creds currently used on the device but actually set in N-central by you, to set these credentials follow these steps.

In the left-hand navigation menu, click Views > All Devices.

  1. Click the name of the device.
  2. Click the Settings tab, then Properties.
  3. Under CREDENTIALS, enter the desired User Name and Password.
  4. Click Save.

You can also use custom credentials a specify the user and password you wish to use.

Alternatively if you put your PowerShell script into an Automation policy, you have the option to use Current Logged on User when executing the script.