-
a nice little script I wrote last week to backup my files using robocopy. Read more from my blog entry: http://yangtao-blog.spaces.live.com/blog/cns!78150852A51B249C!236.entry Tao
-
This script allows you to specify a WMI class and any properties that you wish to query, run the WMI query against every computer in an array of OUs (also allow you to exclude any child OUs that you do not wish to query). the Output is stored in a CSV file located on the same directory of the script. The OUs and excluded OUs are hardcoded in the script and the WMI class, properties (optional) and WMI namespace (optional) are passed into the script as parameters. if no wmi class properties are specified
-
When I was implementing SCOM 2007, I couldn't find a setting in SCOM to auto resolve alerts that are older than certain days. - This functionality is available in MOM 2005. Therefore I wrote this Powershell script and created a Windows scheduled task to run it daily
-
In Windows 2003, the local guest account has blank password and by default it is named “Guest". Below is the script I wrote in Powershell to rename the guest account (no matter what the current name is) and reset th password
-
As you may know, there are 2 APIs to manage scheduled tasks in Windows: schtasks (used by normal GUI interface) and wmi class win32_scheduledjob. These 2 APIs do not work well with each other. Win32_ScheduledJob class can not access the jobs created by schtasks and jobs created via Win32_ScheduledJob class only have a very limited number of properties. Additional, schtasks cannot modify the jobs created by Win32_ScheduledJob class. Because of this limitation in the WMI class Win32_ScheduledJob, I
-
As you may know, there are 2 APIs to manage scheduled tasks in Windows: schtasks (used by normal GUI interface) and wmi class win32_scheduledjob. These 2 APIs do not work well with each other. Win32_ScheduledJob class can not access the jobs created by schtasks and jobs created via Win32_ScheduledJob class only have a very limited number of properties. Additional, schtasks cannot modify the jobs created by Win32_ScheduledJob class. Because of this limitation in the WMI class Win32_ScheduledJob, I