Use "New-NAVServerUser" Powershell command in Container

ImperatorMing
Member Posts: 13
I want to use the New-NAVServerUser Command in a container to create a new Nav User. The Container has been build this way:

When im done, i try the following script:

As you can imagine, the Username of the Windows Account on the mashine the container is running on is "User". So this wont work and the error occurs:

This is, because NEWCONTAINER/User already exists. Now I want to create a new Windows User in the container to use the New-NAVServerUser Command. Does anyone Know how it works?
So the overall goal is to get a new NavUser in Table "User 2000000120" on Page "Users 9800" and the User should base on a Windows Account.
Thanks for answers!

When im done, i try the following script:

As you can imagine, the Username of the Windows Account on the mashine the container is running on is "User". So this wont work and the error occurs:

This is, because NEWCONTAINER/User already exists. Now I want to create a new Windows User in the container to use the New-NAVServerUser Command. Does anyone Know how it works?
So the overall goal is to get a new NavUser in Table "User 2000000120" on Page "Users 9800" and the User should base on a Windows Account.
Thanks for answers!
0
Best Answers
-
Since you are using docker, open the desktop icon called NewContainer PowerShell Prompt. That opens inside the context of the container.
Are you sure NewContainer\User isn't already in table 2x120? Freddy's scripts do an injection into that table at the same time it creates the windows account. Try Get-NavServerUser and it will show you all of the current users defined in BC.
Kyle Hardin - ArcherPoint5 -
navcontainerhelper has a function "New-NavContainerWindowsUser". Follow that up with "New-NavContainerNavUser":
5
Answers
-
Since you are using docker, open the desktop icon called NewContainer PowerShell Prompt. That opens inside the context of the container.
Are you sure NewContainer\User isn't already in table 2x120? Freddy's scripts do an injection into that table at the same time it creates the windows account. Try Get-NavServerUser and it will show you all of the current users defined in BC.
Kyle Hardin - ArcherPoint5 -
navcontainerhelper has a function "New-NavContainerWindowsUser". Follow that up with "New-NavContainerNavUser":
5 -
Tanks, booth answers have helped.
@kylehardin
I forgot the possibility to use the PS of the corresponding Container. Tahnks for Remembering. "Get-NavServerUser" shows, as i already mentioned, that the User is already defined. Using "New-LocalUser" allows me to create a new Windows User. Afterwards i was able to create a BC User based on this new Windows User using "New-NavServerUser -WindowsAccount [...]".0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions