To change an Active Directory users password expiration mode you can use this PowerShell snippet:
Import-Module ActiveDirectory Get-ADGroupMember "Group1" -Recursive | Get-ADUser -Properties PasswordNeverExpires | where {$_.enabled -eq $true -and $_.PasswordNeverExpires -eq $false} | select -First 50 | %{ Write-Host $_.UserPrincipalName Set-ADUser $_ -PasswordNeverExpires $true } Latest version of this snippet: https://gist.github.com/7913696
To get a users member shipments recursively I’ve written an extended function based on the already existing function Get-ADPrincipalGroupMembership it simply loops through the users member shipments and outputs the data in tree styled list.
About Based on new business requirements our intranet SharePoint needs an update from version 2010 to 2013. The new installation will be part in our existing Office 365 hybrid environment. As I’ve completed the Core Solutions of Microsoft SharePoint Server 2013 course I going to perform this project on my own. In this series of posts I would like to share my knowledge and experience in building this new intranet based on SharePoint 2013.
You can print every SharePoint list item with the keyboard short cut Ctrl+P. But adding a real print button to the SharePoint list view isn’t that difficult too.
Choose the form type in you list options under form webparts.
In my company the user only have user rights on their computers. As you should know you’ll face many problems with this restriction.
Many users want to install third party software on their computers or add a printer at home. To reduce argues and make the user happy, I’ll assign administrator rights for a temporary time.
Based on a predefined GPO and based on a list showing which user has administrator rights in a specified time period, my PowerShell script creates new temporary GPO to assign local administrator rights.