Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell: Add registry value based on current user

$
0
0

I would like to automate a network printer install that uses secure print. I can push the actual install out through group policy, but I need script that will assign each persons unique ID number to the printer settings. 

Get current user name

Check that user name against a spreadsheet or .txt file list. This list would have hundreds of unique user names in column A, and a unique ID number in column B.

Example:

Column A (username)               Column B (ID Number)

User 1      123456

User 2     789101

Write the ID number in column B to a specific registry value.

Any idea's??


Viewing all articles
Browse latest Browse all 15028

Trending Articles