To provide WMI privilages for a non administrator user. Supply the username and required permissions as parameters.
WMI Privilages for a non-administrator user using Powershell
Create a mailbox Database in Exchange Server
The below script will create a mailbox Database in Exchange Server with the name D10. Create a mailbox Database in Exchange Server
Add Attributes to Global Catalog Replication
To add Attributes to Global Catalog Replication , supply the attribute name as parameter.
Add Attributes to Global Catalog Replication
Turn off User or Computer settings of a GPO
Supply the FQDN(Fully Qualified Domain Name) and GUID of GPO as parameters.
Turn off User or Computer settings of a GPO
Determine whether a machine is Laptop or not
Execute the below script to determine whether a machine is Laptop or not.
Determine whether a machine is Laptop or not
Powershell Script to Delete Files Older than X days
Supply the folder path name and number of days to delete Files Older than X days. Number of days must be in negative.
Powershell Script to Delete Files Older than X days
Display Events with a particular Text
Supply the required text as parameter to display all events that contain the text.
Display Events with a particular Text
Powershell Script to Find and Replace in a File
To Find a text and replace it with a desired text in a File . Supply file path , the text to find and the text to be replaced as parameter.
Powershell Script to Find and Replace in a File
Display maximum and minimum FreeSpace in a logical disk
Execute the script to find the maximum and minimum space in a local disk.
Display maximum and minimum FreeSpace in a logical disk
Display the Parent Process of given Process
Supply the process name as parameter to display its parent process name.
Display the Parent Process of given Process