Powershell Win32_Classes Error : Invalid Class

0 comments
Many times you have seen this error when you try to use classes in Get-WMIObject and get error "invalid class" as attached below.


And you will many thing to troubleshoot it and sometimes you will be messed up with your operating system. Here is the solution which i use always and it works for me.

Airtel huawei E3372 datacard fix for OS X EL Capitan 10.11

0 comments
In my organisation we have Airtel 4G dongles which we assign to our users so that they work from home too. But these dongles were showing some problem after upgrade to new OS X El Capitan. After a deep research, drivers were not compatible and Airtel didn't have new drivers for OS X 10.11.

So here is the way to fix it and make it compatible device for OS X 10.11.

Installation

Go to Huawei Support Site (consumer.huawei.com).
Click on Support and Search for your device model. In my case, i searched for E3372.
Click on Your Device image and Click on Update on left bottom corner.
Download "Stick Mobile Partner(for MAC10.11)"
Extract it and Install it. (No rocket science in it.)

Get the list of non-inherited folders

0 comments
As i work on network share permissions, sometimes i get over burden when i get a such request to give permission on a folder which have lots of non-inherited sub-folders. So in that you should have a list or information of all sub-folders which have their own individual permissions and not inheriting from their parent folder.

So to reduce my burden i wrote a script which gives me a list of all folder which have not inheriting from their parent folder.

I kept one thing under consideration while writing it. When we disable inheritance from any folder we keep Administrator with Full Control to manage the folders. You can make the change if you use any other group or service account for the same.

Script

Macbook gets log out after when it is not in use

0 comments
If your Macbook or Macmini or iMac gets logout when it is not in use or it is inactive for some duration. Below are the settings to get rid from this.

From Clients

Go to System Preferences > Security & Privacy > General > Advanced... (right bottom corner)
Uncheck "Log Out After"





From Profile Manager