Category Archives: PowerShell

You come into the office Monday morning to find someone deleted your AD machine account.  First, it’s no surprise as it is Monday.  Rather than logging in locally to re-join the domain, you can use the Restore-ADObject PowerShell cmdlet to quickly restore the account. Verify the machine account exists in the Deleted Objects container: *replace […]

View full post »

When you build a task sequence in SCCM and MDT you can use WMI queries to run steps for specific computer models.  This is especially useful when installing driver packages or BIOS updates.  Here is an example of a WMI query to detect only Surface Pro 4 devices: SELECT * FROM Win32_ComputerSystem WHERE Model Like […]

View full post »