2019-05-15

Powershell New-PSSession The SSL certificate is signed by an unknown certificate authority

Error:
Connecting to remote server SERVER failed with the following error message : The server certificate on the
destination computer (SERVER:443) has the following errors:   
The SSL certificate is signed by an unknown certificate authority. For more information, see the about_Remote_Troubleshooting Help topic.

+ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -Conne ...
+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : 12175,PSSessionOpenFailed


Fix:
$userID = "user@server"
$userIDpass = "password"
$password = ConvertTo-SecureString -AsPlainText -Force -String $userIDpass
$credential = New-Object System.Management.Automation.PsCredential($userID,$password)
$sessionOption = New-PSSessionOption -SkipRevocationCheck -SkipCACheck -SkipCNCheck
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://SERVER/powershell/ -Credential $credential -SessionOption $sessionOption



2019-05-03

Все расширения Google Chrome 71 исчезли. All Google Chrome 71 extensions have disappeared.


После потери питания (или падения) Google Chrome 71 - все расширения пропали, иконок нету, в chrome://extensions/ - пусто.

Обычно профиль находится тут

  • Windows 7, 8, 10: C:\Users\имя пользователя\AppData\Local\Google\Chrome\User Data\Default
  • Mac OS X: Users/имя пользователя/Library/Application Support/Google/Chrome/Default
  • Linux: /home/<username>/.config/google-chrome/default

Находим где установлен Google Chrome (в винде), открываем chrome://version/
Profile Path:
Путь к профилю:

Переходим по этому пути и заходим в папку Extension State
Находим файлы *.ldb
Смотрим по размеру и берём файл .ldb с самым маленьким размером
Открываем этот файл и делаем поиск такой строки "title":"

"title":"Adblock Plus"
"title":"Tampermonkey"
"title":"friGate

И т.д., в этом файле весь список пропавших расширений (настройки расширений остались в Chrome), добавляем руками все нужные расширения.


2019-04-19

The trust relationship between this workstation and the primary domain failed

The trust relationship between this workstation and the primary domain failed


Solution:
Netdom ResetPWD /Server:com.lab /UserD:com.lab\administrator /PasswordD:Adaxes0

Netdom Reset comp /Domain:com.lab /Server:dc.com.lab /UserO:com.lab\administrator /PasswordO:Adaxes0

A SQL operation in the AD FS configuration database with connection string

Log Name:      AD FS/Admin
Source:        AD FS
Event ID:      352
Task Category: None
Level:         Error
Keywords:      AD FS
Description:
A SQL operation in the AD FS configuration database with connection string Data Source=np:\\.\pipe\microsoft##wid\tsql\query;Initial Catalog=AdfsConfiguration;Integrated Security=True failed.

Additional Data

Exception details:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

The ADFS service was stopped. Restarting it just gave errors.


Solution:
Restart "Windows Internal Database"
Restart ADFS

2019-04-18

Смена раскладки происходит сочетанием клавиш CmdПробел, но часто этот шорткат закреплен за вызовом строки поиска Spotlight. Чтобы исправить ситуацию, отключите два шортката для Spotlight:
Системные настройкиКлавиатураСочетания клавиш



Выключите сочетания клавиш для Spotlight, или замените из на другие
Теперь зайдите в меню Клавиатуры и ввод, и поменяйте шорткат для изменения языка ввода с
OptionПробел НА CmdПробел




Original source https://macosworld.ru/menyaem-raskladku-klaviatyri-na-mac/




2019-01-11

Конектим Мак к Виндовым шарам

Enable Mac to Windows File Sharing in Mac OS X



First you need to enable the Windows to Mac file sharing functionality, this is a simple preference toggle in OS X system settings on the Mac:
  1. Launch “System Preferences” and click on “Sharing”
  2. Click the checkbox next to “File Sharing” to enable it
  3. Once File Sharing is turned on, select it and then click on the “Options…” button
  4. Click the check box next to “Share files and folders using SMB (Windows)”
  5. Now click on the checkbox next to the user accounts you want to share or access from Windows – when you click to enable SMB sharing on a user account, you will be asked for that users password
  6. Click on “Done”



Connecting to a Windows PC from a Mac



Going the other direction, you can connect to a Windows Shared PC very easily from a Mac running OS X:

  1. From the OS X Finder, hit Command+K to summon “Connect To Server”
  2. Choose the “Browse” button to browse the available network shares, double-clicking on the share to enter a login
  3. OR: In the “Server Address” field, simply enter the IP of the Windows share to connect to preceded by smb://

For example, to connect to a Windows share at 192.168.1.115, the smb address would be:
smb://192.168.1.115
smb://windows-computer-name


Original source http://osxdaily.com/2011/09/08/share-files-from-mac-to-windows-pc/