Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

How to set timezone within "BC" powershell script?

Posted on by 8
Hello to all,
 
I'm not the BC crack, so please forgive me for some gaps in my knowledge.
 
We create Users with this command:
New-NAVServerUser -ServerInstance SERVERINSTANCE -WindowsAccount $env:USERDOMAIN//$env:USERNAME -LanguageId de-DE -Company Company
 
 
  
This works fine, but afterwards the timezone is not correct. Is there a posability to set timezone within script?
 
Greetings
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,472 Super User 2024 Season 2 on at
    How to set timezone within "BC" powershell script?
    Hi, If you are on the On-Pre version, you may consider updating the table below directly.
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • Suggested answer
    How to set timezone within "BC" powershell script?
    Hi thanx for fast reply, but your link seems to lead how to script this within BC. 

    I want to try to script in windows powershell with bc tools integrated. (Business Central Administration Shell).
     
    Or do you want to say that there is NO way to solve in windows shell?
     
    Greetings
  • gdrenteria Profile Picture
    gdrenteria 12,167 Most Valuable Professional on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans