Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Removing "test" configuration from a machine during development

$
0
0

During development of a new machine configuration, I’d like to be able to completely remove the currently “Pushed” configuration from the test machine. It’s not a VM, so I can’t just turn it off and have all changes be remove. One idea I had is simply you to Push out a new more or less empty configuration, such as the following:

>>>
Configuration ClearConfig
{
param
(
[string]
$MachineName
)

Node $MachineName
{
Log Nothing
{
Message = “Clearing configuration”
}
}
}

ClearConfig -MachineName localhost
>>>

Is there a better way to accomplish this “clearing out”?


Viewing all articles
Browse latest Browse all 13067

Trending Articles