PowerTip: Creating an Empty Hash Table

Doctor Scripto

Summary:  Learn to create a Windows PowerShell hash table.

Hey, Scripting Guy! Question How can I create an empty hash table?

Hey, Scripting Guy! Answer Use @{} and assign it to a variable:

            $hash = @{}

0 comments

Discussion is closed.

Feedback usabilla icon