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

  1. //
  2. // Create the shell object
  3. //
  4. var shell = new ActiveXObject( "WScript.Shell" );
  5. var fso = new ActiveXObject( "Scripting.FileSystemObject" );
  6. var file = shell.RegRead( "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Passport\\Nexus\\Partner\\CCDLocalFile" );
  7. if( fso.FileExists( file ) )
  8. {
  9. try
  10. {
  11. fso.DeleteFile( file ) ;
  12. }
  13. catch( e )
  14. {
  15. WScript.Echo( "Unable to delete " + file );
  16. WScript.Echo( e.toString() );
  17. WScript.Quit( -1 );
  18. }
  19. }
  20. var ppAdmin = new ActiveXObject( "Passport.Admin" );
  21. if( !ppAdmin.Refresh( false ) )
  22. {
  23. WScript.Echo( "There was an error refreshing the network map" );
  24. }