Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Newbies
Hi There,

I am writing a system script that needs to be run using an admin account on a Windows Server 16 machine. However when I try to set this up it says that the script is missing or invalid.

The login details I am entering are to an admin account on the local Windows Server 2016 machine. I have tried both these, and the default administrator account.

If I try to enter the login details for the FMS16 account it says Invalid account.

For now I am just trying to run a test script. This script executes successfully when I run it manually as well as when I schedule it to run using the default account.
 
Code in test.bat:
@ECHO OFF 
PowerShell.exe -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\Program Files\FileMaker\FileMaker Server\Data\Scripts\test1.ps1'";
 
Code in test1.ps1:
$put = "C:\Program Files\FileMaker\FileMaker Server\Data\Scripts\test.txt"
$filecontent = "Hello World"
$filecontent | Out-File $put -Encoding ASCII
 
Screenshot 1 shows the option I am talking about. For the test if I do not tick this then it executes fine.
Screenshot 2 is showing that it comes up as missing or invalid.

Screenshot 1.png

Screenshot 2.png

Edited by Ben_TFS

Have you tried "putting" the test.txt file somewhere outside the program files folder? Ie, in the user folder of Ben? Windows (as of v8 I think) gets pretty cranky when you tried to write to the program files folder. I would say it's a permissions problem.

  • Author
  • Newbies

Hi Olger,

Yes it is a permissions problem, which is why I am trying to get a script to run using an admin account.

The point I was trying to get across with this script is that it will run if I use the default account but will say it is "missing or invalid" when trying to run it using admin credentials. The actual script sequence I am trying to set up definitely does need admin permissions in order to work.

  • 10 months later...

A bit late to the party, but I ran into this issue now and thought I'd provide my solution in case it helps someone.

I found out that you need to provide the domain name also on Windows, even if you are using a local account.

Something like: MyWindowsServer\administrator

You can find your complete user name by running the command whoami in the command console.

Edited by Andreas T.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.