Remove global constant variables when a module is removed

rated by 0 users
This post has 0 Replies | 1 Follower

Not Ranked
Posts 7
Angshuman Posted: 04-25-2012 3:55 PM

Hi,

 I need to remove / unload constant global variables when a module gets removed using the remove-module cmdlet.

Additionally, the remove-variable documentation in MSDN says - 

You cannot use this cmdlet to delete variables that are set as constants or those that are owned by the system. http://technet.microsoft.com/en-us/library/dd347612.aspx

Is there any workaround or hack ?

Page 1 of 1 (1 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.