ADFS error AADSTS50008: SAML token is invalid.

Recently i got this error,¬†AADSTS50008: SAML token is invalid. when signing in to office 365. When i logged in to AD FS Management console i realised that the token signing certificate was renewed and the old certificate was demoted as the secondary certificate Various blog post stated that i should run [code language=”powershell”] Update-MsolFederatedDomain -DomainName …

Automatic reboot and correct logoff for citrix

In addition to the Remote Desktop reboot i’ve created one for citrix as well. This customer had two catalogs, and thay didn’t want the second machine catalog to be rebooted each day. Replace the $XACatalogName with you own. [code language=”Powershell”] Add-PSSnapin citrix.* $XACatalogName = "XenApp Production Servers" $MessageSubject = "Reboot Schedule" $MessageBody = "You have …

Automaticcaly Uninstall software when user isn’t member of a group

The below script will automaticcaly uninstall software if user is no longer member of the group, and the software is installed on the computer. replace Software Installed with your software display name and “DOMAIN\\GROUP” with your local security group that is used for installing the software [code language=”SQL”] 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 inner join SMS_G_System_ADD_REMOVE_PROGRAMS …