Skip to main content
Business Central forum
Suggested answer

How to set timezone within "BC" powershell script?

editSubscribe (2) ShareShare
ReportReport
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
Attachments
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 60,263 Super User 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 2,827 Super User on at

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,183 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,733 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans