PoshTip #28 – Generate Random Passwords

10 juin 2016 Nicolas 0

PoshTip #28 – Generate Random Passwords First, import the System.Web assembly: Add-Type -AssemblyName System.Web and use the GeneratePassword function: [System.Web.Security.Membership]::GeneratePassword(10,5) GeneratePassword(x,y) x=Password length y=Number of Read More

SCCM2012R2: Collection query for inactive clients

1 juin 2016 Nicolas 0

Create a collection using the following query and you will get all the workstations which are inactive: SELECT SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier, SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client FROM SMS_R_System Read More