In a PowerHail script, I want to get all SPAWeb objects.
If I use this command:
get-spat. Get-spweb I do not get the same result compared to the command:
get-spat. Foreach {Get-SpWeb-site $ _} [edit] The following command is also working, even in the default value of the range 200 is: Mill-Spatite | The second command gives back all the web, where before leaving some of them Why?
The actual output is as follows:
Why?
P>
psc: \ windows \ system32> Mill-Spatite | Get-spweb url --- http: // clients http: // clients / sites / Office_Viewing_Service_Cache http: // clients / xxxxxxx http: // intranet http: // intranet / pressreleases http: // intranet / search http: // / Intranet / wiki http: // intranet / sites / Office_Viewing_Service_Cache http: // my http: // my / personnel / yyyyy http: // my / sites / broadcast http: // my / sites / Office_Viewing_Service_Cache http: // projets Http: // projets / sites / zzzzzz http: // projets / sites / zzzzzz / gedqualite http: // projets / sites / Office_Viewing_Service_Cache http: // projets / sites / xxxxxxx http: // projets / sites / xxxxxxx / wwwww http : // projets / tfs / protocol http: // projets / tfs / protocol / pokerast PS c: \ windows \ system32 & gt; Mill-Spatite | Get-spweb -Limit all URLs --- http: // clients http: // clients / sites / Office_Viewing_Service_Cache http: // clients / xxxxxxx http: // intranet http: // intranet / pressreleases http: // intranet / search Http: // intranet / wiki http: // intranet / sites / Office_Viewing_Service_Cache http: // my http: // my / personnel / yyyyy http: // my / sites / broadcast http: // my / sites / Office_Viewing_Service_Cache HTTP: // projets http: // projets / sites / zzzzzz http: // projets / sites / zzzzzz / gedqualite http: // projets / sites / Office_Viewing_Service_Cache http: // projets / sites / xxxxxxx http: // projets / sites / xxxxxxx / Wwwww http: // projets / tfs / protocols http: // projets / tfs / protos / pokerstars http: // search http: // search / sites / Office_Viewing_Service_Cache http: // wiki http: // wiki / sites / Office_Viewing_Service_Cache < P> Do you have more than 200 total passes? Try to use
-Limit ALL
I think the first statement is a command, so there are only 200 fake returns < / P>
The second statement is more than one command, then go back (number of sites * 200) webs (if you have one)
Comments
Post a Comment