Use global objects in Powershell ?


how use global objects in powershell modules ?

i use static objects , events available use in cmdlets in module.

any appreciated.

thank you.

to reference global variable (eg testvar) use $global:testvar.

see get-help about_scope more details scoping variables.


[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...