Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Weirdness with Get-Date

$
0
0

So I was testing a script today, and noticed-

“Get-Date -Format d” as my regular (non domain admin) user returns regular date- 24/11/16

“Get-Date -Format d” in a new Powershell session (started with runas) on the same PC returns the date in North American format- 11/24/16

System locale in both shells tells me it’s en-au, so what gives?

These are both domain users, running the same command on the same system…where exactly does Powershell look to get its time formatting?

Edit: Windows 10 Pro 64 bit, Powershell 5

submitted by /u/danspanner
[link] [comments]

The post Weirdness with Get-Date appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles