VMware:  PowerCLI Errors
Jun12

VMware: PowerCLI Errors

PowerCLI Errors KB ID 0001830 Problem I was doing some work recently and tried to connect to my vCenter server and was greeted with this. PS C:\Users\administrator.PNL> connect-viserver vc-70.pnl.com connect-viserver : Object reference not set to an instance of an object. At line:1 char:1 + connect-viserver vc-70.pnl.com + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Connect-VIServer], NullReferenceException +...

Read More
Windows: Copy User Membership to Another User
May30

Windows: Copy User Membership to Another User

Copy User Membership KB ID 0001828 Problem If you have a lot of user groups and simply want to copy/clone one users group membership to another user, then with PowerShell that’s quite simple to do. Solution: Copy User Membership Here I have two users ALane who is a member of a few groups and APatel who is simply a member of domain admins. Although we can see above what groups ALane is a member off let’s prove that will...

Read More
Windows: Migrate DHCP HA
May11

Windows: Migrate DHCP HA

Migrate DHCP HA KB ID 0001826 Problem I got an email last week. “Hi thanks for your video. I have two win 2012 DC DHCP on a failover/load balance config and want to migrate to new Win 2022 VMs. What’s the exact procedure? If it’s a single VM it’s easy but I’m not sure about if it’s on a failover setup.” Well migrating the domain controller element I’ve covered before. Migrate From Server...

Read More
OneDrive GPO (Domain Group Policy)
Apr12

OneDrive GPO (Domain Group Policy)

OneDrive GPO KB ID 0001821 Problem The administrative template that you get with Win11 is somewhat out of date, so if you want to manage OneDrive with domain group policy your options are limited, if only there was a newer administrative template! Well, there is, and it gets updated and sent to you quite regularly. Microsoft just do a good job of hiding it. Solution OneDrive GPO Depending on your deployment the files you need can be...

Read More
Restore the Windows 11 Right Click Menu
Mar27

Restore the Windows 11 Right Click Menu

Windows 11 Right Click KB ID 0001819 Problem The first time I saw this I thought “Where’s cut/copy/paste gone?”. But more annoyingly ‘Send To” is also not on the initial menu! Solution: Restore Windows 11 Right Click Open an Administrative PowerShell window. Issue the following three commands. (New-Item ‘HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32’...

Read More
Restore AD Objects
Mar06

Restore AD Objects

Restore AD Objects KB ID 0000096 Problem Ever since we had Server 2008 R2 we have had the AD recycle bin (which is not enabled by default). Even if you have not enabled the AD Recycle bin, when objects are deleted from AD they are not completely ‘deleted’ they are simply tombstoned, and they can be restored (for 180 days). Note: Those object’s when restored WILL lose some of their attributes though! CAN I RESTORE AD...

Read More
PowerShell to Exchange Online
Mar01

PowerShell to Exchange Online

PowerShell to Exchange Online KB ID 0001814 Problem While attempting to PowerShell to Exchange Online today, I tried to do this by using my usual method, and repeatedly got this error. New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. At line:1 char:12 + $Session =...

Read More
Upgrade Azure AD Connect
Feb27

Upgrade Azure AD Connect

Upgrade Azure AD Connect KB ID 0001813 Problem On 15th March 2023 support for the following Azure AD Connect sync versions will be removed; 2.0.91.0 2.0.89. 2.0.88.0 2.0.28.0 2.0.25.1 2.0.10.0 2.0.9.0 2.0.8.0 2.0.3.0 So plan in some maintenence and upgrade yours, at time of writing the current version is 2.1.20.0, so you can still upgrade if you running an older version. Upgrade Azure AD Connect: Solution Before you start it’s...

Read More
Find Modified Files In a Folder (By Age and Date)
Feb20

Find Modified Files In a Folder (By Age and Date)

Find Modified Files In a Folder KB ID 0001812 Problem You need to find a modified file in a folder, there are a few ways to do this, the best options are via PowerShell, but you can also use the search function in Normal Windows Explorer. Solution Find Modified Files In a Folder: Graphically Strangely the option you want you cannot see unless you click into the search field, once you do that Search will be visible on the menu ribbon....

Read More
Update PowerShell To the Latest  Version
Sep29

Update PowerShell To the Latest Version

Update PowerShell KB ID 0001800 Problem Whenever you start Powershell,  you may see something like, You’ve probably seen that so many times, you don’t even thing about it. So what’s the quickest and easiest way to update it? I like to see what’s going on, so I choose to update with the MSI file. Update PowerShell Solution From within the Powershell window execute the following command. Invoke-Expression...

Read More