sc.exe create MongoDB binPath= “”C:mongobinmongod.exe” –service –dbpath “C:mongodata” –logpath “C:mongologsmongod.log”” DisplayName= “MongoDB” start= “auto” Pantelis ApostolidisPantelis Apostolidis is a Sr.
Category: Microsoft
Move mailbox to Office 365 from Exchange 2013
Connect windows powershell to Exchange Online with a Global Administrator $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/
Delete user from Office 365 with DirSync
First you need to remove the user from DirSync: Open the “Synchronization Service Manager” (cn be fount at “C:Program FilesWindowsAzureActiveDirectorySyncSYNCBUSSynchronization
A simple batch script to delete Files & Folders older than x days
The below deletes all files from c:temp older than 10 days: FORFILES /p “c:temp” /m *.* /c “cmd /c Del
Connect Powershell to Exchange Online
Connect PowerShell to Exchange Online $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection