This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe --log-net-log=C:\temp\logFull.json --net-log-capture-mode=IncludeSocketBytes | |
| # autoprox | |
| # https://github.com/pierrecoll/autoprox | |
| # https://emeaie.azurewebsites.net/pierrelc/autoprox.zip | |
| # https://learn.microsoft.com/ru-ru/troubleshoot/developer/browsers/connectivity-navigation/optimize-pac-performance | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| if (!isset($_GET['dev'])) { | |
| $cid = $modx->resource->get('id'); | |
| //$exclude = $modx->getOption('exclude',$scriptProperties,'12'); | |
| if(empty($cid)) { return; } | |
| if(in_array($cid,explode(',',$exclude))) { return; } | |
| $output = &$modx->resource->_output; | |
| //remove all comments | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Get-WindowsFeature | Where-Object -FilterScript { $_.Name -Eq "NAME" }| Uninstall-WindowsFeature | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | USE [master]; | |
| GO | |
| ALTER DATABASE [WSS_Content1] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; | |
| GO | |
| ALTER DATABASE [WSS_Content1] MODIFY NAME = [WSS_Content2]; | |
| GO | |
| ALTER DATABASE[WSS_Content2] SET MULTI_USER; | |
| GO | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | SELECT DB_NAME(database_id), last_user_seek = MAX(last_user_seek), last_user_scan = MAX(last_user_scan), last_user_lookup = MAX(last_user_lookup), last_user_update = MAX(last_user_update) FROM sys.dm_db_index_usage_stats GROUP BY database_id ORDER BY MAX(last_user_update) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $web = Get-SPWeb http://SITE | |
| $user=$web.AllUsers | |
| $user|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}} | set-Content -Encoding UTF8 filename | |
| or | |
| get-SPUser -Web http://SITE|Select LoginName,@{Name='Groups';Expression={$_.Groups -join '|'}} | set-Content -Encoding UTF8 filename | |
| or | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Repair-SPManagedAccountDeployment | |
| Set-SPManagedAccount -UseExistingPassword -Identity DOMAINA\SPSAdmin | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | SELECT DB_NAME(database_id), last_user_seek = MAX(last_user_seek), last_user_scan = MAX(last_user_scan), last_user_lookup = MAX(last_user_lookup), last_user_update = MAX(last_user_update) FROM sys.dm_db_index_usage_stats GROUP BY database_id ORDER BY MAX(last_user_update) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | runas.exe /noprofile /env /user:domain\login "cmd /c ^C:\app.exe^" | 
NewerOlder