tag:blogger.com,1999:blog-68114052725829823412024-03-04T23:34:50.981-08:00Qazi ArfeenShare to learn, learn to shareQazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.comBlogger49125tag:blogger.com,1999:blog-6811405272582982341.post-42181307271406659322016-04-26T22:08:00.000-07:002016-04-26T22:08:10.984-07:00Hide column headings in SharePoint Views<div dir="ltr" style="text-align: left;" trbidi="on">
If you want to hide column headings in a sharepoint view which you have sitting on your home page (or any other page for that matter) Perform following actions<br />
<br />
1. Edit Page and Add a Script Editor webpart from Media and Content section.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEYEYTCTxkpcmiE_P3IWv3QjH03GwBUxTL07uPKw6lDvA4p0CVEMwfSysoK3no7GFtB3giCmTMM_eZduSyMqsreW0mAEPpPNT45tFnf5UiPZr889nVrUruYFakhx4QAU39jlOOn7oBMNE/s1600/Pic1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="167" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEYEYTCTxkpcmiE_P3IWv3QjH03GwBUxTL07uPKw6lDvA4p0CVEMwfSysoK3no7GFtB3giCmTMM_eZduSyMqsreW0mAEPpPNT45tFnf5UiPZr889nVrUruYFakhx4QAU39jlOOn7oBMNE/s320/Pic1.png" width="320" /></a></div>
<br />
2. Once the Script Editor webpart is added (make sure that the webpart is the last webpart on the page (bottom most). Edit the webpart and click EDIT SNIPPET<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTWHA4ujhSqwgQJ0LA0DP30w2Wy5711u3WD2tQF-EDaE-6gPElXpkO4ebK5_CIyY32tdnKFSI-l8cy6_L1WV5edkwQ7hjCzYXddKsWUK5x2HHnxhgBGpcyhbecUT6RZXiZJbV3Ehk6aHI/s1600/Pic2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="38" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTWHA4ujhSqwgQJ0LA0DP30w2Wy5711u3WD2tQF-EDaE-6gPElXpkO4ebK5_CIyY32tdnKFSI-l8cy6_L1WV5edkwQ7hjCzYXddKsWUK5x2HHnxhgBGpcyhbecUT6RZXiZJbV3Ehk6aHI/s320/Pic2.png" width="320" /></a></div>
<br />
3. Add following script in the editor<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVWYC3zlSx45VrX1esL-IxaGDp46uU0AwSlO1yG63FSOhLxEAT1b-_4GGedgzisZn8ieutj4PruiASbR0cud8b-095l845QwvsBlPz2Oj7fL0eZ7VJLKoYVozKDTfksRT9YOTM7k9EyA4/s1600/Pic3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="163" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVWYC3zlSx45VrX1esL-IxaGDp46uU0AwSlO1yG63FSOhLxEAT1b-_4GGedgzisZn8ieutj4PruiASbR0cud8b-095l845QwvsBlPz2Oj7fL0eZ7VJLKoYVozKDTfksRT9YOTM7k9EyA4/s320/Pic3.png" width="320" /></a></div>
<br />
<div class="MsoNormal">
<style><o:p></o:p></p>
<p class="MsoNormal">
.ms-viewheadertr { display: none;}<o:p></o:p></p>
<p class="MsoNormal">
.ms-stylelabel {display: none;}<o:p></o:p></p>
<p>
</p>
<p class="MsoNormal">
</style><o:p></o:p></div>
4. Click OK on the webpart properties and Save the page.</div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-71097216876542171992016-02-09T15:24:00.000-08:002016-02-09T15:24:29.649-08:00Cannot Save as Draft on a team site blog in SharePoint Online<div dir="ltr" style="text-align: left;" trbidi="on">
If you are reading this blog you must have the same issue I had a few days ago: you might not have the right permission level to use this, you might need to select an object or item, or the control might not work in this context.<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1fwSRgA_wi9qRGqUTaV0aNRU0SfhijZffbXKfVuV1eifQQPG1UgGeA-Gjy7Tr0N3TZQHiDdvjeeTa4ZqUjxI6bJ7chsNJFBcr93leZduaFDjdEvfvjQfL2TypdPN_eXNuHFyIiuchiNM/s1600/blog1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1fwSRgA_wi9qRGqUTaV0aNRU0SfhijZffbXKfVuV1eifQQPG1UgGeA-Gjy7Tr0N3TZQHiDdvjeeTa4ZqUjxI6bJ7chsNJFBcr93leZduaFDjdEvfvjQfL2TypdPN_eXNuHFyIiuchiNM/s320/blog1.png" width="249" /></a></div>
<br />
<br />
Its even more frustrating when you know that you are a site collection administrator.<br />
<br />
Lets get this solved once and for all.<br />
<br />
Click on the gear icon on top right on your screen and select Site contents.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW7BMcHXlv83RuELvpAqINGjD2Je780v-j1UfL41lqhmcu1KkUA2QOyiv7cmOyfq8mW79nOmC31blOF1TLmaKNrN0ofFzC2y1xuCRNxIbpv2GoNbveDtKkqN18eMxNqTPbuzaR4b6EjBU/s1600/blog4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW7BMcHXlv83RuELvpAqINGjD2Je780v-j1UfL41lqhmcu1KkUA2QOyiv7cmOyfq8mW79nOmC31blOF1TLmaKNrN0ofFzC2y1xuCRNxIbpv2GoNbveDtKkqN18eMxNqTPbuzaR4b6EjBU/s320/blog4.png" width="206" /></a></div>
<br />
Click on the Posts app.<br />
Click on List>Library settings on the ribbon and click Version Settings.<br />
Make sure you have following settings on the page.<br />
<br />
<ul style="text-align: left;">
<li>Require content approval for submitted items? Yes</li>
<li>Who should see draft items in the list? Only users who can edit items.</li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7QGjdtnvJVBPCrCJDCcpbYZATCms5-_EKacwzJJdzTWgrO8tWbLIEfJNT24KyjbwF7yiMO5TtvQusIyx0IRiQKDkMJYA3sClCykgYz1v79P_4abS2dBN2WT5D8I_pvn-5GVhfeZ-8lSU/s1600/blog5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7QGjdtnvJVBPCrCJDCcpbYZATCms5-_EKacwzJJdzTWgrO8tWbLIEfJNT24KyjbwF7yiMO5TtvQusIyx0IRiQKDkMJYA3sClCykgYz1v79P_4abS2dBN2WT5D8I_pvn-5GVhfeZ-8lSU/s320/blog5.png" width="320" /></a></div>
<div>
<br /></div>
<br />
Click OK and go back to your blogs home page and try editing the blog again. You should be able to now see Save As Draft in your ribbon and a new Save As Draft button appearing before your Publish button.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji_Hj88zLrow1RsyPIXdfMxkV7yvS_PoHbJRJpgluZ0wcTCM1OcVlZRH2947rwttiv3VrzP3C26B5zOmXvPL6b4FcqTxYCkV-npizl1zvhKjs1fVQZIWAfdgYAB1JcuNZZvgnF0HLsUss/s1600/blog3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji_Hj88zLrow1RsyPIXdfMxkV7yvS_PoHbJRJpgluZ0wcTCM1OcVlZRH2947rwttiv3VrzP3C26B5zOmXvPL6b4FcqTxYCkV-npizl1zvhKjs1fVQZIWAfdgYAB1JcuNZZvgnF0HLsUss/s1600/blog3.png" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglGZCCspAadMcYroCAn-3gbKC_4Oka_PkfRUJzTPejMgpKrvYecGVRLQ7rIgy8asVnkyGIOo62L0nfTn4pacnolKdfG27opk7hqv1fSWiWeUN7_YiCVzCW_ThxZI6CueDvu1yYZQsOITc/s1600/blog6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglGZCCspAadMcYroCAn-3gbKC_4Oka_PkfRUJzTPejMgpKrvYecGVRLQ7rIgy8asVnkyGIOo62L0nfTn4pacnolKdfG27opk7hqv1fSWiWeUN7_YiCVzCW_ThxZI6CueDvu1yYZQsOITc/s1600/blog6.png" /></a></div>
<br />
Read my previous blog on <a href="http://qaziarfeen.blogspot.com.au/2016/02/sharepoint-online-blogs.html" target="_blank">how to get here</a>.</div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-64963729287286544122016-02-04T17:09:00.001-08:002016-02-04T17:09:53.367-08:00SharePoint Online Blogs<div dir="ltr" style="text-align: left;" trbidi="on">
Today one of the clients I am working for asked me to suggest options for blogging on Office 365 SharePoint Online.<br />
<br />
Following are my 2 cents on it.<br />
<br />
We have 2 options out of the box<br />
1. SharePoint Blog site<br />
2. Your personal Blog<br />
<br />
Let me share what are our options with each type of blog posting and how to do it.<br />
<br />
<h3 style="text-align: left;">
SharePoint Blog Site</h3>
<div>
You need to have administrative rights on the site/site collection to be able to create a new (Blog) sub site.</div>
<div>
<br /></div>
<div>
On the gear icon click on Site contents<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGXLz5-V1Be_A-pC_AzSnds1EgcxmbaHKeET4fsxQr3rh6xSut4UA2wmyo2mgRLBYNUYvukyqyEUDwy0pXYr6k3THaWHgrsm7QJHnI4xR4ypJ_WG49ucGdLUYj7rqki8xV-8mOAnDo7A4/s1600/blog1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGXLz5-V1Be_A-pC_AzSnds1EgcxmbaHKeET4fsxQr3rh6xSut4UA2wmyo2mgRLBYNUYvukyqyEUDwy0pXYr6k3THaWHgrsm7QJHnI4xR4ypJ_WG49ucGdLUYj7rqki8xV-8mOAnDo7A4/s320/blog1.png" width="132" /></a></div>
<br /></div>
<div>
Under Subsites select new subsite<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhftQOXA7FeqLFJVpmm1BOIVSSyXtA4_dXBEgdi6St6LcLtUynorlG2qnXoZEnJA2JlvPYJtLJc2n8iSWYZOM9s9eL8HNSk0RWBeTM2wc_7_GClb94-Z8kNj8HJYuBcIYHvf1ObYKBe-J4/s1600/Blog2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhftQOXA7FeqLFJVpmm1BOIVSSyXtA4_dXBEgdi6St6LcLtUynorlG2qnXoZEnJA2JlvPYJtLJc2n8iSWYZOM9s9eL8HNSk0RWBeTM2wc_7_GClb94-Z8kNj8HJYuBcIYHvf1ObYKBe-J4/s1600/Blog2.png" /></a></div>
<br /></div>
<div>
On the New SharePoint Site provide all the required information and select Blog from Select a template Collaboration tab</div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHGFo9dDi7IcH0GbOxp4fXv8MJfmBq2ZQyzjK6FD9zkCdV2ASDOsG94UGWtbeTv2lBiU5NjcieFWDQdcA37U2wg7cFiQpp2zrcc5L1RgukqbXEp54zac-xdffGq0u4JjBHpolTnjnRx3s/s1600/Blog3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="283" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHGFo9dDi7IcH0GbOxp4fXv8MJfmBq2ZQyzjK6FD9zkCdV2ASDOsG94UGWtbeTv2lBiU5NjcieFWDQdcA37U2wg7cFiQpp2zrcc5L1RgukqbXEp54zac-xdffGq0u4JjBHpolTnjnRx3s/s320/Blog3.png" width="320" /></a></div>
<br /></div>
<div>
Click Create.<br />
Once you have the blog site ready you will see following on your Blog home page.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVqI1UpgcZNuFrMwCkmFLoYOxmuUppZMqwMi1OIzyq1NFxdzPZ-swRKLE4-oCaAbccQU1XynH3FAKTT1WUHmnHltmMsyzPvObP4UFM5LNMpqJ6bLLvsgTWdORS-gBFdVJuC3HdSdBrq2w/s1600/Blog4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="113" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVqI1UpgcZNuFrMwCkmFLoYOxmuUppZMqwMi1OIzyq1NFxdzPZ-swRKLE4-oCaAbccQU1XynH3FAKTT1WUHmnHltmMsyzPvObP4UFM5LNMpqJ6bLLvsgTWdORS-gBFdVJuC3HdSdBrq2w/s320/Blog4.png" width="320" /></a></div>
I must admit this is not a very best of interface but this feature is out of box and it works.<br />
On the right hand side you see following options<br />
<h4 style="text-align: left;">
Create a post</h4>
<div>
This link lets you create a new blog post.</div>
<div>
<br /></div>
<h4 style="text-align: left;">
Manage Post, Manage comments, Manage categories</h4>
SharePoint keeps blogs, comments and categories in different sharepoint lists and each link lets you work on the respective sharepoint list.<br />
<br />
<h4 style="text-align: left;">
Change post layout:</h4>
</div>
<div>
Layout that you see on your home page is different from mine because I have chosen Boxed layout. Other options are Basic and Inline.<br />
<br />
<h3 style="text-align: left;">
Your personal Blog</h3>
</div>
<div>
Click on the About Me link on your profile picture on the top right corner of the page. Under Profile you will see Blog section which lets you create your personal blogs. The interface is awesome and also lets you write posts directly from your Office Word which you can post directly to your Blog but I dont like a few things about it.</div>
<div>
I cannot share it as I would like it to.</div>
<div>
You need to post it to your Yammer feed to get a visibility</div>
<div>
Share sends an email with a link to the post.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyxUdzai8MH5WjbGJQI5jkqgAdj_ItY3HPaNJZdefJ08aiOxn8mcvMewrtmRiGvkwRreaQjVuh2r5UBSVJ04ol3RbWxY5X6XxWKtfdfqBdgEiV_Lz4ZjVQLewnfK9Uu7JMdMxhsoEbkrE/s1600/Blog5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="94" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyxUdzai8MH5WjbGJQI5jkqgAdj_ItY3HPaNJZdefJ08aiOxn8mcvMewrtmRiGvkwRreaQjVuh2r5UBSVJ04ol3RbWxY5X6XxWKtfdfqBdgEiV_Lz4ZjVQLewnfK9Uu7JMdMxhsoEbkrE/s320/Blog5.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
Clicking on All posts takes me to all my published and draft posts and lets me create a new post which is similar to the small + New post link on the top right on the Blog section on my profile page.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5EiEeuJtaCyf5hJ8EQeGm9rdhj1bFZ6MoS5nI7BRmPME2WwkKRyxTL_-uY3upLuitgz9rqvcF7ToAKlcVXeD4Taw0Bf0i-nzVAxaY4cFeIOKobr8dWPEnOlMgUC1juVg7SB7o4Fitdb8/s1600/Blog6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="79" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5EiEeuJtaCyf5hJ8EQeGm9rdhj1bFZ6MoS5nI7BRmPME2WwkKRyxTL_-uY3upLuitgz9rqvcF7ToAKlcVXeD4Taw0Bf0i-nzVAxaY4cFeIOKobr8dWPEnOlMgUC1juVg7SB7o4Fitdb8/s320/Blog6.png" width="320" /></a></div>
<div>
Open your Office Word and compose a pretty blog with images and videos and you can directly publish it to your Blog.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgm0p4V07LwoDBxFIjh49qNUmK1u6cFN-awHMMLZdYdp7ysLcpC5bF9V5bG-Pp93_72dXk_Nkbws_OH_hc6RbwxjKBNov2jdC9vsJTenMjgWhZmeP-9LuCUcoj_cCe-6uqXBMKzxGCtefE/s1600/Blog7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="128" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgm0p4V07LwoDBxFIjh49qNUmK1u6cFN-awHMMLZdYdp7ysLcpC5bF9V5bG-Pp93_72dXk_Nkbws_OH_hc6RbwxjKBNov2jdC9vsJTenMjgWhZmeP-9LuCUcoj_cCe-6uqXBMKzxGCtefE/s320/Blog7.png" width="320" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
It really depends what type of Blog you or your organization needs. If its really your personal blog which you want to share with your team, My blogs is a way to go but if its organization wide which you want people to be interacting with go for SharePoint Blog Site.</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com1Sydney NSW, Australia-33.8674869 151.20699020000006-34.711976400000005 149.91609670000005 -33.0229974 152.49788370000007tag:blogger.com,1999:blog-6811405272582982341.post-38216047932459863292015-10-15T22:36:00.000-07:002015-10-15T22:36:49.642-07:00Office 365 - Set user password to not never expire<div dir="ltr" style="text-align: left;" trbidi="on">
It is as easy as<br />
1. <span style="font-family: 'Courier New', Courier, monospace;">Connnect-MSOLService</span><br />
2. <span style="font-family: 'Courier New', Courier, monospace;">Get-MSOLUser -UserPrincipalName <youruser yourdomain.com=""> | Select PasswordNeverExpires</youruser></span><br />
3. <span style="font-family: 'Courier New', Courier, monospace;">Set-MSOL -UserPrincipalName <youruser yourdomain.com=""> -PasswordNeverExpires $true</youruser></span><br />
4. <span style="font-family: 'Courier New', Courier, monospace;">Get-MSOLUser -UserPrincipalName <youruser yourdomain.com=""> | Select PasswordNeverExpires</youruser></span><br />
<br />
<br />
If all the above statements do not make any sense to you, read on...<br />
<br />
I was asked by my SDM to create an Global Administrator for one of our clients and set the password expiry to be set to Never. This is what we expect with system accounts when passwords don't change normally.<br />
<br />
I created a new account and unchecked "Make this person change their password the next time they sign in"<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMKjuCoyVgCHu7EAb9bb_T0QxJb4hOnTa_PKqjGvSz2fRH-1DYvtO1nlh6gQjlgIDBxN1zfrnVxEJZlCY5KTsTKeJ2PgLgM7kFdwn6_I1vcVXu5KLl7CjXEcQS0EnGUjjOBkSTovM6T5Y/s1600/password1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMKjuCoyVgCHu7EAb9bb_T0QxJb4hOnTa_PKqjGvSz2fRH-1DYvtO1nlh6gQjlgIDBxN1zfrnVxEJZlCY5KTsTKeJ2PgLgM7kFdwn6_I1vcVXu5KLl7CjXEcQS0EnGUjjOBkSTovM6T5Y/s320/password1.png" width="222" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
That's all I though was involved in setting up an account as there was no "Password Policy" that I saw and of course my assumption was not right.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h3 style="clear: both; text-align: left;">
<span style="font-weight: normal;">Solution</span></h3>
<div>
<span style="font-weight: normal;">If you want to apply such a policy for a specific user, PowerShell is your friend. We will see in the end what it takes to apply different password related policies for all users in an organization.</span></div>
<div>
<span style="font-weight: normal;"><br /></span></div>
<div>
<span style="font-weight: normal;">You need to get </span><a href="http://www.microsoft.com/en-us/download/details.aspx?id=41950" target="_blank">Microsoft Online Services Sign-In Assistant</a><span style="font-weight: normal;"> and </span><a href="http://go.microsoft.com/fwlink/p/?linkid=236297" target="_blank">Windows Azure AD Module</a><span style="font-weight: normal;">.</span></div>
<div>
Download each of them separately (64 bit) and install one after the other.</div>
<br />
Once all is setup, look for Windows Azure Active Directory Module for Windows PowerShell and right click and run as administrator<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg18iKzzkl4kR7DGqaaMVP6YNQ78enmC7jT3Ef1b3LNTinmN6glC2XUwj9vA0cHt9FOqVkVFcfxZLBXFEZEKBh5lMS7IBi2-Qea-a98W-QGo0yo1z4Wonz7xTzrRBb2SLXhEhJVNcwxri0/s1600/password2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="220" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg18iKzzkl4kR7DGqaaMVP6YNQ78enmC7jT3Ef1b3LNTinmN6glC2XUwj9vA0cHt9FOqVkVFcfxZLBXFEZEKBh5lMS7IBi2-Qea-a98W-QGo0yo1z4Wonz7xTzrRBb2SLXhEhJVNcwxri0/s320/password2.png" width="320" /></a></div>
<br />
Type following command<br />
<span style="background-color: #e69138; font-family: Courier New, Courier, monospace;">Connnect-MSOLService</span><br />
<span style="font-family: inherit;">and connect using admin account on your tenant</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9lC75kMaxcvoWxyBgqHmUwnrNt-9e7nD7xuVatZa7LXSFgVoUk8z6K37t02myu2JzNQCkPdwlLhpZkie69iPhJOu-PeW6b4GrdIc4_JTb8H5Vo4WHuTk6Ex-ZHev-Pyoo0Zdc4bpMLrk/s1600/password3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="140" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9lC75kMaxcvoWxyBgqHmUwnrNt-9e7nD7xuVatZa7LXSFgVoUk8z6K37t02myu2JzNQCkPdwlLhpZkie69iPhJOu-PeW6b4GrdIc4_JTb8H5Vo4WHuTk6Ex-ZHev-Pyoo0Zdc4bpMLrk/s320/password3.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
First thing you need to do is verify if user password is already set to expire or not. We will run this commend again when we have applied the policy to set if it is set correctly.</div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: #e69138; font-family: Courier New, Courier, monospace;">Get-MSOLUser -UserPrincipalName <youruser yourdomain.com=""> | Select PasswordNeverExpires</youruser></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">This command will return you a value of </span><span style="font-family: Courier New, Courier, monospace;">True</span><span style="font-family: inherit;"> or </span><span style="font-family: Courier New, Courier, monospace;">False</span><span style="font-family: inherit;"> depending on user settings.</span><span style="font-family: Courier New, Courier, monospace;"> </span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
To apply the password never expire policy on your user run the following command</div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: #e69138; font-family: Courier New, Courier, monospace;">Set-MSOL -UserPrincipalName <youruser yourdomain.com=""> -PasswordNeverExpires $true</youruser></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Courier New, Courier, monospace;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">Rerun</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: #e69138;"><span style="font-family: 'Courier New', Courier, monospace;">Get-MSOLUser -UserPrincipalName <youruser yourdomain.com=""> | Select PasswordNeverExpires</youruser></span><span style="font-family: inherit;"> </span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit;">to verify if your changes are applied or not.</span></div>
<span style="font-family: inherit;"><br /></span>
<h3 style="text-align: left;">
<span style="font-family: inherit;">Office 365 Interface</span></h3>
<div>
You must have realized by now that its too much work to be done if you need to apply it to the all users. Fear not my friend and continue reading.</div>
<div>
Once you are on your Office 365 admin center click <b>Service Settings </b>and then select <b>Passwords</b>. This is where you administrate organization wide password policy. </div>
<div>
<br /></div>
<div>
Happy administrating Office 365.</div>
</div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0Sydney NSW, Australia-33.8674869 151.20699020000006-34.711976400000005 149.91609670000005 -33.0229974 152.49788370000007tag:blogger.com,1999:blog-6811405272582982341.post-81244612594824243222015-07-21T18:23:00.000-07:002015-07-21T18:23:02.120-07:00Onboarding Office 365 Series<div dir="ltr" style="text-align: left;" trbidi="on">
I am working on a project for one of my clients where I am asked to onboard them to Office 365.<br />
<br />
I have decided to write a series on Onboarding Office 365<br />
There will a series of articles which I will write and share as I go along.<br />
<br />
1. <a href="http://qaziarfeen.blogspot.com.au/2015/07/onboarding-office-365-series-add-and.html" target="_blank">Add and configure domains</a><br />
2. Activate Active Directory synchronization</div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-72683445853300045202015-07-21T18:21:00.001-07:002015-07-21T18:21:20.267-07:00Onboarding Office 365 Series: Add and configure domains<div dir="ltr" style="text-align: left;" trbidi="on">
Page under construction. Please visit following useful links to get you started.<br />
<br />
<br />
<a href="https://technet.microsoft.com/en-us/library/office-365-domains.aspx" target="_blank">Domains</a><br />
<a href="https://support.office.com/en-us/article/Add-your-domain-to-Office-365-ffdb2216-330d-4d73-832b-3e31bcb5b2a7?CorrelationId=39675d25-834a-4b61-8d52-01d9f2b5867a&ui=en-US&rs=en-US&ad=US" target="_blank">Video: Add your domain to Office 365</a><br />
<a href="https://support.office.com/en-us/article/Verify-your-domain-in-Office-365-6383f56d-3d09-4dcb-9b41-b5f5a5efd611" target="_blank">Video: Verify your domain in Office 365</a><br />
<a href="https://support.office.com/en-us/article/Video-Confirm-ownership-of-your-custom-domain-name-cdbb7212-8718-4a62-bf02-b56100196f1a?CorrelationId=08a3c238-17a8-4b69-8141-3a2acad06e05&ui=en-US&rs=en-US&ad=US" target="_blank">Confirm ownership of your custom domain name</a></div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-9884442579466088432015-05-18T18:39:00.002-07:002015-05-18T18:39:59.878-07:00How to send Ctrl+Alt+Del on Remote Desktop<div dir="ltr" style="text-align: left;" trbidi="on">
I was connected to a remote box using Windows Remote Desktop and wanted to change my password. Easiest way to do this is to press Ctrl + Alt +Delete key sequences but on the remote computer you cannot because your local client will pick this key combination and give you options on your local box.<br />
<br />
The way to do it on remote client is to press <b><span style="font-size: large;">CTRL + ALT + END</span></b> and that should solve your problem.</div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-72588681885087346242015-01-27T20:45:00.001-08:002015-01-27T20:46:40.906-08:00Migrate OneDrive for Business SharePoint Online<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
I am working for a client who needs to migrate their existing tenant say https://existingtenant.sharepoint.com to a new tenant say https://newtenant.sharepoint.com</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Migration is not a problem partly because I am using a very easy to use tool <a href="http://en.share-gate.com/" target="_blank">ShareGate</a> and partly because my client has a very standard out of the box kind of SharePoint implementation. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
One of the very important tasks is to migrate all the One Drive for Business data of over 200 existing users. I didnt know that it could get so tricky. I was under the impression that it will be as simple as migrating other site collections using the tool.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<b><span style="font-size: large;">Before we proceed</span></b></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
There are a few things that you need to know about OneDrive for Business for SharePoint Online</div>
<div style="text-align: left;">
1. Its My Site which enables user to store and share documents just like any other document storage and sharing tool out there for example DropBox but of course with much more features and flexibility that comes with SharePoint.</div>
<div style="text-align: left;">
2. Its a users site collection and only users have access to their my.sharepoint.com site.</div>
<div style="text-align: left;">
3. Even tenant administrators dont have access to users' OneDrive. Users are sole site administrators of their OneDrive</div>
<div style="text-align: left;">
4. OneDrive is not like your emails which is available as soon as a new user gets created. It needs to be first provisioned before it can be used.</div>
<div style="text-align: left;">
5. You cannot migrate OneDrive from a "existingtenant" to a "newtenant" unless you have administrative rights on each of OneDrive on users on both the tenants.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
As you can see I have following problems to solve</div>
<div style="text-align: left;">
1. Pre-provision all the users (200+) on the new tenant.</div>
<div style="text-align: left;">
2. Get administrative rights on all the users on both the tenants.</div>
<div style="text-align: left;">
3. Migrate all the users' OneDrive</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
ShareGate helped me fair bit by letting me become administrator of all the users on both the tenants with just a few click. But this does not solve my problem because the original problem of provisioning the sites and bulk migration was still outstanding.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-size: large;"><b>1. Pre-provision all the users</b></span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
After a bit of googling I got hold of a very useful script by Microsoft which helped me provision all my users. Details and all the required explanation <a href="https://technet.microsoft.com/en-us/library/dn800987%28v=office.15%29.aspx" target="_blank">here</a>. Keep following in mind</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6DnmhHyJhTddtMymGyVGQhwuE4WLMf10WImWw7BaANUVb6Dhyphenhyphen4rh1TuLAkscV8lINUZZk0Wa4Dc8eI-WPpes375C33QS3BEa9-bTozRl8_8P0_Pvc4B98Qx89ceGBjKtEWvOzljOsB6M/s1600/CreateOneDriveOne.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6DnmhHyJhTddtMymGyVGQhwuE4WLMf10WImWw7BaANUVb6Dhyphenhyphen4rh1TuLAkscV8lINUZZk0Wa4Dc8eI-WPpes375C33QS3BEa9-bTozRl8_8P0_Pvc4B98Qx89ceGBjKtEWvOzljOsB6M/s1600/CreateOneDriveOne.png" height="361" width="640" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
1. webUrl should be your -admin.sharepoint.com<br />
2. Your user should have Global Administrator rights<br />
3. Run Windows PowerShell as Administrator.<br />
4. Microsoft.SharePoint.Client, Microsoft.SharePoint.Client.Runtime and Microsoft.SharePoint.Client.UserProfiles can be found <a href="http://www.microsoft.com/en-us/download/details.aspx?id=42038" target="_blank">here</a>.<br />
5. I didnt setup SharePoint Online Management Shell.<br />
<br />
Once I got all the users provisioned I had to find a way to verify if the script ran successfully and I found a useful <a href="http://blog.blksthl.com/2014/08/08/office-365-guide-series-verify-provisioned-onedrives-using-powershell/" target="_blank">link</a> which helped me verify that all my OneDrive for Business are provisioned. I also randomly accessed a few users' OneDrive to verify the case.<br />
<br />
<span style="font-size: large;"><b>2. Get administrative rights</b></span><br />
<br />
I got my first problem solved. My next step was to be able give my Administrator full access to each users' OneDrive. I am assuming that you dont have access to ShareGate and you have to do it yourself.<br />
Following is what I see when I log in as one of the users and access OneDrive.<br />
Click on Site Settings> Site collection administrators under Users and Permissions and you will see that current logged in user is the only administrator of her OneDrive (which we have already talked about)<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBueuApBzkqiVqjwudxrkxBhPm2gd99E2Gs6xrw_wW3HEY4_AXDcKawfM-qL66M8bA0kVUOCLkgT1aJqDMF-cQiJ52J_qYRNJPOCG0VA-v9DOR1hLaCPsm_l_yNmx6iIiU8ujspTLBACs/s1600/OneDriveOne.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBueuApBzkqiVqjwudxrkxBhPm2gd99E2Gs6xrw_wW3HEY4_AXDcKawfM-qL66M8bA0kVUOCLkgT1aJqDMF-cQiJ52J_qYRNJPOCG0VA-v9DOR1hLaCPsm_l_yNmx6iIiU8ujspTLBACs/s1600/OneDriveOne.png" height="280" width="640" /></a></div>
To give yourself administrative rights on each of the OneDrive sites you need to perform the following actions<br />
1. Get SharePoint Online Management Shell. There are a lot of things that you need to take care of as suggested by Microsoft. Get yourself accustomed before trying any of this all. Download SharePoint Management Shell from <a href="http://www.microsoft.com/en-au/download/details.aspx?id=35588" target="_blank">here</a>.<br />
2. Run Shell as administrator and connect to your tenant using the command<br />
<span style="color: blue;">Connect-SPOService</span><br />
Make sure you put it -admin.sharepoint.com part when prompted for Url.<br />
3. Put in your admin user and password and asked.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI2A8lO88ASQVMEfQW8oGegTAlzMwkEbICmTZ7_WS9HUnAL2QWExCwpmz_vCAl3r0SHw9tf7KvrCk3qAXPJJKRDTNQkrIRusrzIMV0SEVA9HkY-vicSXAOiO3E0LftXA3MCT-84C0oudU/s1600/SPOMSOne.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI2A8lO88ASQVMEfQW8oGegTAlzMwkEbICmTZ7_WS9HUnAL2QWExCwpmz_vCAl3r0SHw9tf7KvrCk3qAXPJJKRDTNQkrIRusrzIMV0SEVA9HkY-vicSXAOiO3E0LftXA3MCT-84C0oudU/s1600/SPOMSOne.png" height="128" width="640" /></a></div>
4. Create a new .ps1 file using the following script<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpOl726Ctoai7gXZqykkAeLb06DlFg_T17eW-nUhhQ8HsYo2jvHXds5kFeSs8blRnuNWyXFHZsFm3NiaEPqWrCNkW3i_MFIYPDN5tForAu87O52LDHRzcGlUUTQGOW74IVQHIn_Xk6miE/s1600/SPOMSTwo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpOl726Ctoai7gXZqykkAeLb06DlFg_T17eW-nUhhQ8HsYo2jvHXds5kFeSs8blRnuNWyXFHZsFm3NiaEPqWrCNkW3i_MFIYPDN5tForAu87O52LDHRzcGlUUTQGOW74IVQHIn_Xk6miE/s1600/SPOMSTwo.png" height="182" width="640" /></a></div>
5. Run the script using SharePoint Online Management Shell by first pointing to the destination folder where you have stored this file.<br />
I have named my script file AccessRights.ps1<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikx63GsjxIoRGP1F0qxKo2Qd_57mxPsn0wnbhIzcRvXPEf61p6yIFgIt9Uu9iDqzGFK8BXiD-GkBGhEP5Yswpm4QsbYUrCA3hBTZEtOx4AkSHf1OdEP8HCIqVl5Ed-Yi6MZkxvKW_d3Oc/s1600/SPOMSThree.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikx63GsjxIoRGP1F0qxKo2Qd_57mxPsn0wnbhIzcRvXPEf61p6yIFgIt9Uu9iDqzGFK8BXiD-GkBGhEP5Yswpm4QsbYUrCA3hBTZEtOx4AkSHf1OdEP8HCIqVl5Ed-Yi6MZkxvKW_d3Oc/s1600/SPOMSThree.png" height="158" width="640" /></a></div>
<br />
As you know that I had 4 users I see four times the message that my administrator is added to each users site.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi95uX8j6XIEFOz9BIAG9Ffivr9yhWTMQJ5_A12iF7BDs4-WOIsprbtnR_eA6F-LQDDuYkS87wKlixvA0mSfgJe3ABHodK0HXF2LjoIp411tZPRVIchAOh1eoEWyyMgFEV55wnNXsuRW2s/s1600/AccessRights.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi95uX8j6XIEFOz9BIAG9Ffivr9yhWTMQJ5_A12iF7BDs4-WOIsprbtnR_eA6F-LQDDuYkS87wKlixvA0mSfgJe3ABHodK0HXF2LjoIp411tZPRVIchAOh1eoEWyyMgFEV55wnNXsuRW2s/s1600/AccessRights.png" height="248" width="640" /></a></div>
Your administrator is now a Site Collection Administrator on all the users on your newtenant.sharepoint.com. Make sure you repeat this process on existingtenant.sharepoint.com<br />
<br />
<span style="font-size: large;"><b>3. Migrate all the users' OneDrive</b></span><br />
<span style="font-size: large;"><span style="font-size: small;">I am planning to use ShareGate to migrate user's OneDrive. If I get a script to do it for me I will post it here.</span></span><br />
<br />
<span style="font-size: large;"><span style="font-size: small;">Happy migrating. </span><b> </b></span></div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0Sydney NSW, Australia-33.8674869 151.20699020000006-34.711976400000005 149.91609670000005 -33.0229974 152.49788370000007tag:blogger.com,1999:blog-6811405272582982341.post-87954756266958796432014-11-23T18:01:00.000-08:002014-11-23T18:01:31.043-08:00Change color of Suite Bar in SharePoint Office 365<div dir="ltr" style="text-align: left;" trbidi="on">
It took me a while to know that the top nav bar in Office 365 is called Suite Bar. The next thing I needed to know is how to change the color because the customer I am working for these days wants their branded color to be applied across the site collections. There are couple of ways to get the job done but lets stick to the most simplest one. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVX0bpNFpuEyVL89kSpX_FQ10Qw1HSMZTyp9Sm6yxXxkCsBBt-1TlDf8DrvYnBTf5lVUX3PeF1iwUHny0cd7HuSsiEn9JHjctK-qSG-NthQi-MsepA66PbpP6Tzk4YR6KGPgr6voQvh6g/s1600/SuiteBar.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVX0bpNFpuEyVL89kSpX_FQ10Qw1HSMZTyp9Sm6yxXxkCsBBt-1TlDf8DrvYnBTf5lVUX3PeF1iwUHny0cd7HuSsiEn9JHjctK-qSG-NthQi-MsepA66PbpP6Tzk4YR6KGPgr6voQvh6g/s1600/SuiteBar.png" height="32" width="640" /></a></div>
If you notice my suite bar color is not the default one and I have already changed it. To get the job done you need to be Administrator to perform the following actions.<br />
<br />
1. Click Admin and then click Office 365<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge5DdXBE6IT7PfEL8G0aiKYs1oPN27XTpUNOellHyRwPNlT3Da9StRYmALyD8q04LeE7CtL_8WXO6J7zGzISAFDWMAb2AgRYL5jKJqtT9kOGBApSfhkRRlLziIMwARJvm5kxL_wouGsDI/s1600/admin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge5DdXBE6IT7PfEL8G0aiKYs1oPN27XTpUNOellHyRwPNlT3Da9StRYmALyD8q04LeE7CtL_8WXO6J7zGzISAFDWMAb2AgRYL5jKJqtT9kOGBApSfhkRRlLziIMwARJvm5kxL_wouGsDI/s1600/admin.png" height="142" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb9Vn0antqPKjjnIvVl83bw3HOo8no4fViIZYFMn6OLm97QVYhgYssrqQHhvBadep8KubvMsY1Q6L3JB22B7LQ-Z_cfG6hImSfeSXMO8gAVri96qNZVRrdhYOCE38jlCpLeXIODdkLrd8/s1600/company.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb9Vn0antqPKjjnIvVl83bw3HOo8no4fViIZYFMn6OLm97QVYhgYssrqQHhvBadep8KubvMsY1Q6L3JB22B7LQ-Z_cfG6hImSfeSXMO8gAVri96qNZVRrdhYOCE38jlCpLeXIODdkLrd8/s1600/company.png" height="40" width="320" /></a></div>
<br />
<br />
2. Once you are on your portal site click the name of your company on the top right corner of the page. <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb9Vn0antqPKjjnIvVl83bw3HOo8no4fViIZYFMn6OLm97QVYhgYssrqQHhvBadep8KubvMsY1Q6L3JB22B7LQ-Z_cfG6hImSfeSXMO8gAVri96qNZVRrdhYOCE38jlCpLeXIODdkLrd8/s1600/company.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb9Vn0antqPKjjnIvVl83bw3HOo8no4fViIZYFMn6OLm97QVYhgYssrqQHhvBadep8KubvMsY1Q6L3JB22B7LQ-Z_cfG6hImSfeSXMO8gAVri96qNZVRrdhYOCE38jlCpLeXIODdkLrd8/s1600/company.png" height="80" width="640" /></a></div>
<br />
3. You will land on Company profile page. Click on Custom theming and change Accent color to change Suite bar color. (Note: It will take some time to get your changes applied across sites implies all the sites are using default theme.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSD8Q_O-f5vaCRvWPmWFjd-FHNv_gGsxPGK-XqEj1_S6b6KeyK4Bv6sBs0tIgw8ToDH59m9eEYJMHRMG8vZ6TVYzzo598lbipoW20pO4IRXqT87NXKPTydEL-YFLMaHVaOrmqEMiPpBgE/s1600/theming.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSD8Q_O-f5vaCRvWPmWFjd-FHNv_gGsxPGK-XqEj1_S6b6KeyK4Bv6sBs0tIgw8ToDH59m9eEYJMHRMG8vZ6TVYzzo598lbipoW20pO4IRXqT87NXKPTydEL-YFLMaHVaOrmqEMiPpBgE/s1600/theming.png" height="370" width="640" /></a></div>
<br /></div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com1tag:blogger.com,1999:blog-6811405272582982341.post-17392588828565843142014-11-03T16:55:00.001-08:002014-11-03T16:55:20.976-08:00Creating Views based on Dates <div dir="ltr" style="text-align: left;" trbidi="on">
I wanted to create a View on my custom list in SharePoint Online showing me data for last 7 days.<br />
I initially though that it will be as simple as selecting my Date column and selecting options like "is greater than" or "is less than" but to my amaze it does not work like this.<br />
<br />
Simply put if you want to create views based on days (Last 7 days, Last 30 days) following is how you do it <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK_pjwsSFH_eJpEXxQ8F_VEYSX9aCbEknc9oGrl0tm8TbOh4pdjItyuC6Yisb200wrQQpz0BgclJVsnDtNLr2zAPB56KQG6dnRGcyRFxNsXmi_KdelWO7853DzmBOqnabmpOB4oFuH3zo/s1600/DateTwo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK_pjwsSFH_eJpEXxQ8F_VEYSX9aCbEknc9oGrl0tm8TbOh4pdjItyuC6Yisb200wrQQpz0BgclJVsnDtNLr2zAPB56KQG6dnRGcyRFxNsXmi_KdelWO7853DzmBOqnabmpOB4oFuH3zo/s1600/DateTwo.png" height="249" width="640" /></a></div>
<br /></div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-64790661146816129642014-10-08T17:40:00.001-07:002014-10-08T17:40:20.283-07:00Creating views using workflow status column in SharePoint 2010<div dir="ltr" style="text-align: left;" trbidi="on">
It took me by surprise when I created a view on my list based on workflow status that it does not work. I wanted to create a "In Progress" view for my list which had workflows running on it. After some searching I came to know that what you see is NOT what you get.<br />
<br />
We all know that a workflow can be in my states. Following is the list of common workflow states and what unique number SharePoint 2010 assigns them.<br />
<br />
<table><tbody>
<tr> <th>Workflow Status</th> <th>SharePoint Id</th> </tr>
<tr> <td>Not Started</td> <td>0</td> </tr>
<tr> <td>Failed On Start</td> <td>1</td> </tr>
<tr> <td>In Progress</td> <td>2</td> </tr>
<tr> <td>Error Occurred</td> <td>3</td> </tr>
<tr> </tr>
<tr> <td>Stopped by User</td> <td>4</td> </tr>
<tr> <td>Completed</td> <td>5</td> </tr>
<tr> <td>Cancelled</td> <td>15</td> </tr>
<tr><td>Approved</td> <td>16</td> </tr>
<tr> <td>Rejected</td> <td>17</td> </tr>
</tbody></table>
<br />
Here is how you create a view on SharePoint 2010 on a list with workflows<br />
<br />
1. Choose a list (it also works the same on document library but I have using list to demonstrate it) on which you want to create views and select List Settings using List tab from your ribbon<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW9adMO0FMs-s34DRSlhd4IiUHoJRJNp_YkZj2XK2_QXSJ-ciu7mu7ZLVsJ5ds3d2ZpGUOGfrq0hE7FRbwvT4WWTflLlfkGsYALXXu4BvUgj2fnPntsOmuHTyHZJ91pOMxf-RKgmqBIMU/s1600/List1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW9adMO0FMs-s34DRSlhd4IiUHoJRJNp_YkZj2XK2_QXSJ-ciu7mu7ZLVsJ5ds3d2ZpGUOGfrq0hE7FRbwvT4WWTflLlfkGsYALXXu4BvUgj2fnPntsOmuHTyHZJ91pOMxf-RKgmqBIMU/s1600/List1.png" height="100" width="640" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
<br />
2. Scroll down until you see Create View link under Views section<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0woDJMYmziNkJnHHc75PpiPVYBMRwkrnhGuupRe59xwmkb-kHYf09NIgtoAeIgw_7hcrfIzO705HnRE23cja3fiVEtZq1wdN-uqu481wWG4bs-YFf1KlOAXr32tf-JREsIRgfkTrqO9g/s1600/List2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0woDJMYmziNkJnHHc75PpiPVYBMRwkrnhGuupRe59xwmkb-kHYf09NIgtoAeIgw_7hcrfIzO705HnRE23cja3fiVEtZq1wdN-uqu481wWG4bs-YFf1KlOAXr32tf-JREsIRgfkTrqO9g/s1600/List2.png" height="102" width="640" /></a></div>
<br />
3. Select your format <br />
<br />
3. On Create View screen, name this view and scroll down to Filter section and select your Workflow name from "Show the items when column" drop down.<br />
<br />
4. Select "is equal to"<br />
<br />
5. Put a number in the text field depending on what view you are creating. Pick a number from table given above to create a particular view.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVGagjlhoC_JzKYejKC345zNm32dPmhW0PcJHE8lrBmmAeyrkwUqIFU1FPWzO3PKZXcjd9-whxDKT00XPW9zMTY88oWfX2Lg_l75uKGg3aS1VS9eKcnXiIq3Fw1k7mhDS8679vtQJYtTA/s1600/List3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVGagjlhoC_JzKYejKC345zNm32dPmhW0PcJHE8lrBmmAeyrkwUqIFU1FPWzO3PKZXcjd9-whxDKT00XPW9zMTY88oWfX2Lg_l75uKGg3aS1VS9eKcnXiIq3Fw1k7mhDS8679vtQJYtTA/s1600/List3.png" height="432" width="640" /></a></div>
<br />
6. Click OK.<br />
<br />
7. You can view all your views.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8WGeSqPh9TVlJqgrq8Ej28odjvEY06NMsNTR7DL0IVNjRH5E8cvZ5IEuJIdKbAGlhYhVxZFAQsOuqc6kGF6dlobPK0FnvIvdeppdCXgBO8eD_YK6bQ9c-dF7vW5f1Ec0-5T47HZp0hyI/s1600/List4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8WGeSqPh9TVlJqgrq8Ej28odjvEY06NMsNTR7DL0IVNjRH5E8cvZ5IEuJIdKbAGlhYhVxZFAQsOuqc6kGF6dlobPK0FnvIvdeppdCXgBO8eD_YK6bQ9c-dF7vW5f1Ec0-5T47HZp0hyI/s1600/List4.png" height="222" width="640" /></a></div>
<br />
<br />
<br />
<br />
Happy viewing <br />
</div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-18179149726147612142014-09-29T21:15:00.000-07:002014-09-29T21:18:35.012-07:00Remove and Add Title column from Content Types in SharePoint 2010<div dir="ltr" style="text-align: left;" trbidi="on">
I was working on content types today and realized that SharePoint 2010 is forcing me to use Title Column which I didn't require. I wanted to remove this column but unlike other columns I added, I could not see Remove button.<br />
<br />
Custom Column in Content Type with Remove Button<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLHaWM_wQ2OBZ2s-NmS5PPc-9g1y3LVMayiB_DjyWtaZ8cK2PmsbgTmJ4zJAlWLxc4j-pFuRdzRzVi0bPMG6UclFowJLoupC8U9JzUwQEPZsZYObHclyDy1Ruy1QtKQnXPWoG5QMJGpJk/s1600/WithRemove.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLHaWM_wQ2OBZ2s-NmS5PPc-9g1y3LVMayiB_DjyWtaZ8cK2PmsbgTmJ4zJAlWLxc4j-pFuRdzRzVi0bPMG6UclFowJLoupC8U9JzUwQEPZsZYObHclyDy1Ruy1QtKQnXPWoG5QMJGpJk/s1600/WithRemove.png" height="239" width="320" /></a></div>
Content Type Title Column without Remove Button<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTH7d9yIBBpbkJUTynvy1BWIx8xSh6G9ypFt4h8dvb9OA7Ii_kypo_cllaho7HEFo4f8hRxTKKEgwZbaSnr-BUPKrsE6ZAA3Db30i45UKEF3BbJhw5vBgsglzv03To2RNk2e_OG9XV6Tg/s1600/WithOutRemove.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTH7d9yIBBpbkJUTynvy1BWIx8xSh6G9ypFt4h8dvb9OA7Ii_kypo_cllaho7HEFo4f8hRxTKKEgwZbaSnr-BUPKrsE6ZAA3Db30i45UKEF3BbJhw5vBgsglzv03To2RNk2e_OG9XV6Tg/s1600/WithOutRemove.png" height="207" width="320" /></a></div>
I googled for it and got to a post (just like you did) to be able to remove Title Column.<br />
<br />
Steps to perform<br />
1. Open SharePoint 2010 Management Shell by click Start > All Programs > Microsoft SharePoint 2010 Products > SharePoint 2010 Management Shell right click and Run as Administrator<br />
2. Run the following script<br />
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$web = Geb-SPWeb http://YOURPORTAL</span></span></div>
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$ct = $web.ContentTypes["YOUR CONTENT TYPE"] </span></span></div>
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$spFieldLink = New-Object Microsoft.SharePoint.SPFieldLink ($web.Fields["Title"])</span></span> </div>
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$ct.FieldLinks.Delete($spFieldLink.Id)</span></span></div>
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$ct.Update()</span></span></div>
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$web.Dispose()</span></span></div>
<span style="font-size: xx-small;"><br /></span>
<span style="font-size: small;">Note: Always test the script on Staging / Test environment before running it on your Production environment.</span><br />
<span style="font-size: small;">You also need to understand that removing this column will not remove it from any of the lists/libraries that are using this column.</span><br />
<br />
<span style="font-size: small;">A little later I realized that I wanted this column back so I ran the following to get it back.</span><br />
<br />
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$web = Geb-SPWeb http://YOURPORTAL</span></span></div>
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$ct = $web.ContentTypes["YOUR CONTENT TYPE"] </span></span></div>
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$spFieldLink = New-Object Microsoft.SharePoint.SPFieldLink ($web.Fields["Title"])</span></span> </div>
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$ct.FieldLinks.Add($spFieldLink)</span></span></div>
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$ct.Update()</span></span></div>
<div style="text-align: left;">
<span style="color: yellow;"><span style="font-size: large;">$web.Dispose()</span></span></div>
<br />
<br />
<span style="font-size: xx-small;">Thank you <a href="https://www.blogger.com/profile/13199781793530532335" target="_blank">Phil Childs</a> for pointing me to right direction</span>
<span style="font-size: xx-small;"><br /></span>
<br />
<br /></div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-67419238117818560722012-11-18T21:07:00.002-08:002012-11-18T21:07:22.104-08:00Office Web Apps in Office 365<div dir="ltr" style="text-align: left;" trbidi="on">
Microsoft Office Web Apps is a web-based version of the Microsoft Office productivity suite. It includes the web-based version of Microsoft Word, Microsoft Excel, Microsoft PowerPoint and Microsoft OneNote. The web applications allow users to access their documents directly from anywhere within a web browser as well as share files and collaborate with other users online. Supported web browsers include Internet Explorer 7 or later, Mozilla Firefox 3.5 or later, Google Chrome, and Safari 4 [<a href="http://en.wikipedia.org/wiki/Office_Web_Apps" target="_blank">wikipedia</a>]<br />
<br />
Although Office Web Apps is a very useful feature but I cannot demonstrate it to you because I am on a E1 plan.<br />
<br />
You can get details of Office 365 plans from <a href="http://www.microsoft.com/en-au/office365/enterprise-solutions/enterprise-plans.aspx" target="_blank">here</a>.<br />
<br />
I think this is the whole point on this blog ~ you cannot edit your documents inside a browser if you don't have the right plan so instead of trying to figure out how to Office Web App, first check your plan details.<br />
<br />
<br /></div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-60648139220070778672012-11-14T16:43:00.000-08:002012-11-14T16:46:13.479-08:00Announcement List in Publishing Sites<div dir="ltr" style="text-align: left;" trbidi="on">
It was kind of strange to learn that I cannot create an Announcement List or a Discussion Board while on my Publishing site.<br />
<br />
Don't worry, we have a cure now.<br />
<br />
Go go <b>Site Actions</b> > <b>Site Settings</b>. Click <b>Manage site features</b> under <b>Site Actions</b>.<br />
<br />
Check if <b>Team Collaboration Lists</b> feature is activated or not. Activate it and you will have collaboration features enabled on your publishing site.<br />
<br />
You can always set them off by deactivating this feature.<br />
<br />
Happy team collaborating.<br />
<br /></div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0Sydney NSW, Australia-33.8674869 151.2069902-34.289408900000005 150.57527620000002 -33.4455649 151.8387042tag:blogger.com,1999:blog-6811405272582982341.post-13811831222243422332012-10-08T00:07:00.001-07:002012-11-14T16:48:08.087-08:00Save Site as Template for Publishing Sites<div dir="ltr" style="text-align: left;" trbidi="on">
Today we celebrated Nick's birthday while I was working on Content Types, Document Libraries and Publishing Site features on my Office 365 SharePoint 2010 Online version.<br />
<br />
I thought that creating site templates will be a piece of cake for me and it will be much tastier than the one I just had. But as it turned out, and as Aurelien puts it "not a piece of cake".<br />
<br />
I was trying to create a site template for Publishing Site in SharePoint 2010 and I realized that I cannot.<br />
<br />
Ofcourse there is a workaround.<br />
<br />
Once you have all the customizations you want to have, go to <b>Site Action</b>s > <b>Site Settings</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimOjMTQj5K31yUP7pKHD8fFTjJw-BhcLrCFowg96ud1SrjcZlR9o0Ve27Zp00wdp_sV7I_xiHXqGiSR3-xwUAy3c78wzqc_N6ixi54wBmhvNPYiQfPmBxT3WGLkLMc2tSbEruMgKfPCTk/s1600/PublishingOne.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimOjMTQj5K31yUP7pKHD8fFTjJw-BhcLrCFowg96ud1SrjcZlR9o0Ve27Zp00wdp_sV7I_xiHXqGiSR3-xwUAy3c78wzqc_N6ixi54wBmhvNPYiQfPmBxT3WGLkLMc2tSbEruMgKfPCTk/s320/PublishingOne.png" width="196" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Click <b>Manage site features</b> under <b>Site Actions</b> </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU08KCiqxLzomRmczs8BvRcQnF5M9zrIMmGhN85hXqWV1CLXSJM2Xe_FbA_IzKgAG6Qvixb4goxgZJZyWlKLcLWpxYoUYzh_VijmDH7lstHAPQ_9BMt_p7Hh_X94EjFjAIzrKL3dH6Pio/s1600/PublishingTwo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="63" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU08KCiqxLzomRmczs8BvRcQnF5M9zrIMmGhN85hXqWV1CLXSJM2Xe_FbA_IzKgAG6Qvixb4goxgZJZyWlKLcLWpxYoUYzh_VijmDH7lstHAPQ_9BMt_p7Hh_X94EjFjAIzrKL3dH6Pio/s320/PublishingTwo.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
and <b>Deactivate SharePoint Server Publishing</b> feature.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihg025zs2plFYvdZ_9KD9pisN-ZUJgyRFjvU6iO9rwtQwq-FDms7MUhNCt1fvcncSIJIngyzxykQsPXq8biTqiPhm73S06xywuLpRXK9vXX9ypOFqDyEZSzCZL3LjNgHK-esp741IKdiI/s1600/PublishingThree.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="19" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihg025zs2plFYvdZ_9KD9pisN-ZUJgyRFjvU6iO9rwtQwq-FDms7MUhNCt1fvcncSIJIngyzxykQsPXq8biTqiPhm73S06xywuLpRXK9vXX9ypOFqDyEZSzCZL3LjNgHK-esp741IKdiI/s320/PublishingThree.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Clicking Deactivate will take you to Warning page, click <b>Deactivate this feature</b>. (Dont worry, you can always re-activate it again and no love is lost)</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Go back to Site Settings page and now you will see <b>Save site as template</b> under <b>Site Actions</b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4uGxyqK2Pmn411nz3nNiAHXuO-L-a8htF-P1PFE1TVPG-kOOO7w5nr78DNTUzqfgUT7vpZitkaMmMcx1joNpLOofNcXiLTbVzSYeoKhO5GdEOWmqnQ07dOS1WGBIrMtjPZeaAII9b0pQ/s1600/PublishingFour.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="98" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4uGxyqK2Pmn411nz3nNiAHXuO-L-a8htF-P1PFE1TVPG-kOOO7w5nr78DNTUzqfgUT7vpZitkaMmMcx1joNpLOofNcXiLTbVzSYeoKhO5GdEOWmqnQ07dOS1WGBIrMtjPZeaAII9b0pQ/s320/PublishingFour.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Now save this site as a template by giving it a File Name, Template Name and options Template Description.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
If you want to have the content that you uploaded in document libraries or items in lists part of your template so they can be used again, click Include Content check box. Click <b>OK</b> to save your site template.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Site Templates in SharePoint 2010 are not .STP files any more Moreover they are not in Site Template Gallery like MOSS 2007. Site Templates are .WSP files stored in Solution Gallery like features and webparts.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
As you have already created your site template, it is of no use until you activate this template. Click <b>Site Actions</b>> <b>Site Settings</b> again.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimOjMTQj5K31yUP7pKHD8fFTjJw-BhcLrCFowg96ud1SrjcZlR9o0Ve27Zp00wdp_sV7I_xiHXqGiSR3-xwUAy3c78wzqc_N6ixi54wBmhvNPYiQfPmBxT3WGLkLMc2tSbEruMgKfPCTk/s1600/PublishingOne.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimOjMTQj5K31yUP7pKHD8fFTjJw-BhcLrCFowg96ud1SrjcZlR9o0Ve27Zp00wdp_sV7I_xiHXqGiSR3-xwUAy3c78wzqc_N6ixi54wBmhvNPYiQfPmBxT3WGLkLMc2tSbEruMgKfPCTk/s320/PublishingOne.png" width="196" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
and click <b>Solutions</b> under <b>Galleries</b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKX2xKJJrh8kjCaGWl1rIzA581oVxNeMCmFMIA8lyfNdzeV_gFnOCqVY3bvPUEPx-NrYnYEw9zrK_qIool_ZsfZJWuQQtEk1yDNyGbL2cYD-7IzdmwmrWVN2kSZsh2oueJvsbGUCQu-uY/s1600/PublishingFive.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKX2xKJJrh8kjCaGWl1rIzA581oVxNeMCmFMIA8lyfNdzeV_gFnOCqVY3bvPUEPx-NrYnYEw9zrK_qIool_ZsfZJWuQQtEk1yDNyGbL2cYD-7IzdmwmrWVN2kSZsh2oueJvsbGUCQu-uY/s1600/PublishingFive.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
You will see your site template. If its not already activated, activate it. Go back to your original site and enable SharePoint Publishing feature again.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Create a new site by click <b>Site Actions</b>> <b>New Site</b>. Select <b>Blank & Custom</b> from Categories and select your hot, freshly baked template straight from the oven. Set a <b>Title</b> and decide on a <b>URL</b>.</div>
<div class="separator" style="clear: both; text-align: left;">
Click <b>Create</b>.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRJfjjNkhpZHZqQhoZcu4QBXEvKgRu-QZPgsqqC_Kca2-i58xU9wZBZcpDesSLpyGS6DWEQ6mfgsLwZyeL5A2DOvfQiz76GeLcokLpPzflXL94hHGgq8QiYcn9vKx4BdSa7B5ltdNd_YU/s1600/PublishingSix.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="109" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRJfjjNkhpZHZqQhoZcu4QBXEvKgRu-QZPgsqqC_Kca2-i58xU9wZBZcpDesSLpyGS6DWEQ6mfgsLwZyeL5A2DOvfQiz76GeLcokLpPzflXL94hHGgq8QiYcn9vKx4BdSa7B5ltdNd_YU/s320/PublishingSix.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Aaaannnnnnnnd you are done. Wooow not so fast. Remember you deactivated Publishing Feature to create this site template and as this site is created from a deactivated publishing feature site template, you have to enable it to get publishing features.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://office.microsoft.com/en-us/sharepoint-designer-help/save-a-sharepoint-site-as-a-template-HA101782501.aspx" target="_blank">This</a> is a very good article which gives you an idea of what you get and what you are missing if you create a site from site template.</div>
<br /></div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com1Sydney NSW, Australia-33.8674869 151.2069902-34.289295900000006 150.57527620000002 -33.4456779 151.8387042tag:blogger.com,1999:blog-6811405272582982341.post-26270266779613965982012-09-25T23:57:00.001-07:002012-11-14T16:48:41.461-08:00Invite External Users in SharePoint 2010 Online & Office 365 Step By Step<div dir="ltr" style="text-align: left;" trbidi="on">
There comes a time in every site collections' life that you need to give external users access to your SharePoint 2010 Online site.<br />
<br />
Giving access to external users is easy.<br />
<br />
Go to your site collection and click Site Actions > Share Site<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidrQbuo2aoBOnAJTUIpVzWerM9qo8Z653JnYPpiD71DRuIlArtuibY0CtKSYRUlYc4iRDv2SnuEHiIW46L0D0vDTXCN6e2933__sYN05_sCkuvkAAayonLHMm06f1M-pAvnDWFn_lBNaA/s1600/sp4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidrQbuo2aoBOnAJTUIpVzWerM9qo8Z653JnYPpiD71DRuIlArtuibY0CtKSYRUlYc4iRDv2SnuEHiIW46L0D0vDTXCN6e2933__sYN05_sCkuvkAAayonLHMm06f1M-pAvnDWFn_lBNaA/s320/sp4.png" width="176" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
If you see <b>Invitation to users outside your organization are currently disabled</b>, do not worry, you are making good progress.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNS0k3XcqkQEoHKqOUk35Qk_lx1M2smiud6hqbxwEQEZ_BooF5iOIJI3CaIIwSHJyo9hIPR28XlarWIl3waHZU9rJiZPZboklkloTFY8WZ-fBkG9PoximmRBO_zdpeyD__bHMCFi_VIps/s1600/sp5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="232" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNS0k3XcqkQEoHKqOUk35Qk_lx1M2smiud6hqbxwEQEZ_BooF5iOIJI3CaIIwSHJyo9hIPR28XlarWIl3waHZU9rJiZPZboklkloTFY8WZ-fBkG9PoximmRBO_zdpeyD__bHMCFi_VIps/s320/sp5.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
You first need to allow external users access to your site collections and you do this by Allowing External Users from Manage site collections page on your Sharepoint 2010 Online portal.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Note: You need to have appropriate rights to perform this operation.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Once on Manage Site Collections page, click Manage External Users under Settings button on the ribbon.</div>
<div class="separator" style="clear: both; text-align: left;">
Remember not to select any site collection or Settings button will be disabled.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaQ_7m65Pxj0z-TOj0lUcZ5dt8rUt8XE41x2yJfAhyphenhyphen-h8_wpAFJC2H6aOMb4PHET9WmXO0sQqC9RZTsIlEzHWt_rR6XWT9k1L0FntpjmHqmMZthVGj9y1AbWburkLdA5WmP2EwsUtpH1c/s1600/sp6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="108" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaQ_7m65Pxj0z-TOj0lUcZ5dt8rUt8XE41x2yJfAhyphenhyphen-h8_wpAFJC2H6aOMb4PHET9WmXO0sQqC9RZTsIlEzHWt_rR6XWT9k1L0FntpjmHqmMZthVGj9y1AbWburkLdA5WmP2EwsUtpH1c/s320/sp6.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
On the Manage External Users pop out, select Allow and press Save button.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIUWiNstIb86c522wf7gjzpmMWHZxTnhHMxxunXPAxXKviT2yu_6wykap_Ae7gYZABxT6fSyMkA3yaMvnr9HuGyyUs5vXQn_snYUOqhWvimllmyTE9hOnwtpc1Q_jKcS8hQtnVQCl7Xg8/s1600/sp7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="211" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIUWiNstIb86c522wf7gjzpmMWHZxTnhHMxxunXPAxXKviT2yu_6wykap_Ae7gYZABxT6fSyMkA3yaMvnr9HuGyyUs5vXQn_snYUOqhWvimllmyTE9hOnwtpc1Q_jKcS8hQtnVQCl7Xg8/s320/sp7.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Why are you in so much hurry? There is still one more configuration step that you need to perform. You need to enable External user invitations feature on your site collection.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim1CxVSAwp9uSJdkWICOLgxE4t90x6wY6hsNwfC3_tLianMYBbEQNrJ0Efq1apsW5ZEDhHNjjMEFxjzR4Da6_1KBgQLpN1TH8EWfB-wNUWkhmLGno0TTHHjZltg_cGDIcnakzfPjOCuP0/s1600/sp8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="20" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim1CxVSAwp9uSJdkWICOLgxE4t90x6wY6hsNwfC3_tLianMYBbEQNrJ0Efq1apsW5ZEDhHNjjMEFxjzR4Da6_1KBgQLpN1TH8EWfB-wNUWkhmLGno0TTHHjZltg_cGDIcnakzfPjOCuP0/s320/sp8.png" width="320" /></a></div>
<br />
Once your External users invitations feature is activated, you can perform the same steps you performed earlier to share your site with others. You got it right, Site Action > Share Site<br />
<br />
Oops, I forgot to tell you that to activate a feature you need to go to the Features page which can be accessed by clicking Site Action > Site Settings. Look for Site collection features under Site Collection Administration and click it.<br />
<br />
<h3 style="text-align: left;">
<b>Gotchas</b></h3>
<div>
Your external user email address needs to be a Microsoft Online Services ID or a Windows Live ID like @live, @hotmail, @msn. If your partner does not have above mentioned id, they can always associate their ids with above services to access your shared site.</div>
<div>
<br /></div>
<div>
But how can they associate their ids to above services?</div>
<div>
Do not worry, SharePoint 2010 Online already has a user friendly solution for this. Remember, you gave access to your external users by sending them an email :) </div>
<div>
<br /></div>
<h3 style="text-align: left;">
Watchout </h3>
<div style="text-align: left;">
I have already posted a <a href="http://social.technet.microsoft.com/Forums/en-US/onlineservicessharepoint/thread/dfc29d4e-295f-465c-b34f-6ca8f7c2b58e" target="_blank">question</a> and to date waiting for a reply.</div>
</div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com2Sydney NSW, Australia-33.8674869 151.2069902-34.289408900000005 150.57527620000002 -33.4455649 151.8387042tag:blogger.com,1999:blog-6811405272582982341.post-65210467452909380902012-09-25T20:59:00.000-07:002012-09-25T23:23:39.891-07:00Office 365 and SharePoint 2010 Online Administration<div dir="ltr" style="text-align: left;" trbidi="on">
It took me by surprise that there is no Central Administration in SharePoint 2010 Online but when the dust settled, I realized that this should be the case.<br />
<br />
Anyways if there is no Administration, how can I access and do my configuration/administration was still a question to be answered.<br />
<br />
With appropriate access rights, I visited my portal i.e. https://portal.microsoftonline.com and clicked Admin from top rightish corner of my browser.<br />
<br />
Once on the Admin page, you will see Manage link under SharePoint heading (implies you have appropriate access rights)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQU5M5Ht1L-ecpm0Jadb0H1r1AlfT9krBsdh0QPJ0d8qU3dzaw8a0qjEoHFtTon_MLGw5N6DVbvtVkFwjsN0XzxjyS2Xo_zY0pZei55aio1JLS16MNwRcz6Ga-NZlOBEUwpoQNjJtzo28/s1600/SP1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="164" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQU5M5Ht1L-ecpm0Jadb0H1r1AlfT9krBsdh0QPJ0d8qU3dzaw8a0qjEoHFtTon_MLGw5N6DVbvtVkFwjsN0XzxjyS2Xo_zY0pZei55aio1JLS16MNwRcz6Ga-NZlOBEUwpoQNjJtzo28/s320/SP1.png" width="320" /></a></div>
<br />
Clicking on the Manage link takes you to the limited services that SharePoint 2010 Online offers.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwb9tRIGDaEVMN61TVtwrmoEg_waTfaJ2fJhQpDbUOcUKUNZgDV-r2vwhPNyGmYzJXrEmkqDEqD0QybbyTkoq2tTT1_QSNaxlRvKGTHCMA36cTYiWqkVQsRd_LU_pR9lxaVyKvH4CK0Yg/s1600/sp2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="132" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwb9tRIGDaEVMN61TVtwrmoEg_waTfaJ2fJhQpDbUOcUKUNZgDV-r2vwhPNyGmYzJXrEmkqDEqD0QybbyTkoq2tTT1_QSNaxlRvKGTHCMA36cTYiWqkVQsRd_LU_pR9lxaVyKvH4CK0Yg/s320/sp2.png" width="320" /></a></div>
<br />
<br />
Enjoy</div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-74025021362973131762012-09-25T20:48:00.001-07:002012-09-25T20:48:39.865-07:00Backup and Restore SharePoint 2010 Site Collection<div dir="ltr" style="text-align: left;" trbidi="on">
PowerShell to the rescue again.<br />
We have Central Administration to take care of your backup and restoration process but PowerShell commands are much more straight forward and easy to follow.<br />
<br />
<b>To Backup your SharePoint 2010 Site Collection</b><br />
1. Fireup PowerShell.<br />
2. Run the following command<br />
<br />
<b>backup-spsite -identity http://MySharePointSiteCollection:1111 -path c:\BackupFolder\1111.bak</b><br />
<b><br /></b>
Here <b>-identity</b> represents the site collection you want to backup and <b>-path</b> represents the fully qualified path along with the filename (with .bak extension) where you want to backup your site collection.<br />
Once the process is complete, you will find your .bak file at the path specified.<br />
<br />
For a complete list of options and parameters user PowerShell help<br />
<br />
To Restore your SharePoint 2010 Site Collection<br />
If you want to restore the backup on a different Site Collection/Web Application<br />
<br />
If you want to restore the backup on an existing Site Collection/Web Application<br />
1. Fireup PowerShell.<br />
2. Run the following command<br />
<br />
<b>restore-spsite -identity http://MySharePointSiteCollection:1111 -path c:\BackupFolder\1111.bak</b><br />
<br />
<br />
<b style="background-color: white; color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 15px; line-height: 22px;"><i>restore-spsite -identity http://contosoweb -path \\server\backupshare\backupfile.bak</i></b>
<br />
<br />
<br />
<span style="color: #3b3b3b; font-family: Calibri, Arial, Helvetica, sans-serif;"><span style="font-size: 15px; line-height: 22px;"><b><i><br /></i></b></span></span></div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-60531328667673884992012-09-25T20:48:00.000-07:002012-09-25T20:48:24.806-07:00Creating and Deploying Solutions in SharePoint 2010<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<b>For those who are just looking for PowerShell commands:</b></div>
<div>
First you need to add your solution</div>
<div>
<br /></div>
<div>
<em style="background-color: white; color: #333333; font-family: Arial, Helvetica; font-size: 13px; text-align: -webkit-auto;"><strong>Add-SPSolution c:\MySharePointSolution.wsp</strong></em>
</div>
<div>
<em style="background-color: white; color: #333333; font-family: Arial, Helvetica; font-size: 13px; text-align: -webkit-auto;"><strong><br /></strong></em></div>
<div style="text-align: -webkit-auto;">
Once the solution is added to your environment, install it.</div>
<div style="text-align: -webkit-auto;">
<br /></div>
<div style="text-align: -webkit-auto;">
<strong style="background-color: white; color: #333333; font-family: Arial, Helvetica; font-size: 13px;"><em>Install-SPSolution –Identity MySharePointSolution.wsp</em> <em>–WebApplication http://MySharePointServer:1111 -GACDeployment</em></strong>
</div>
<div style="text-align: -webkit-auto;">
<br /></div>
<div style="text-align: -webkit-auto;">
and we are done. Go to your site, confirm if the feature is already activated, if not, Activate it and enjoy.</div>
<div style="text-align: -webkit-auto;">
<br /></div>
<div style="text-align: -webkit-auto;">
<b>For those who are looking for a more elaborate show:</b></div>
<div style="text-align: -webkit-auto;">
<br /></div>
<div style="text-align: -webkit-auto;">
Deploying your solutions into SharePoint 2010 is very easy. Its even easier if you are in your development phase and wants to deploy your solution in a development environment with Visual Studio 2010.</div>
<div style="text-align: -webkit-auto;">
Here is a step by step process of creating, adding and deploying your solutions into SharePoint 2010.</div>
<div style="text-align: -webkit-auto;">
<br /></div>
<div>
When developing SharePoint Solutions, you were asked where you want to publish your solutions and you chose a sharepoint site of your choice.</div>
<div>
In case you are wondering where that URL is stored in your Visual Studio solution, select the project from your Solution Explorer in Visual Studio 2010 and press F4, this will show you the properties for that solution.<br />
<div>
From here you can change the URL of you site and use Visual Studio Deploy feature to deploy your solution into SharePoint site.</div>
</div>
<div>
<br /></div>
<div>
Situation changes when it comes to deploying your solution on a Test or Production Environment. You cannot use Visual Studio any more. If you assume that installing Visual Studio on your Test or Production servers will solve the problem, you are wrong. No such softwares should be installed on the above mentioned environments.</div>
<div>
<br /></div>
<div>
As now we have developed an understanding that our current solution will not work for our Test and Production Environments, our new friend Powershell comes to the rescue.</div>
</div>
Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-6151700960972116462012-07-21T09:28:00.003-07:002012-07-21T09:28:36.735-07:00Feature activation and deactivation<div dir="ltr" style="text-align: left;" trbidi="on">
Before learning about Feature Activation and Deactivation, we need to first learn about <a href="http://qaziarfeen.blogspot.com.au/2012/07/features-and-solutions-in-sharepoint.html" target="_blank">Features</a>.<br />
<br />
<br />
<br />
There are few key terms that you need to remember when it comes to working with Features deployment.<br />
1. Install <br />
2. Activate <br />
3. Uninstall<br />
<pre></pre>
<br />
4. Deactivate<br />
When working with Visual Studio, deployment a feature is as easy is right clicking your project and selecting Deploy from context menu (assuming all the default settings are in place and there are no build errors)<br />
<br />
However you will not have the luxury of Visual Studio when it comes to either staging or production environments. You will have to do something new to deploy your features. Learn PowerShell commends.<br />
<br />
Once you have your feature developed, tested and ready to deploy, click Start> All Programs> Microsoft SharePoint 2010 Products> SharePoint 2010 Management Shell<br />
<br />
Install a feature<br />
<pre>Install-SPFeature -path "MyCustomFeature"</pre>
Activate a feature<br />
<pre>Enable-SPFeature –identity "MyCustom" -URL http://somesite</pre>
Deactivate a feature<br />
<pre>Disable-SPFeature –identity "MyCustom" -URL http://somesite</pre>
Uninstall a feature<br />
<pre>Uninstall-SPFeature -path "MyCustomFeature"</pre>
<br />
My personal favorite <a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/12/02/adding-and-deploying-solutions-with-powershell-in-sharepoint-2010.aspx" target="_blank">link</a> which explains Solution deployments instead of Features is a very useful link.<br />
<pre></pre>
<pre> </pre>
<pre></pre>
<pre>
</pre>
</div>Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-67536959304326658152012-07-21T07:00:00.003-07:002012-07-21T07:00:56.528-07:00Features and Solutions in SharePoint 2010<div dir="ltr" style="text-align: left;" trbidi="on">
SharePoint 2010 (<a href="http://sharepoint.microsoft.com/en-us/product/Related-Technologies/Pages/SharePoint-Foundation.aspx" target="_blank">SharePoint Foundation 2010</a>) which is the later version of WSS 3.0 has something called Features and Solutions. The concept is of course not now to SharePoint but I assume that it is new for the readers.<br />
<b>Features:</b><br />
A SharePoint feature is a collection of SharePoint elements that can help a user accomplish a particular goal or task. Features can also be described as logical groups of elements that together serve a common purpose (Wrox)<br />
<br />
Features are units of functionality which have scope, can be installed, activated, uninstalled and or deactivated from your scopes. <br />
<br />
Scopes of a feature are<br />
1. Farm<br />
2. Web Application<br />
3. Site<br />
4. Web<br />
<br />
A feature can be a list definition, list instance, event handler, custom navigation, a list or document library, custom master page, page layouts, application pages, custom webpart or workflows.<br />
<br />
So a feature is a logical grouping which says when I deploy this solution make sure that the items in a feature can be deployed and activated as a single unit because they depend on each other; as I said earlier, its a unit of functionality.<br />
<br />
<br />
To work with feature activation and deactivation, refer my next post.<br />
<br />
<b>Solutions:</b><br />
A collection of features to be deployed in your SharePoint environment. Also known as WSP (Windows SharePoint Solution Package) which is kind of a installer for SharePoint.<br />
<br />
You must be aware of two types of solutions in SharePoint 2010 - Sandboxed and Farm. When you first create your SharePoint projects in Visual Studio your package or your solutions (.wsp) file is dependent of the choice you made earlier while creating your project in Visual Studio.Once you have selected a project deployment type (i.e. farm or sandbox) do not worry, Visual Studio lets you change your decision if needs be.<br />
<br />
Similar to features, Solutions too can be installed, activated, deactivated and uninstalled using Visual Studio and PowerShell (which is introduced in SharePoint 2010 as oppose to MOSS 2007 stsadm)<br />
<br />
To work with Solution activation and deactivation, refer to my next post.<br />
<br />
While researching about Features and Solutions, I came across a very good <a href="http://www.simple-talk.com/content/article.aspx?article=1271#commentform" target="_blank">post</a> and recommend beginners to read and implement it.</div>Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-72233299072203630522012-07-20T21:50:00.000-07:002012-07-20T22:01:54.100-07:00SPWeb in SharePoint 2010<div dir="ltr" style="text-align: left;" trbidi="on">
Often confused with a site collection within a web application, SPWeb
represents an actual web site within a site collection (SPSite) which holds actual contents like pages, document libraries, lists .<br />
<br />
At the top we have a web application, or a SPWebApplication<br />
After SPWebApplication, we have site collection or site or SPSite<br />
In each site collection we have web sites or SPWeb<br />
In each of these sites we can have more sub sites also called SPWeb.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidH8Cq1g2ZOed9RQdRpGHy03dFmpY5ddQvgknP578GI8-4EbvWJkhqu4bZ0XJ5S_iMehFKJDvRoxPOnk8XRKLJ0lLmSNuxhIO7IG_CQ-qqVvleuRXEuKZ5Ry07ReSdqooSNCys5P_qQgI/s1600/structure.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="177" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidH8Cq1g2ZOed9RQdRpGHy03dFmpY5ddQvgknP578GI8-4EbvWJkhqu4bZ0XJ5S_iMehFKJDvRoxPOnk8XRKLJ0lLmSNuxhIO7IG_CQ-qqVvleuRXEuKZ5Ry07ReSdqooSNCys5P_qQgI/s320/structure.png" width="320" /></a></div>
<br />
<br />
Lets see what our object model representation is in terms of Central Administration<br />
1.
When you click New under Central Administration>Application
Management> Manage web applications, you are dealing with
SPWebApplication. While creating a web application, you select
Authentication type, port, host header and other settings.<br />
<br />
2. When you click Create site collections under Central
Administration> Application Management, you are dealing with SPSite
(you select a web application to create site collection in it). While
creating a site collection, you select an existing web application and
choose site templates.<br />
<br />
3. When you click New Site under Site Actions from your site, you
are dealing with SPWeb. While creating a web site, you select a from
available templates, title and url<br />
<br />
SPSite object can be obtained in many ways. For example<br />
<br />
SPSite siteCollection = new SPSite("SITE COLLECTION URL");<br />
SPWeb web = SPContext.Current.Web;<br />
<br />
SPSite siteCollection2 = new SPSite("SITE COLLECTION URL");<br />
SPWeb web2 = siteCollection2.OpenWeb("WEB URL"); <br />
<br />
SPSite siteCollection3 = new SPSite("SITE COLLECTION URL");<br />
SPWEB web3 = siteCollection3.RootWeb <br />
******************************************************<br />
Sample Code<br />
using (SPSite ositeCollection = new SPSite(SITE URL))<br />
{<br />
using (SPWeb oweb = ositeCollection.RootWeb)<br />
//using (SPWeb oweb = ositeCollection.OpenWeb("PressReleases"))<br />
{<br />
Console.WriteLine("Is Root Web: " + oweb.IsRootWeb);<br />
Console.WriteLine("Master URL: " + oweb.MasterUrl);<br />
Console.WriteLine("Name: " + oweb.Name);<br />
Console.WriteLine("Site Port: " + oweb.Site.Port);<br />
Console.WriteLine("Theme: " + oweb.Theme);<br />
Console.WriteLine("Title:" + oweb.Title);<br />
oweb.Title = "New Title";<br />
oweb.Update();<br />
Console.WriteLine("Title:" + oweb.Title);<br />
Console.WriteLine("User is Web Admin: " + oweb.UserIsWebAdmin.ToString());<br />
Console.WriteLine("Web Template: " + oweb.WebTemplate);<br />
foreach (SPUser user in oweb.AllUsers)<br />
{<br />
Console.WriteLine("User Login Name: " + user.LoginName);<br />
}<br />
<br />
string templateName = "Test Site";<br />
string templateTitle = "Test Template";<br />
string templateDesc = "This template was saved programmatically.";<br />
Console.WriteLine("Save as template");<br />
oweb.SaveAsTemplate(templateName, templateTitle, templateDesc, false);<br />
Console.WriteLine("Saved");<br />
}<br />
//Console.WriteLine("Start Creating site from code. Should run only once");<br />
//ositeCollection.RootWeb.Webs.Add("FromCode");<br />
//ositeCollection.RootWeb.Update();<br />
//Console.WriteLine("Site Created");<br />
//using (SPWeb oweb = ositeCollection.OpenWeb("FromCode"))<br />
//{<br />
// Console.WriteLine("Is Root Web: " + oweb.IsRootWeb);<br />
// Console.WriteLine("Master URL: " + oweb.MasterUrl);<br />
// Console.WriteLine("Name: " + oweb.Name);<br />
// Console.WriteLine("Site Port: " + oweb.Site.Port);<br />
// Console.WriteLine("Theme: " + oweb.Theme);<br />
// Console.WriteLine("Title:" + oweb.Title);<br />
// Console.WriteLine("User is Web Admin: " + oweb.UserIsWebAdmin.ToString());<br />
// Console.WriteLine("Web Template: " + oweb.WebTemplate);<br />
// Console.WriteLine("Lists Collection");<br />
//}<br />
}<br />
<br />
It is also available in SandBoxed solutions.<br />
<br />
<b>Related Links</b><br />
<a href="http://qaziarfeen.blogspot.com.au/2012/07/spcontext-in-sharepoint-210.html" target="_blank">SPContext</a><br />
<a href="http://qaziarfeen.blogspot.com.au/2012/07/spsite-in-sharepoint-2010.html" target="_blank">SPSite</a></div>Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-90611697352836452442012-07-20T21:43:00.003-07:002012-07-20T21:59:17.963-07:00SPSite in SharePoint 2010<div dir="ltr" style="text-align: left;" trbidi="on">
Often confused with a site within a site collection, SPSite represents a collection (including top level web site annd all its sub sites. not a site.<br />
<br />
At the top we have a web application, or a SPWebApplication<br />
After SPWebApplication, we have site collection or site or SPSite<br />
In each site collection we have web sites or SPWeb<br />
In each of these sites we can have more sub sites also called SPWeb.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidH8Cq1g2ZOed9RQdRpGHy03dFmpY5ddQvgknP578GI8-4EbvWJkhqu4bZ0XJ5S_iMehFKJDvRoxPOnk8XRKLJ0lLmSNuxhIO7IG_CQ-qqVvleuRXEuKZ5Ry07ReSdqooSNCys5P_qQgI/s1600/structure.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="177" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidH8Cq1g2ZOed9RQdRpGHy03dFmpY5ddQvgknP578GI8-4EbvWJkhqu4bZ0XJ5S_iMehFKJDvRoxPOnk8XRKLJ0lLmSNuxhIO7IG_CQ-qqVvleuRXEuKZ5Ry07ReSdqooSNCys5P_qQgI/s320/structure.png" width="320" /></a></div>
<br />
<br />
Lets see what our object model representation is in terms of Central Administration<br />
1. When you click New under Central Administration>Application Management> Manage web applications, you are dealing with SPWebApplication. While creating a web application, you select Authentication type, port, host header and other settings.<br />
2. When you click Create site collections under Central Administration> Application Management, you are dealing with SPSite (you select a web application to create site collection in it). While creating a site collection, you select an existing web application and choose site templates.<br />
3. When you click New Site under Site Actions from your site, you are dealing with SPWeb. While creating s web site, you select a from available templates, title and url<br />
<br />
<br />
SPSite object can be obtained in many ways. For example<br />
<br />
SPSite siteCollection = new SPSite("SITE COLLECTION URL");<br />
SPSite siteCollection = SPContext.Current.Site;<br />
******************************************************<br />
Sample Code<br />
using (SPSite oSiteCollection = new SPSite(SITE URL))<br />
{<br />
Console.WriteLine("All Webs Count: " + oSiteCollection.AllWebs.Count.ToString());<br />
Console.WriteLine("Content Database Name: " + oSiteCollection.ContentDatabase.Name);<br />
Console.WriteLine("Features Counts: " + oSiteCollection.Features.Count.ToString());<br />
Console.WriteLine("Host Name: " + oSiteCollection.HostName);<br />
Console.WriteLine("Owner Login Name: " + oSiteCollection.Owner.LoginName);<br />
Console.WriteLine("Root Web Exists: " + oSiteCollection.RootWeb.Exists.ToString());<br />
Console.WriteLine("URL: " + oSiteCollection.Url);<br />
Console.WriteLine("Web Application Application Pool Name: " + oSiteCollection.WebApplication.ApplicationPool.Name);<br />
}<br />
<br />
It is also available in SandBoxed solutions.<br />
<br />
<b>Related Links</b><br />
<a href="http://qaziarfeen.blogspot.com.au/2012/07/spcontext-in-sharepoint-210.html" target="_blank">SPContext</a><br />
<a href="http://qaziarfeen.blogspot.com.au/2012/07/spweb-in-sharepoint-2010.html" target="_blank">SPWeb </a></div>Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-30849770754439775622012-07-20T20:18:00.002-07:002012-07-20T21:58:13.469-07:00SPContext in SharePoint 210<div dir="ltr" style="text-align: left;" trbidi="on">
Before discussing what SPContext is, we need to understand what a Context is.<br />
As stated by <a href="http://www.thefreedictionary.com/context" target="_blank">free dictionary</a>, context means :The circumstances in which an event occurs.<br />
So if we take things in context and try to dig deeper in SPContext in SharePoint 2010 or any other version, it represents a context of your HTTP Request in Microsoft SharePoint Foundation.<br />
<br />
SPContext object is used in your custom code like custom web parts and it returns context information in which your code is running.<br />
<br />
For example you need to read some items from a list. There are 2 ways to do it. Either hard code the url to get to your Web Application/Site Collection/List or use SPContext to get the required object and use it accordingly.<br />
<br />
Once you deploy your custom webpart in your web application and try to use it on a page, this site/site collection/web application becomes your context because your code in running inside this context.<br />
<br />
The most important members of <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spcontext_members.aspx" target="_blank">SPContext</a> is <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spcontext.current.aspx" target="_blank">Current</a><br />
Once you get current context, you can use further members of the class<br />
<br />
SPWeb web = SPContext.Current.Web; <br />
SPSite site = SPContext.Current.Site;<br />
SPList list = SPContext.Current.List;<br />
SPListItem listItem = SPContext.Current.Item;<br />
<br />
One important thing is that it is also available in SandBoxed solutions<br />
<br />
<b>Related Links</b><br />
<a href="http://qaziarfeen.blogspot.com.au/2012/07/spsite-in-sharepoint-2010.html" target="_blank">SPSite</a><br />
<a href="http://qaziarfeen.blogspot.com.au/2012/07/spweb-in-sharepoint-2010.html" target="_blank">SPWeb</a> </div>Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0tag:blogger.com,1999:blog-6811405272582982341.post-58317820080261402872012-02-18T06:26:00.000-08:002012-02-18T06:28:53.613-08:00CAML Query Where Criteria for Boolean type columns<div dir="ltr" style="text-align: left;" trbidi="on">
Interestingly enough, boolean type columns can either be used as Integer or Boolean values and heres how its done.<br />
<strong>string CAMLQuery = "<Where> <Eq><FieldRef Name='Online'/> <Value Type='Integer'>1</Value></Eq> </And> </Where>" ;</strong><br />
or<br />
<strong>string CAMLQuery = "<Where> <Eq><FieldRef Name='Online'/> <Value Type='Boolean'>True</Value></Eq> </And> </Where>" ;</strong><br />
where TRUE, True, true are all possible values </div>Qazi Arfeenhttp://www.blogger.com/profile/09130998270822742826noreply@blogger.com0