v2 assembly needed loaded


what need load make work in v2.

unable find type [parameter]: make sure assembly containing type loaded. other assemblies should have loaded.

thanks.

hi,

you dont need declare [parameter] if dont have parameters attribute:

param ( [string] $srcserver, [string] $srcdatabase, [string] $srctable, [string] $destserver, [string] $destdatabase,  [string] $desttable, [switch] $truncate  )  

but if must put it, must declare him attribute: [parameter(mandatory=$true)] or [parameter(position=0)] etc... not [parameter]



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL

Como saber quien entro a mi PC por la Red