Passler PRTG Windows update Probe says missing updates, but none in windows update
You can run this commands to see what updates, that PRTG windows update probes is warning about.
Kenneth Qvistgaard Dalbjerg, IT Konsulent i århus
You can run this commands to see what updates, that PRTG windows update probes is warning about.
This script checks first that folders exist, then that filename are the same, and then that file Hash is the same
Here are a script, that you can include in yours script, to add Exchange management shell, to “normal” powershell scripts.
Today i have a problem that an exchange will not send mails though TLS, no matter what i do. I find out that, somehow this exchange servers where creating new send connector, with forcehelo...
If you have enabled that a user get lock out in Active Directory, if the user type the password wrong X times. Then you might have experienced, that yours admin account get locked out...
When you try to delete a mailbox, you may get this error:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbitration mailboxes. To get a list of all mailboxes in this database, run the command Get-Mailbox -Database Database ID. To get a list of all mailbox plans in this database, run the command Get-MailboxPlan. To get a list of archive mailboxes in this database, run the command Get-Mailbox -Database Database ID -Archive. To get a list of all public folder mailboxes in this database, run the command Get-Mailbox -Database Database ID -PublicFolder. To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database Database ID -Arbitration. To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox Mailbox ID. To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox Mailbox ID -Archive. To disable a public folder mailbox so that you can delete the mailbox database, run the command Disable-Mailbox Mailbox ID -PublicFolder. Arbitration mailboxes should be moved to another server; to do this, run the command New-MoveRequest Parameters. If this is the last server in the organization, run the command Disable-Mailbox Mailbox ID -Arbitration -DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox. Mailbox plans should be moved to another server; to do this, run the command Set-MailboxPlan MailboxPlan ID -Database Database ID. + CategoryInfo : InvalidOperation: (Database ID:DatabaseIdParameter) [Remove-MailboxDatabase], AssociatedUserMailboxExistException + FullyQualifiedErrorId : [Server=Server,RequestId=RequestId,TimeStamp=TimeStamp] [FailureCategory=Cmdlet-AssociatedUserMailboxExistException] XXXXXXXX,Microsoft.Exchange.Management.SystemConfigurationTasks.RemoveMailboxDatabase + PSComputerName : Computer Name |
This is because the mailbox database still contains data, that need to be moved, before you can deleted it. If you...
This is how to get an CSV file, including user_SamAccountName;User_FullName;group1;group2;group3, etc It posible to remove the comment before break, and then break the export after 5 user, to see that it function well. It...
I need to search for entry in logfiles between 3/8-2017 and 6/8-2017. So i make this powershell script to prevent search all IIS logfiles. This script will copy all log files from the orginal...
If you need to give auser access to users calendar, based on if there are member of an group, this is the way. Start Exchange Management Shell
1 2 3 4 5 6 7 8 9 10 11 |
$users = Get-ADGroupMember [groupname] | select -ExpandProperty name foreach ($user in $users) { $Mailbox = Get-Mailbox $user #The Calendar, is name "Kalender" in danish add-MailboxFolderPermission -identity “$($Mailbox.Name):\kalender” -AccessRights Editor -User [username] set-MailboxFolderPermission -identity “$($Mailbox.Name):\kalender” -AccessRights Editor -User [username] #English calendar add-MailboxFolderPermission -identity “$($Mailbox.Name):\calendar” -AccessRights Editor -User [username] set-MailboxFolderPermission -identity “$($Mailbox.Name):\calendar” -AccessRights Editor -User [username] } |
How to list all enabled user in active directory:
1 |
Get-ADUser -filter {Enabled -eq $True} -Properties "DisplayName","emailaddress" | select name,emailaddress |
How to list all enabled user in active directory, for a given OU:
1 |
Get-ADUser -SearchBase "OU=Accounts,OU=RootOU,DC=ChildDomain,DC=RootDomain,DC=com" -filter {Enabled -eq $True} -Properties "DisplayName","emailaddress","title" | select name,emailaddress |
Sidste kommentar