RSS

Category Archives: Scripting

How can I use group policy to prevent the screen saver from activating while I am watching a video?

To prevent this behavior, disable the Allow Screen Saver group policy at User Configuration / Administrative Templates / Windows Components / Windows Media Player / Playback.

The Allow Screen Saver explain text contains:

Enables a screen saver to interrupt playback.

This policy displays a screen saver during playback of digital media according to the options selected on the Screen Saver tab in the Display Properties dialog box in Control Panel. The Allow screen saver during playback check box on the Player tab in the Player is selected and is not available.

When this policy is disabled, a screen saver does not interrupt playback even if users have selected a screen saver. The Allow screen saver during playback check box is cleared and is not available.

When this policy is not configured, users can change the setting for the Allow screen saver during playback check box.

 
1 Comment

Posted by on May 1, 2005 in General, Scripting, Windows XP

 

How can I use a script to determine the number of processors in a machine?

You can use a Windows Management Instrumentation (WMI) script to easily ascertain the number of processors on a machine. To do so, use these VBScript commands in a script file:

Set oShell = WScript.CreateObject(“WScript.Shell”)
Set oEnv = oShell.Environment(“SYSTEM”)
WScript.Echo oEnv(“NUMBER_OF_PROCESSORS”)

 
Leave a comment

Posted by on March 31, 2005 in General, Scripting, Windows XP

 

Freeware Caffeine prevents your PC from locking or going to sleep

Run this to prevent your PC screen from locking. It does this by simulating
that you’ve pressed the shift key once every 59 seconds.

Double-click the icon to temporarily disable Caffeine, and permit your screen
to lock.

Under Win98: a key down and then a key up event is simulated
Under Win2000/XP: a key up event is simulated

Download here

 
 

Screen Lock Transparent for Windows 2000/NT/XP

Transparent Screen Lock enables IT professionals to prevent unauthorized system access, while maintaining the ability to view applications running on the desktop for monitoring purposes.

Website

 
1 Comment

Posted by on December 1, 2004 in General, Scripting, Windows 2000, Windows 2003, Windows XP

 

Create Lock Desktop Icon

You can lock the Windows 2000 or XP desktop with a click of an icon. Create a shortcut icon on the desktop to run the following command:

rundll32.exe user32.dll,LockWorkStation

 
2 Comments

Posted by on December 1, 2004 in General, Scripting, Windows 2000, Windows 2003, Windows XP

 

Free Gmail Account give away …

Please leave a comment and explain why you deserve a 1Gb Gmail account.

Make sure you leave your email address.

Good Luck.

 

How can I create a file that contains a list of all objects in a domain?

You can use the Csvde utility, which is included in Windows Server 2003 and Windows 2000 Server, to create a comma-separated value (CSV) file that lists all objects in a domain. For example, to list all objects in the home.local domain, you’d run the command

csvde -d “dc=home,dc=local” -f domain.csv

 
1 Comment

Posted by on July 2, 2004 in Scripting, Windows 2000, Windows 2003

 

How do I change the default script host from Wscript to Cscript or visa versa

The default scripting engine for Windows 2000 is Wscript. If you use Cscript more often, you may wish to change the default, to eliminate the need to type Cscript before each file.

To change the default, type:

cscript //h:cscript //s

 
1 Comment

Posted by on June 20, 2004 in Scripting

 

Shortcut For Logging Off

Paste the below in to a text file and save as logoff.vbs

set WshShell = CreateObject(“WScript.Shell”)
WshShell.SendKeys “^{ESC}ul{ENTER}”

 
2 Comments

Posted by on June 20, 2004 in Scripting

 
 
Follow

Get every new post delivered to your Inbox.