Quantcast
Channel: Security forum
Viewing all articles
Browse latest Browse all 12072

setting up a local user on multiple computers with a different password for each computer

$
0
0

Good morning,

The situation is that we want to create a new local user on a bunch of servers, but since they are geographically dispersed, we'd like it so that this local user has a password unique to that location, but that the password shares something with the rest of local user accounts. I've thought of perhaps someway that group policy or powershell could get the last 4 digits of the MAC address, or perhaps something that pulls the location name from Active Directory.

For example, Let's say my "base" is Boron1. the servers that are in NY, they'd get the password of Boron1NY because they are in the NY OU. The servers in the Utah OU of UTH would get Boron1UTH.

But then I thought that getting a powershell script that could pull either the OU or the last 4 of the MAC address.

My question is, how do I do this in powershell?


Viewing all articles
Browse latest Browse all 12072

Trending Articles