• Home
  • Cisco
  • Exchange
  • Linux
  • Navision
  • Network
  • Virtualization
  • Windows
  • About
  •  

    Usefull powershell commands

    October 30th, 2015

    Show all locked accounts:
    Get-Eventlog -logname Security | Where EventID -EQ “4740” | Format-Table


    Active Directory operation failed on DC.dom.local. This error is not retriable. Additional information: Access is denied.

    October 8th, 2015

    When trying to set rights with the command: Add-ADPermission you get this error:
    Active Directory operation failed on DC.dom.local. This error is not retriable. Additional information: Access is denied.
    Example:
    Add-ADPermission -Identity TestGroup1 -user TestUser1 -AccessRights writeproperty -Properties member

    You need to give “Full access” to the user “Exchange trusted subsystem” on the AD group opject.
    Tip: Enable “advanced features” in AD to add the security tab.


    Cannot use Veeam powershell commands – error: Cannot load Windows PowerShell snap-in VeeamPSSnapin – Windows 2012

    October 7th, 2015

    Create this reg-key and load it on the veeam server:


    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\VeeamPSSnapIn]
    “PowerShellVersion”=”2.0”
    “Vendor”=”Veeam”
    “Description”=”Include the Veeam’s cmdlet.”
    “VendorIndirect”=”VeeamPSSnapIn, Veeam”
    “DescriptionIndirect”=”VeeamPSSnapIn,This is a PowerShell snap-in that includes the Veeam’s cmdlet.”
    “Version”=”8.0.0.0”
    “ApplicationBase”=”C:\\Program Files\\Veeam\\Backup and Replication\\Backup”
    “AssemblyName”=”Veeam.Backup.PowerShell, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bfd684de2276783a”
    “ModuleName”=”C:\\Program Files\\Veeam\\Backup and Replication\\Backup\\Veeam.Backup.PowerShell.dll”

    Load:
    asnp VeeamPSSnapin

    Run this as an example:
    Get-VBRJob


    Exit mobile version