i worked on this stupid little issue for about 2 hours and could NOT figure out why a simple /delete command was refusing to work... well, if you are executing BCDEDIT in powershell, you MUST include identifiers in quotes!
example:PS c:\bcdedit /delete "{a11111-22222-33333-44444-55555-6666}" /clean
otherwise you'll get an error that the command specified is not valid...
>.<
Last modified by tsw on 11/4/2012 8:17:27 AM
For Office 365 the Add-RecipientPermissions is used when assigning permission to author email from an account either "SendOnBehalf" or "SendAs". See the explation here: http://help.outlook.com/en-us/140/ff852815.aspx?sl=1http://help.outlook.com/en-us/140/ff852815.aspx?sl=1
Last modified by RoDyno on 10/25/2012 6:47:39 PM
In step 2., PowerShell equivalent command (in RTM) is:Set-VMReplicationServer -ReplicationEnabled $true ` -AllowedAuthenticationType Kerberos ` -KerberosAuthenticationPort $RecoveryPort ` -DefaultStorageLocation $ReplicaStorageLocation ` -ReplicationAllowedFromAnyServer $true #Integrated is changed to Kerbe
Last modified by Thomas Lee on 8/13/2012 1:23:19 PM
$WindowLocation = Get-ItemProperty -Path "Registry::HKEY_CURRENT_USER\Software\Microsoft\Notepad"""
"Attributes of the WindowLocation object"
$WindowLocation"Below, a specific attribute is evaluated and then used in an output statement"
""
if ( 0 -eq $WindowLocation.iWindowPosDX) { "WindowPosDX is Zero"
}
else {
$property = $WindowLocation.iWindowPosDX
"WindowPosDx is not zero. It is $pro
Last modified by Thomas Lee on 6/23/2012 7:07:46 PM
Hi, I am new to Powershell. I am creating an application which will run on public IP Machine(i.e. not in any domain). i want to call powershell for modifying Active Directory object of server machine which contain active directory. Is it possible call powershell of any machine publically ? If yes, Please share some ways.
Last modified by Sachin Gangarde on 2/28/2012 12:09:13 PM
I have scripted this with PowerShell. Full post is here:http://dynamicsnavax.blogspot.com/2012/01/modify-microsoft-dynamics-ax-2012-ssrs.html
Last modified by Thomas Lee on 2/20/2012 4:43:15 PM
Cmdlet Reference for Windows Server 2008 R2Updated: November 6, 2009Applies To: Windows Server 2008 R2Cmdlet help is available for the following Windows Server® 2008 R2 roles and features:
Active Directory (AD) Cmdlets
AD FS 2.0 Cmdlets
Active Directory Rights Management Services (AD RMS) Cmdlets
AppLocker Cmdlets
Best Practice Analyzer (BPA) Cmdlets
Background Intelligent Transfer Service (
Last modified by Microsoft on 12/17/2009 6:23:18 AM
A check on all databases can be done like this in PowerShell:
[string]$ServerName = 'SANDY.sqladmin.lan'$Server = New-Object
Microsoft.SqlServer.Management.Smo.Server $ServerName$Server.Databases |
ForEach-Object { "{0:s} Checking database [$($_.Name)]..." -f
$([System.DateTime]::Now) $_.CheckTables([Microsoft.SqlServer.Management.Smo.RepairType]::None,
[Microsoft.SqlServer.Manag
Last modified by Thomas Lee on 1/27/2012 8:13:35 PM
"Windows PowerShell ISE is an optional feature. To install it, use the Add Features Wizard."
You can also install it, by running the following Powershell commands: Import-Module ServerManager Add-WindowsFeature PowerShell-ISE
Last modified by Thomas Lee on 1/25/2012 10:57:02 AM
If you simply want to remove the mailbox (but leave the AD user) use Disable-Mailbox.Remove-Mailbox deletes the AD account. By extension the mailbox is disconnected.Disable-Mailbox disconnects the mailbox and removes the exchange attributes.
Last modified by MrBign on 1/24/2012 4:19:44 AM