Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
638 B

//
// Create the shell object
//
var shell = new ActiveXObject( "WScript.Shell" );
var fso = new ActiveXObject( "Scripting.FileSystemObject" );
var file = shell.RegRead( "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Passport\\Nexus\\Partner\\CCDLocalFile" );
if( fso.FileExists( file ) )
{
try
{
fso.DeleteFile( file ) ;
}
catch( e )
{
WScript.Echo( "Unable to delete " + file );
WScript.Echo( e.toString() );
WScript.Quit( -1 );
}
}
var ppAdmin = new ActiveXObject( "Passport.Admin" );
if( !ppAdmin.Refresh( false ) )
{
WScript.Echo( "There was an error refreshing the network map" );
}