{"id":175,"date":"2018-05-25T13:00:40","date_gmt":"2018-05-25T11:00:40","guid":{"rendered":"http:\/\/demo.mekshq.com\/voice\/?p=175"},"modified":"2025-01-09T13:31:22","modified_gmt":"2025-01-09T12:31:22","slug":"digital-art-and-technology-creating-beauty","status":"publish","type":"post","link":"https:\/\/www.o365.blog\/?p=175","title":{"rendered":"Jak z\u00edskat verzi tenantu pomoc\u00ed powershellu"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><span style=\"color: #008000;\">#Pridani knihoven pro praci<\/span><br><span style=\"color: #0000ff;\">Add-Type<\/span> -Path &#8220;C:\\Program Files\\Common Files\\Microsoft Shared\\Web Server Extensions\\16\\ISAPI\\Microsoft.SharePoint.Client.dll&#8221;<br><span style=\"color: #0000ff;\">Add-Type<\/span> -Path &#8220;C:\\Program Files\\Common Files\\Microsoft Shared\\Web Server Extensions\\16\\ISAPI\\Microsoft.SharePoint.Client.Runtime.dll&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"color: #008000;\">#Zadefinovani uzivatele a hesla<\/span><br><span style=\"color: #ff0000;\">$Username<\/span> = <span style=\"color: #0000ff;\">Read-Host<\/span> -Prompt &#8220;Please enter your username&#8221;<br><span style=\"color: #ff0000;\">$Password<\/span> = <span style=\"color: #0000ff;\">Read-Host<\/span> -Prompt &#8220;Please enter your password&#8221; -AsSecureString<br><span style=\"color: #ff0000;\">$Site<\/span>&nbsp;= &#8220;https:\/\/nazevtenantu.sharepoint.com&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"color: #008000;\">#Pripojeni k tenantu a ziskani verze<\/span><br><span style=\"color: #ff0000;\">$Context<\/span> = <span style=\"color: #0000ff;\">New-Object<\/span> Microsoft.SharePoint.Client.ClientContext(<span style=\"color: #ff0000;\">$Site<\/span>)<br><span style=\"color: #ff0000;\">$Creds<\/span> = <span style=\"color: #0000ff;\">New-Object<\/span> Microsoft.SharePoint.Client.SharePointOnlineCredentials(<span style=\"color: #ff0000;\">$Username<\/span>,<span style=\"color: #ff0000;\">$Password<\/span>)<br><span style=\"color: #ff0000;\">$Context<\/span>.Credentials = <span style=\"color: #ff0000;\">$Creds<\/span><br><span style=\"color: #ff0000;\">$Context<\/span>.ExecuteQuery()<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"color: #0000ff;\">Write-Host<\/span> &#8220;Server Version:&#8221; <span style=\"color: #ff0000;\">$Context<\/span>.ServerVersion -ForegroundColor Green<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pokud n\u011bkdy \u0159e\u0161\u00edte chyby v Sharepointu Online je dobr\u00e9 v\u011bd\u011bt kterou verzi m\u00e1te v ostr\u00e9m provozu.<br \/>\nTento skript by V\u00e1m m\u011bl vypsat \u010d\u00edslo verze v\u010d. buildu kter\u00fd m\u00e1te k dispozici.<\/p>\n","protected":false},"author":2,"featured_media":653,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_uag_custom_page_level_css":"","footnotes":""},"categories":[27],"tags":[64,4],"coauthors":[],"class_list":["post-175","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-powershell","tag-sharepoint-online"],"pbg_featured_image_src":{"full":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"thumbnail":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps-145x44.png",145,44,true],"medium":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps-300x92.png",300,92,true],"medium_large":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"large":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"wpsm_testi_small":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",100,31,false],"1536x1536":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"2048x2048":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"wp_review_large":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps-320x110.png",320,110,true],"wp_review_small":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps-65x65.png",65,65,true],"vce-lay-a":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"vce-lay-a-nosid":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"vce-lay-b":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"vce-lay-d":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps-145x100.png",145,100,true],"vce-fa-full":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"vce-fa-grid":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"vce-fa-big-grid":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false]},"pbg_author_info":{"display_name":"Radek Vlach","author_link":"https:\/\/www.o365.blog?author_name","author_img":"<img alt='Radek Vlach' src='https:\/\/www.o365.blog\/wp-content\/uploads\/2026\/07\/radek-vlach_avatar-128x128.jpg' srcset='https:\/\/www.o365.blog\/wp-content\/uploads\/2026\/07\/radek-vlach_avatar-256x256.jpg 2x' class='avatar avatar-128 photo' height='128' width='128' loading='lazy' decoding='async'\/>"},"pbg_comment_info":" No Comments","pbg_excerpt":"Pokud n\u011bkdy \u0159e\u0161\u00edte chyby v Sharepointu Online je dobr\u00e9 v\u011bd\u011bt kterou verzi m\u00e1te v ostr\u00e9m provozu. Tento skript by V\u00e1m m\u011bl vypsat \u010d\u00edslo verze v\u010d. buildu kter\u00fd m\u00e1te k dispozici.","uagb_featured_image_src":{"full":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"thumbnail":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps-145x44.png",145,44,true],"medium":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps-300x92.png",300,92,true],"medium_large":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"large":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"wpsm_testi_small":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",100,31,false],"1536x1536":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"2048x2048":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"wp_review_large":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps-320x110.png",320,110,true],"wp_review_small":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps-65x65.png",65,65,true],"vce-lay-a":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"vce-lay-a-nosid":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"vce-lay-b":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"vce-lay-d":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps-145x100.png",145,100,true],"vce-fa-full":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"vce-fa-grid":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false],"vce-fa-big-grid":["https:\/\/www.o365.blog\/wp-content\/uploads\/2018\/06\/logo-ps.png",360,110,false]},"uagb_author_info":{"display_name":"Radek Vlach","author_link":"https:\/\/www.o365.blog?author_name"},"uagb_comment_info":0,"uagb_excerpt":"Pokud n\u011bkdy \u0159e\u0161\u00edte chyby v Sharepointu Online je dobr\u00e9 v\u011bd\u011bt kterou verzi m\u00e1te v ostr\u00e9m provozu. Tento skript by V\u00e1m m\u011bl vypsat \u010d\u00edslo verze v\u010d. buildu kter\u00fd m\u00e1te k dispozici.","_links":{"self":[{"href":"https:\/\/www.o365.blog\/index.php?rest_route=\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.o365.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.o365.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.o365.blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.o365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=175"}],"version-history":[{"count":0,"href":"https:\/\/www.o365.blog\/index.php?rest_route=\/wp\/v2\/posts\/175\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.o365.blog\/index.php?rest_route=\/wp\/v2\/media\/653"}],"wp:attachment":[{"href":"https:\/\/www.o365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.o365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.o365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=175"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.o365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcoauthors&post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}