Download.bat
C:\Scripts\DownloadSFTP.txt
loading...
loading...
Download.bat
C:\Scripts\DownloadSFTP.txt
Upload.bat
C:\FTP\Connection.txt
Connect-MicrosoftTeams
This is actually called URL protection in the backend and can be found below
C:\ProgramData\ssh\sshd_config
If you get the below issue , when trying to add a number , this is a ** Microsoft Outage **
Set-CsPhoneNumberAssignment -Identity “XXXXXXXXXXXX” -PhoneNumber “612XXXXXXXXXXX” -PhoneNumberType DirectRouting
Microsoft.Teams.ConfigAPI.Cmdlets.internal\Set-CsPhoneNumberAssignment : LocalizationKey 'Assignment.ErrorResultCode.Mas.RequiredAssignedPlanMissing' was not found
At C:\Program Files\WindowsPowerShell\Modules\MicrosoftTeams\4.3.0\net472\custom\PsExt\Merged_custom_PsExt.ps1:5858 char:9
+ Microsoft.Teams.ConfigAPI.Cmdlets.internal\Set-CsPhoneNumberA ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ({ Identity = ro...iceEnabled = }:<>f__AnonymousType89`5) [Set-CsPhoneNumberAssignment_Set], Exception
+ FullyQualifiedErrorId : InvalidLocale,Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Cmdlets.SetCsPhoneNumberAssignment_Set
sporadic issues where remote users on the VPN cannot browse the root domain \\domain.local however child shares are accessible such as \\domain.local\NETLOGON
Re-configured the VPN to not use split-tunnelling which improved access to root directories but didn’t resolve the issue entirely
Noticed that the original rule from the SSL-VPN > Internal LAN was behind a NAT, disabled that and it seems to have resolved problems.
I believe this only affects server 2012 but I’m documenting in here so I can look it up later.
I use Openssl to create CSRs and merge my private key to my new certificate from digicert, this way I can reformat, keep a copy of everything separately and use it easily elsewhere.
I usually merge my new certificate from digicert and my private key with this common command;
OpenSSL.exe pkcs12 –export –in certfile.cer –inkey certfile.key –out certfile.pfx
And twice now I’ve been getting errors when importing it to server 2012 servers where it tells me the import password is incorrect, even if I don’t use a password.
By using another non server 2012 server and use user security rather than Password security, which works IF the site has other non 2012 servers
I’ve found this article https://serverfault.com/questions/1097326/windows-certificate-import-not-accepting-private-key-password#:~:text=I%20finally%20found,import%20worked%20fine.
And apparently, windows doesn’t like the default OpenSSL encryption,
And instead, merge the certs with this command;
openssl pkcs12 -export -certpbe PBE-SHA1-3DES -keypbe PBE-SHA1-3DES -nomac –in certfile.cer –inkey certfile.key –out certfile.pfx
Windows will be much happier, I’m sure this is very useful for all the windows 2012 servers still out there.
Note that the use of the += addition operator on an array in powershell can run /very/ slowly if you’re working with a large array. This is because under the hood an array is allocated a fixed chunk of memory and modifying the array requires creating a newly sized fixed chunk of memory and copying all of the data into the new memory.
There are two ways of working around this. Either by using a c# type System.Collection.ArrayList or by using a neat powershell trick (below). If you’re only working on small arrays the overhead of this is going to be negligible and may not warrant rewriting to an arraylist.
Error:
Desktops showing activation errors randomly after 6 months or working fine.
This is possibly caused after the reimaging done late last year but no idea why it takes +6 months to show up.
Error message when trying to activate:
Devices are acting as if it’s trying to connect to a KMS server.
Error 0x8007232B DNS name does not exist
Fix:
Device must be activated with the ORIGINAL key
Find the original key with this command; wmic path softwarelicensingservice get OA3xOriginalProductKey
Go to windows activation, Settings > Update & Security > Activation
And Change product key to this original key. (need to have admin permissions)
Activate windows and you’re golden!
Don’t be smart and try to change the key and activate through the “SLMGR /ipk” command, THIS FAILS!! And will lead you down a path of despair… Don’t follow me.