[Scopes] Execute command in specific scope
hello fellow powershell users,
i looking way execute command in specific scope of choice. while commands offer choice in how that, many not. ideas on how this?
background:
find useful or necessary affect items on scope. variables that's not issue, items aliases or functions that's not quite simple, since standard provider cmdlets appear work within current scope (and allscope option on aliases joke - can remove-item them day long without affecting them in parent scope, es documentation suggests should work).
that situation got me thinking, , knowing on how great.
cheers,
fred
there's no place 127.0.0.1
to knowledge, there's no public, supported way of doing this. if don't mind playing reflection , snooping around internal workings of powershell, might find way make work. if , breaks, though, you'd on own. no 1 in microsoft or in community able and willing to support it.
Windows Server > Windows PowerShell
Comments
Post a Comment