Edit PWA instance via PowerShell

Hi,
I would like to edit one of my existing PWA instances (Project Server 2013) to change e.g. the DB server name. Via Central Administration, I would go to the Project Server Service application, select the PWA site and click "Edit".
What is the equivalent PowerShell command for this? If I try this via Mount-SPProjectWebInstance, I am getting "Project Site is already in use".
Many thanks for your help.
Joerg

Hi Joerg,
You should execute the 'Dismount-SPProjectWebInstance' command first (http://technet.microsoft.com/en-us/library/jj219523(v=office.15).aspx)
The Mount-SPProjectWebInstance creates a new Project Web Instance but does not update an existing instance.
Hope this helps

Similar Messages

  • Edit local policy via powershell

    Hi,
    i'm searching for a way to edit this policy via powershell : 
    Computer Configuration -> Administrative Templates -> System -> Credentials Delegation ->
    Allow Delegating Fresh Credentials with NTLM-only Server Authentication
    I want to activate it, and put * in value.
    I already tried it, but it doesn't work :
    $allowed = @('WSMAN/*')
    $FreshCredsValueName = "AllowFreshCredentialsWhenNTLMOnly"
    $key = 'hklm:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation'
    if (!(Test-Path $key)) {
    md $key
    New-ItemProperty -Path $key -Name $FreshCredsValueName -Value 1 -PropertyType Dword -Force
    $subkey = Join-Path $key $FreshCredsValueName
    if (!(Test-Path $subkey)) {
    md $subkey
    $i = 1
    $allowed |% {
    New-ItemProperty -Path $subkey -Name $i -Value $_ -PropertyType String -Force
    $i++
    It doesn't work, Powershell generates me an error "The WinRM client cannot process the request. A computer policy does not allow the delegation of the user credentials to the target computer"
    My computer is not in domain, but in workgroup and i'm running Windows 7 with Powershell v4.0.
    Thanks for your help

    This is how i resolved it : 
    New-ItemProperty -Path 'hklm:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation' -Name "AllowFreshCredentialsWhenNTLMOnly" -Value 1 -PropertyType Dword -Force
    New-Item -Path 'hklm:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation' -Name "AllowFreshCredentialsWhenNTLMOnly" -Value "Default Value" -Force
    New-ItemProperty -Path 'hklm:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation\AllowFreshCredentialsWhenNTLMOnly' -Name "1" -PropertyType "String" -Value '*'

  • Unable to find the default new form for list mylist1 - deploying the list instance via module feature

    hi,
    am facing a problem deploying a list instance via a feature, 
      I created the list in the UI with content and views.
    Exported the site template as WSP.
    Imported into Visual Studio the list instance, pages module and property bags.
    Copied into my new solution.
    Deploy list instance as a site-collection level scoped feature.
    activated the below features :
    mylist_ModulesFeature
    mylist_ListInstancesFeature
    mylist_PropertyBagFeature
    List deploys fine with content and views. However, I receive the following error when trying to add a new item: “Unable to find the default new form for list”. The same applies for editing items.
    can anyone pls help why i am getting this  error ?

    try these links:
    http://tomvangaever.be/blogv2/2010/04/unable-to-find-the-default-new-form-for-list/
    http://sharebrad.blogspot.in/2012/08/unable-to-find-default-edit-form-for.html
    http://stackoverflow.com/questions/10243131/deploying-a-list-instance-to-sharepoint-2010-error-unable-to-find-the-default-n
    https://happiestsharepointminds.wordpress.com/2014/03/01/unable-to-find-the-default-edit-form-for-list-or-unable-to-find-the-default-display-form-for-list/
    http://itsolutionsblog.net/sharepoint-problem-with-library-forms-unable-to-create-folder-ore-edit-properties/
    http://blogs.technet.com/b/yashgoel-msft/archive/2013/08/30/recreating-default-display-edit-and-new-forms-of-a-list-in-sharepoint-2010-using-powershell.aspx
    Please mark answer as correct if it is correct else vote for it if you find it useful

  • Trying to add Admin account in project server 2010 via powershell

    Dear All
    Unfortunately some one removed admin account from PWA 2010 so i have tried to add admin account via powershell command
    New-SPProjectSiteAdministrator -AdminAccount "dir\santosh" -Url "https://myserver/PWA"
    New-SPProjectSiteAdministrator : <nativehr>0x80070005</nativehr><nativestack></nativestack> At line:1 char:31 + New-SPProjectSiteAdministrator <<<<  -AdminAccount "dir\santosh"
    -Url "https://myserver/PWA"     + CategoryInfo          : InvalidData: (Microsoft.Offic...ewAdministrator:PSCmdletNewAdministrator) [New-SPProjectSiteAdministrator], Unaut   
    horizedAccessException     + FullyQualifiedErrorId : Microsoft.Office.Project.Server.Cmdlet.PSCmdletNewAdministrator
    Getting above error
    Help me
    Regards
    Santhu

    Hello,
    Can't you log in with an account that is already in the Administrators group then add the new account? I think you will need to run the command with a user account that already has admin access to PWA - I don't currently have an environment to test this
    on.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Setting the desktop background image via Powershell

    UPDATE: 
    I found the solution that addressed my problem, which I posted in a post below. Keeping the original post for Internet historical reasons as I the hope this helps someone else later on in their search for a solution. 
    ===============
    I have Bing'ed and I have Google'd and I haven't found a solid answer to setting the desktop wallpaper programmically.  I am trying to do this via PowerShell, but I would be happy for any other language flavor or application to work. 
    Below is the code I have tried to set the desktop background image. This has been scrounged from a few sources across the web. This solution works 25% of the time and I haven't figured out what the cause for success or failure of the execution. Or maybe
    it's neither, but waiting for Explorer to refresh. The only way to see the change 100% is to log out and log back in.
    I am running Windows 8.1 btw. 
    Thank you for looking.
    Function Get-WallPaper()
    $wp=Get-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper
    if(!$wp.WallPaper)
    { "Wall paper is not set" }
    Else
    {"Wall paper is set to $($wp.WallPaper)" }
    Function Refresh-Explorer {
    $code = @'
    private static readonly IntPtr HWND_BROADCAST = new IntPtr(0xffff);
    private const int WM_SETTINGCHANGE = 0x1a;
    private const int SMTO_ABORTIFHUNG = 0x0002;
    [System.Runtime.InteropServices.DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)]
    static extern bool SendNotifyMessage(IntPtr hWnd, uint Msg, UIntPtr wParam,
    IntPtr lParam);
    [System.Runtime.InteropServices.DllImport("user32.dll", SetLastError = true)]
    private static extern IntPtr SendMessageTimeout ( IntPtr hWnd, int Msg, IntPtr wParam, string lParam, uint fuFlags, uint uTimeout, IntPtr lpdwResult );
    [System.Runtime.InteropServices.DllImport("Shell32.dll")]
    private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
    public static void Refresh() {
    SHChangeNotify(0x8000000, 0x1000, IntPtr.Zero, IntPtr.Zero);
    SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero, null, SMTO_ABORTIFHUNG, 100, IntPtr.Zero);
    Add-Type -MemberDefinition $code -Namespace MyWinAPI -Name Explorer
    [MyWinAPI.Explorer]::Refresh()
    Function Set-WallPaper($Value)
    echo "Setting background to: $value"
    Refresh-Explorer
    Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value $value
    rundll32.exe user32.dll, UpdatePerUserSystemParameters
    #sleep 1
    rundll32.exe user32.dll, UpdatePerUserSystemParameters
    #sleep 1
    rundll32.exe user32.dll, UpdatePerUserSystemParameters
    #sleep 1
    Refresh-Explorer
    #Stop-Process -ProcessName explorer
    NOTE: I left in a few commented out statements. I found that they do not offer any help in formulating a solution.
    Thank you.

    Great news! I found the solution and all props and credit goes to
    jsd1982 of the XKCD comic
    forum from a post he made in 2007 and some deep search kung-fu Googling on my part. Here is the
    direct link to the post.
    This solution has worked for me 100% of the time on Windows 8. The only gotcha I found (minor detail) was when setting this process to run as a scheduled task, I had to run it as elevated privileges for the code to compile in memory. Running this function
    from PowerShell at the command prompt was fine. 
    NOTE: The code below is a slight trimmed down version posted by jsd1982 to just set the desktop wallpaper. I removed the image fetching from the Internet and the color inversion.
    # Credit to jsd1982
    function Compile-Csharp ([string] $code, $FrameworkVersion="v2.0.50727",
    [Array]$References)
    # Get an instance of the CSharp code provider
    $cp = new-object Microsoft.CSharp.CSharpCodeProvider
    # Build up a compiler params object...
    $framework = [System.IO.Path]::Combine($env:windir, "Microsoft.NET\Framework\$FrameWorkVersion")
    $refs = new-object Collections.ArrayList
    $refs.AddRange( @("${framework}\System.dll",
    # "${mshhome}\System.Management.Automation.dll",
    # "${mshhome}\System.Management.Automation.ConsoleHost.dll",
    "${framework}\system.windows.forms.dll",
    "${framework}\System.data.dll",
    "${framework}\System.Drawing.dll",
    "${framework}\System.Xml.dll"))
    if ($references.Count -ge 1)
    $refs.AddRange($References)
    $cpar = New-Object System.CodeDom.Compiler.CompilerParameters
    $cpar.GenerateInMemory = $true
    $cpar.GenerateExecutable = $false
    $cpar.CompilerOptions = "/unsafe";
    $cpar.OutputAssembly = "custom"
    $cpar.ReferencedAssemblies.AddRange($refs)
    $cr = $cp.CompileAssemblyFromSource($cpar, $code)
    if ( $cr.Errors.Count)
    $codeLines = $code.Split("`n");
    foreach ($ce in $cr.Errors)
    write-host "Error: $($codeLines[$($ce.Line - 1)])"
    $ce |out-default
    Throw "INVALID DATA: Errors encountered while compiling code"
    [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") > $null
    [System.Reflection.Assembly]::LoadWithPartialName("System.Runtime") > $null
    # C# code to post to wallpaper
    $code = @'
    using System;
    using System.Drawing;
    using System.Drawing.Imaging;
    using System.Runtime.InteropServices;
    using System.IO;
    using System.Net;
    using Microsoft.Win32;
    namespace test
    public class Wallpaper
    const int SPI_SETDESKWALLPAPER = 20 ;
    const int SPIF_UPDATEINIFILE = 0x01;
    const int SPIF_SENDWININICHANGE = 0x02;
    [DllImport("user32.dll", CharSet=CharSet.Auto)]
    static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ;
    public static void SetWallpaper(string uri)
    System.IO.Stream s = new WebClient().OpenRead(uri);
    Image img = System.Drawing.Image.FromStream(s);
    Bitmap copy = new Bitmap(img.Width, img.Height);
    Graphics g = Graphics.FromImage(copy);
    Rectangle rect = new Rectangle(0, 0, img.Width, img.Height);
    g.DrawImage(img, rect, 0, 0, img.Width, img.Height, GraphicsUnit.Pixel);
    g.Dispose();
    img.Dispose();
    // Save to a temp file:
    string tempPath = Path.Combine(Path.GetTempPath(), "wallpaper.bmp");
    copy.Save(tempPath, System.Drawing.Imaging.ImageFormat.Bmp);
    RegistryKey key = Registry.CurrentUser.OpenSubKey( @"Control Panel\Desktop", true ) ;
    key.SetValue(@"WallpaperStyle", 1.ToString( ) ) ;
    key.SetValue(@"TileWallpaper", 0.ToString( ) ) ;
    SystemParametersInfo( SPI_SETDESKWALLPAPER,
    0,
    tempPath,
    SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE );
    function Set-Wallpaper([string] $imgurl)
    compile-CSharp $code
    [test.Wallpaper]::SetWallpaper($imgurl)

  • Can you add delegate access to a user's calendar or mailbox folder via powershell?

    Basically I want to know if you can grant a user delegate access to another user's calendar or meeting room using native  powershell commands?
    I know you can do this via method 1, listed below, however when you grant permissions in this way and if a user wants to see who has delegate access to their calendar or inbox by going to delegate access in outlook they will not see user's who have access
    to their calendar or inbox.
    Method 1:
    Add-MailboxFolderPermission -Identity "userA:\Calendar" -User UserB -AccessRights editor
    The above is a nice and simple way of granting userB EDITOR access to UserA's calendar.
    But as stated above as you are using mailboxFolderPermissions and not DelegateAccess, this applies directly to this folder and if userA goes to their delegate access view in Outlook, they will not see that userB has access to their calendar.
    I know that you can use the below commands to see a list of user's who have delegate access to you calendar:
    Get-Mailbox userA | Get-CalendarProcessing | select resourcedelegates
    I am new to powershell and don't know if there is a way of setting delegate access to a user's calendar or inbox/folder via powershell commands, similar to the above.
    Any help with this query would be much appreciated!
    thanks

    Delegate access is simply a combination of folder rights (which you've described) and Send As right, which is conferred by Add-MailboxPermission or Send On Behalf of right, which I'm not sure if you can confer with PowerShell. Set-CalendarProesssing applies
    to resource mailboxes like conference rooms, not to user mailboxes.
    Update: "Send on Behalf of" is conferred this way:
    Set-Mailbox UserMailbox -GrantSendOnBehalfTo UserWhoSends
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • How to Add Multiple Driver Packages Using Reference File via PowerShell

    Hey All - 
    I've got a task I'm working on which would be much easier via PowerShell.  I tried figuring it out, but couldn't so thought I'd post.
    The Task
    I need to create about 50 new, empty driver packages (most are in the same folder in the console) and am trying to find a method of doing so where I may use a source text file / csv file as reference in the command line.  Each package has a unique name
    and source path.  Here are examples:
    - Latitude E5440 Win7 x86 [A01]   \\server\drivers\5440x86
    - Latitude E5440 Win7 x64 [A01]   \\server\drivers\5440x64
    The Structure
    All of the ones I want to add via PowerShell will go into the same folder in the console.  They will be in the folder "root\New Drivers\Dell CAB Drivers" 
    Any ideas or will this just take more time than it's worth for 50?  Thanks!
    Ben K.

    Also, the creation of the driver package won't be your biggest challenge, as it's as simple as New-CMDriverPackage (see:
    http://technet.microsoft.com/en-us/library/jj821724(v=sc.20).aspx).
    The biggest challenge is relating your models to a share name (unless they're all Latitude).
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Server 2012 R2: How do I set VLAN data for the Host Virtual Switch (via PowerShell)?

    I need to modify the Host (NOT the VM's) VMSwitch VLAN settings via Powershell for automation purposes.
    In Server 2012 (NOT R2), this can be done via modifying
    MSVM_VLANEndPointSettingData
    However, it seems in Server 2012 R2, that class is gone. I've manually searched through the MSVM classes, and it seems that the Host VMSWitch VLAN settings are stored
    in MSVM_EthernetSwitchPortVlanSettingData. Unfortunately, I have no way of tying that class to a specific VMSwitch.
    Any know how to do this on Server 2012 R2?

    Hi,
    I found some similar issue with your case, however this forum is not focus on the develop related issue,
    Therefore I suggest you more about the develop question please post to the MSDN forum.
    The related information:
    Problem with CPU load and WMI errors when Hyper-V is installed?
    http://social.technet.microsoft.com/Forums/windows/en-US/4eca1f42-8630-48b4-85fa-e9569445d832/problem-with-cpu-load-and-wmi-errors-when-hyperv-is-installed
    The third party solution:
    How to: Fix error 0x80041010 on Windows 8.1 + Hyper-V
    http://www.seankilleen.com/2013/11/how-to-fix-error-0x80041010-on-windows.html
    MSDN forum Developer Network
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=WAVirtualMachinesVirtualNetwork&filter=alltypes&sort=lastpostdesc
    Thanks for your understanding and support.
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • TF244069: An error occurred while checking the provisioning status of the reporting database schema for a PWA instance.

    The command TfsAdmin ProjectServer /RegisterPWA causes next error:
    TF244069: An error occurred while checking the provisioning status of the reporting database schema for a PWA instance.
    Project Server returned the following error: "Server was unable to process request. ---> The request failed with HTTP status 401: Unauthorized.".
     (type ProvisionException)
    Exception Stack Trace:    at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionPwaDBSchema.HandleSoapException(SoapException soapException, String errorResourceString)
       at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionPwaDBSchema.IsDBSchemaProvisioned()
       at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionManager.Provision()
    I installed SharePoint 2013 and Project Server 2013 as farm and TFS 2012 and my account has permissions everywhere. I read article
    http://msdn.microsoft.com/en-us/library/gg412653.aspx and gave full permissions for TFS account to SQL and Project, Project app pool account to SQL, but still have an error.
    How can I find out what exactly permissions are not enough???

    The problem was in claims authentication. Changed to Windows and all worked out.

  • How to determine the database mirroring role via Powershell?

    Is there a way to determine the current mirroring role of a database via Powershell without the use of t-sql?
    With the Microsoft.SqlServer.Management.Smo namespace and database class I can determine the status, witness and partner of the mirrored database, but I can't determine the mirroring role of the current database. I basically want to get the same result
    as the following t-sql query in powershell without using t-sql:
    SELECT m.mirroring_role_desc 
    FROM   sys.database_mirroring m JOIN sys.databases d
    ON     m.database_id = d.database_id
    WHERE  d.name = 'databasename'
    I find it very strange that there is no class property to check for this, while it is an important property of the database. Of course I can use the output of this query in my powershell script for further processing, but I still hope that there is a property
    where I can get this information.
    TheSultan8

    Just to let you know, I've already found it. Here is a part of the code that I use for checking each mirrored database what mirroring role it has:
    $sqlconnection="MYLAPTOP\SQL2008R2"
    $smo = New-Object ('Microsoft.SqlServer.Management.Smo.Server') $sqlconnection
    $mirroreddbs=$smo.Databases | where {$_.IsMirroringEnabled -eq "True"}
    $sqlversionmajor=$smo.VersionMajor
    foreach ($database in $mirroreddbs)
    # Versions lower than SQL 2008 can't query a database in recovery mode
    if ($sqlversionmajor -ge 10) 
    $dbrolevalue=$database.DatabaseOptions.Properties | where {$_.Name -eq "MirroringRole"}
    $dbrole=$dbrolevalue.Value
    One catch though, this only works on SQL 2008 and higher version.
    TheSultan8

  • [Forum FAQ] How to install and configure Windows Server Essentials Experience role on Windows Server 2012 R2 Standard via PowerShell locally and remotely

    As we all know,
    the Windows Server Essentials Experience role is available in Windows Server 2012 R2 Standard and Windows Server 2012 R2 Datacenter. We can add the Windows Server
    Essentials Experience role in Server Manager or via Windows PowerShell.
    In this article, we introduce the steps to install and configure Windows
    Server Essentials Experience role on Windows Server 2012 R2 Standard via PowerShell locally and remotely. For better analyze, we divide this article into two parts.
    Before installing the Windows Server Essentials Experience Role, please use
    Get-WindowsFeature
    PowerShell cmdlet to ensure the Windows Server Essentials Experience (ServerEssentialsRole) is available. (Figure 1)
    Figure 1.
    Part 1: Install Windows Server Essentials Experience role locally
    Add Windows Server Essentials Experience role
    Run Windows PowerShell as administrator, then type
    Add-WindowsFeature ServerEssentialsRole cmdlet to install Windows Server Essentials Experience role. (Figure 2)
    Figure 2.
    Note: It is necessary to configure Windows Server Essentials Experience (Post-deployment Configuration). Otherwise, you will encounter following issue when opening Dashboard.
    (Figure 3)
    Figure 3.
      2. Configure Windows Server Essentials Experience role
    (1)  In an existing domain environment
    Firstly, please join the Windows Server 2012 R2 Standard computer to the existing domain through the path:
    Control Panel\System\Change Settings\”Change…”\Member of. (Figure 4)
    Figure 4.
    After that, please install Windows Server Essentials Experience role as original description. After installation completed, please use the following command to configure Windows
    Server Essentials:
    Start-WssConfigurationService –Credential <Your Credential>
    Note: The type of
    Your Credential should be as: Domain-Name\Domain-User-Account.
    You must be a member of the Enterprise Admin group and Domain Admin group in Active Directory when using the command above to configure Windows Server Essentials. (Figure 5)
    Figure 5.
    Next, you can type the password for the domain account. (Figure 6)
    Figure 6.
    After setting the credential, please type “Y” to continue to configure Windows Server Essentials. (Figure 7)
    Figure 7.
    By the way, you can use
    Get-WssConfigurationStatus
    PowerShell cmdlet to
    get the status of the configuration of Windows Server Essentials. Specify the
    ShowProgress parameter to view a progress indicator. (Figure 8)
    Figure 8.
    (2) In a non-domain environment
    Open PowerShell (Run as Administrator) on the Windows Server 2012 R2 Standard and type following PowerShell cmdlets: (Figure 9)
    Start-WssConfigurationService -CompanyName "xxx" -DNSName "xxx" -NetBiosName "xxx" -ComputerName "xxx” –NewAdminCredential $cred
    Figure 9.
    After you type the commands above and click Enter, you can create a new administrator credential. (Figure 10)
    After creating the new administrator credential, please type “Y” to continue to configure Windows Server Essentials. (Figure 11)
    After a reboot, all the configurations will be completed and you can open the Windows Server Essentials Dashboard without any errors. (Figure 12)
    Figure 12.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Part 2: Install and configure Windows Server Essentials Experience role remotely
    In an existing domain environment
    In an existing domain environment, please use following command to provide credential and then add Server Essentials Role: (Figure 13)
    Add-WindowsFeature -Name ServerEssentialsRole
    -ComputerName xxx -Credential DomainName\DomainAccount
    Figure 13.
    After you enter the credential, it will start install Windows Server Essentials role on your computer. (Figure 14)
    Figure 14.
    After the installation completes, it will return the result as below:
    Figure 15.
    Next, please use the
    Enter-PSSession
    cmdlet and provide the correct credential to start an interactive session with a remote computer. You can use the commands below:
    Enter-PSSession –ComputerName
    xxx –Credential DomainName\DomainAccount (Figure 16)
    Figure 16.
    Then, please configure Server Essentials Role via
    Add-WssConfigurationService cmdlet and it also needs to provide correct credential. (Figure 17)
    Figure 17.
    After your credential is accepted, it will update and prepare your server. (Figure 18)
    Figure 18.
    After that, please type “Y” to continue to configure Windows Server Essentials. (Figure 19)
    Figure 19.
    2. In a non-domain environment
    In my test environment, I set up two computers running Windows Server 2012 R2 Standard and use Server1 as a target computer. The IP addresses for the two computers are as
    below:
    Sevrer1: 192.168.1.54
    Server2: 192.168.1.53
    Run
    Enable-PSRemoting –Force on Server1. (Figure 20)
    Figure 20.
    Since there is no existing domain, it is necessary to add the target computer (Server1) to a TrustedHosts list (maintained by WinRM) on Server 2. We can use following command
    to
    add the TrustedHosts entry:
    Set-Item WSMan:\localhost\Client\TrustedHosts IP-Address
    (Figure 21)
    Figure 21.
    Next, we can use
    Enter-PSSession
    cmdlet and provide the correct credential to start an interactive session with the remote computer. (Figure 22)
    Figure 22.
    After that, you can install Windows Server Essentials Experience Role remotely via Add-WindowsFeature ServerEssentialsRole cmdlet. (Figure 23)
    Figure 23.
    From figure 24, we can see that the installation is completed.
    Figure 24.
    Then you can use
    Start-WssConfigurationService cmdlet to configure Essentials Role and follow the steps in the first part (configure Windows Server Essentials Experience in a non-domain environment) as the steps would be the same.
    The figure below shows the status of Windows Server Essentials.
    Figure
    25.
    Finally, we have successfully configured Windows Server Essentials on Server1. (Figure 26)
    Figure 26.
    More information:
    [Forum
    FAQ] Introduce Windows Powershell Remoting
    Windows Server Essentials Setup Cmdlets
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

  • Removing rights to a mailbox via powershell issues

    I am trying to remove 2 rights to a mailbox via powershell.  the command I am running doesn't seem to work though.
    There are 2 service accounts that seem to have a deny setting on the mailbox; as shown in the screenshot.  user column is in
    Domain\User format.
    I am trying to remove these because I believe it is causing an integration issue between Cisco Unified messaging and outlook. (New voicemails do not show up in the inbox for this one user, even though tests from Cisco UM are ok.)
    Running this command doesn't seem to remove the entries I need:
    remove-MailboxPermission -Identity <USER ALIAS> -User
    <SERVICE ACCOUNT> -AccessRights FullAccess -InheritanceType all

    Hi BriGy,
    Base on my search, if you want to remove these service account permission, you need to remove from organizational level, not mailbox level.
    Please refer to the following thread, it may give you some hints:
    Deny permissions for Domain Admins on mailboxes
    Best regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Niko Cheng
    TechNet Community Support

  • ORA-44410: XE edition single instance violation error

    Hi Experts,
    Im trying to clone my database into another machine, That machine already have the XE database.
    I created pfile ad password file for the new database.
    After that
    I did like this
    oracle@sys23 ~$ ORACLE_SID=red
    oracle@sys23 ~$ sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Dec 3 10:03:26 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL&gt; startup
    ORA-32004: obsolete and/or deprecated parameter(s) specified
    ORA-44410: XE edition single instance violation error
    Please provide me the solutions
    Advance Thanks
    Sundaravel.R

    With Oracle XE, you can run only one instance. What you are trying to achieve is not possible with Oracle XE. You need to change your edition of Oracle if you want multiple instances running on the same machine.

  • Import Files to SharePoint library via Powershell

    Hi,
    I'm a newbie to programming and I appreciate anybody who can help me out.
    I need to be able to import files from a shared folder to a SharePoint document library on a scheduled basis. I prefer to do this via Powershell. 
    Here are the requirements:
    1. Shared Folder is "D:\For_Upload". There's only one folder where all files for upload will be dumped. There are no subfolders.
    2. The SharePoint Document library named "Invoice" is where the files will be uploaded. This library contains a list of folders pertaining to Invoice numbers (e.g. 5200004720, 5200004721, 5200004722, and so on.). 
    3. The documents to be uploaded will have a filename containing the Invoice number and year. The uploaded document should be dumped to a folder with its corresponding invoice number and year in the document library. If no year is specified in the filename
    then it should automatically use the current year.
    4. If the said document filename does not correspond to any invoice number in the document library folders, the document will be dumped to another shared folder labeled "D:\Not_Uploaded"
    I appreciate anybody who can assist me with this.
    Regards,
    Terri

    try these links:
    http://stackoverflow.com/questions/22411014/sharepoint-script-to-automatically-import-documents-from-a-network-share-on-a-r
    https://spfolderimport.codeplex.com/
    https://camerondwyer.wordpress.com/2014/06/04/how-to-bulk-uploadcopy-a-folder-structure-and-files-to-sharepoint/

  • Remove various accepted domains (exchange 2007) from a list file via powershell

    hello!
    i'm a newbie with powershell and i'm trying to find if is it possible to remove a lot of exchange 2007 accepted domains from a csv file using powershell.
    I want to delete accepted domains contained in a csv, it has only domains name and powershell requires the name , that is different from the domain.
    example of accepted domain in my organization:
    Name                           DomainName                DomainType            Default
    Domain0001        
    domain1.com     Authoritative         False 
    Domain0002 hello1.com
    Authoritative False
    I've only a csv with domains name:
    domain.csv:
    Domain
    domain1.com
    hello1.com
    Deleting an accepted domain via powershell requires the name so I need to extract first the name of , i've tried with this command and it works:
    Get-AcceptedDomain | Where{$_.DomainName -eq 'domain1.com'}
    This works only for 1 domain, I've a lot of domains to delete so it's inviable
    Now, i'm trying to launch this command without success:
    import-csv domain.csv | foreach {Get-AcceptedDomain | Where{$_.DomainName -eq '$_.Domain'}}
    Probably there is a syntax error, or maybe I just can't do it. 
    Any help? 
    Many thanks in advance!!

    Don't know what to tell you, then.  If I create a test file with that data, the Import-CSV works for me:
    Domain
    3414257440.domain.com
    domain1.domain.com
    '@ | set-content c:\testfiles\domain.csv
    $DomainNames =
    Import-CSV 'c:\testfiles\domain.csv' |
    Select -ExpandProperty Domain
    $DomainNames
    3414257440.domain.com
    domain1.domain.com
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Maybe you are looking for