I want get contentlibrary name from user in my PowerShell script. I know the command is Get-ContentLibraryItem -ContentLibrary 'content2' but want get content library name "which here is content2" by user how can write it ?
You mean like this?
$clName = Read-Host -Prompt "Name of the content library"
Get-ContentLibraryItem -ContentLibrary $clName
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Can anyone help me about this?
Moderator: Moved to VMware PowerCLI Discussions
You mean like this?
$clName = Read-Host -Prompt "Name of the content library"
Get-ContentLibraryItem -ContentLibrary $clName
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference