Tag Archives: ActiveDirectory

Reset local admin password

You probably want to have random passwords on all your local admin accounts… Wrote a function that generates a complex (and readable) password and another function that sets the local admin password. This is how to reset password on a … Continue reading

Posted in PowerShell | Tagged , , | Comments Off on Reset local admin password

Default Powershell Execution Policy

You can use a GPO to set the ExecutionPolicy to a static value on all machines. But what if you want to default it to something and then let the users have the ability to change it? Group Policy Preferences … Continue reading

Posted in PowerShell, Snowland.se | Tagged , , , | Comments Off on Default Powershell Execution Policy

Bitlocker Info

I’m playing around with pipelining information to functions… and since I needed a function to read Bitlocker information from Active Directory, why not create one. 🙂

Posted in PowerShell | Tagged , , | Comments Off on Bitlocker Info

User pictures in AD

Adding pictures to Active Directory is kind of nice, it gives you pictures in Outlook, Lync and few other products… To add it you need to load a picture as binary and put it in to the attribute thumbnailPhoto on … Continue reading

Posted in PowerShell | Tagged , , | Comments Off on User pictures in AD

Logon Scripts in Powershell – Part3: Storing and retrieving shares to map to/from AD

To keep you logon scripts static one way of storing information on who sould get what mapped is to use the Active Directory. First of, talk to the AD-guys and “reserve” 3 attributes on groups (or extend the schema and … Continue reading

Posted in PowerShell, Series | Tagged , | Comments Off on Logon Scripts in Powershell – Part3: Storing and retrieving shares to map to/from AD