Tag - powershell

Entries feed - Comments feed

2021 Sep 17

Tips on PowerShell $profile

Extending PowerShell possibilities is a great step beyond the regular usage. For that, we can create the $profile file, which will load every time you start the PowerShell session. You can have a separate profile for each user account, or a generic system one.

Continue reading...

2021 Jun 20

Checking the *Real* Password Expiration Date

If you ever happened to have used ADAC for the users to set up their password policy to be different from the default for your domain, then you might have noticed the net user %username% /domain command will return not the expected value, as it checks the information quite differently. The script below will actually help to determine the real expiry date.

Continue reading...

2021 Jun 13

Remove the User from a Group if They are the Members of Another One

If you need to remove the user from a particular group based on the membership of another, you can do that super easy, barely an inconvenience.

Continue reading...

A Fast Way to Sync All Devices in Intune

This example is used for the cases when you have made some changes to Intune, and want to send the "Sync" signal to all machines in mind. The example is using Windows, as it is the most common OS. You can select any OS you want, just replace Windows with macOS, Android or iOS. Also, you can remove filter at all - that will sync all the devices regardless of the OS.

Continue reading...

Check Users with No Groups by Pattern

Imagine the situation when someone (probably, from Audit) comes to you and asks to provide the list of users (if any) without a particular group (or groups by imaginary pattern). It could happen, so you need to be more or less prepared.

Continue reading...

2021 Jan 4

Copy Files from Bitbucket to DFS

You might have a magic opportunity to delegate some stuff to the First Line, Junior colleagues etc., also you may need to automate it for yourself. In my current company we are using the on-premise Bitbucket for the VPN repositories, as regardless of the year (2020-2021) you are still expected to have the VPN, and git is a good tool to monitor activities and changes. Also, we are having the DFS servers for people to share their files.

Continue reading...

2020 Sep 28

UPN Suffix Change for the Required Users

Sometimes you will need to change the UPNs for the users. Either to have the sync with Azure AD or for something else – it's good to be compliant with the 21st century.

Continue reading...