[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

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Domain migration ERR3:7075 Failed to change domain affiliation, hr=8007054a This operation is only allowed for the Primary Domain Controller of the domain

How do a find data in one file, search for it in another file and if not found, write a custom message to another file