Batch file for End Users SAP logon pad update.

Hi All,
We need to make sure that some of the new systems are updated in the end users logon pad. I know that on the logon pad itself a user can create an entry for the new Server but is it possible to create a batch file that will automatically update the logon pad, when ran.
If yes, then can someone guide me on the steps.

the logon pad relies on a few files:
saplogon.ini
sapmsg.ini
and another one less used:
sapgraph.ini
so, all you have to do is to copy these files from a distribution server, upon the next saplogon restart, it will use the new config.

Similar Messages

  • Executable or batch script for end users to export mailbox to PST

    We are in the process of taking over a small firm and proceeding with manual migration of mailboxes from this firm , currently we do not have full access to their environment and having a hard time depending on admins of their organization dealing over
    to exporting mailboxes and then importing them back to our exchange environment,  my idea is to rather provide a executable or batch script to user's of their organization get their mailboxes exported out directly from end users  so that we do not
    have to depend on remote organization's admins for every single user out there . is there a batch script or some executable code that end users can run to have their mailbox exported out directly ? 
    Aditya Mediratta

    Seems like, this informative article would be a good approach to resolve your concern :
    http://www.msexchange.org/articles-tutorials/exchange-server-2013/management-administration/managing-pst-import-export-process-exchange-server-2013-part2.html
    Moreover if you wish, you may also give a shot to this automated solution (http://www.exchangemailboxtopst.org/) in order to accomplish this job in more easier and quicker way.

  • Use CSV and batch file for net user command

    Hello Guys,
    I am trying to load domain user id's from a csv file and parse them through the net user /domain command.  I would appreciate it if someone could help me open the csv file and store each line as a variable so that it could be parsed.
    Thanks in advance.

    My apologies, I didn't notice that you specifically mentioned batch files in your question title.
    I don't have much to offer, as my batch skills are extremely rusty.
    I would personally be doing all of this via PowerShell, as the AD cmdlets can return any bit of information about your users that you'd like.
    Don't retire TechNet! -
    (Don't give up yet - 12,420+ strong and growing)

  • Batch file for IE settings

    Hi everybody,
    I want to make some changes to IE settings of many PCs to be able to open a tool which willl be used by all users using the systems..
    Since same settings are to be applied to different systems. I want to create a batch file for it .
    Settings are :
    1.Go to internet Options-- security--sites--trusted sites and and the site
    https://abc.com under it
    2.Set security level for this zone as Low
    3.Check enable protected mode
    4.Go to internet options--settings--privacy and uncheck Turn on Pop-up blocker
    5.Go to tools--compatibility view settings and the site
    https://abc.com under it . Check option - display intranet sites
    in compatibility view
    I did some research on net and found that all these settings are done by changing entries in registery.
    The site http://support.microsoft.com/kb/182569 gave lot of info on what various codes mean . But since I am new to creating
    batch files , it does not help me in writing commands. Little more research showed me that my commands would be something like
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /.....................
    However I cannot use trial and error as any unwanted change to registery may cause damage to my systems .
    It would really be very helpful if anyone can help me with his/her expertise in batch files and reg files.
    My target will be for IE8/9/10/11 preview . I am assuming the commands would be same for these versions which are comparitively new.
    Thanks,
    Mani
    manISRT

    Hi,
    this is a very broad topic, with quite a few scenarios, and potentially lots of complexity.
    Here are some thoughts I have written down for you to consider:
    Firstly, you really need to understand the basics of IE Zones, and how it is that addresses are categorised into each zone.
    There are default settings for each zone, and these are initially defined by MS, but you, or the user can, and may, have changed which zone is active, in which situation.
    E.g., if you are dealing with pc's in your organisation and under your control, vs pc's not in your organisation and/or not under your control.
    For pc's which are in your organisation, are they used only inside your office network, or are they also used outside your office network?
    Are the pc's under your control managed by Active Directory (are they members of your organisation's AD Domain?
    Does your office network use a network firewall or proxy, and the pc's inside gain access to the internet by "traversing" this proxy?
    Is the website you mention, "inside" your organisation's network, or, "outside" your organisation's network?
    If outside, how do your organisation's pc's currently become configured for internet access?
    Do they have configurations applied to the pc's, such as proxy settings? If so, does this use Proxy Auto Configuration (PAC) or INS, such as wpad.dat or proxy.pac?
    Note that if you adjust site-to-zone settings, and/or settings for a particular zone, other websites which are categorised into that zone will also attract the adjusted settings, so you need to ensure that any changes you make, are suitable for those other
    websites too.
    Is the website address part of your organisation's domain name, or a domain name that you already have particular settings for?
    Is the website/address and the content upon it controlled by your organisation?
    For compatibility view, depending upon the IE browser version, there are different methods available, you may not need to adjust the browser settings if the webpages are suitably constructed:
    Does the website specify <!DOCTYPE  ?
    Does the website supply X-UA-Compatible metatag?
    You can deliver most settings for IE in a few different ways:
    - AD GPO (you can use Group Policy Admin Templates, or, Group Policy Preferences)
    - IEAK (you can deploy a settings package with or without deploying a version of the browser)
    - registry settings (which you can deploy using scripts or batch files)
    - get the user to manually apply the settings via the user interface
    Note that some settings may need to be applied per-user (HKCU) and some settings are per-machine (HKLM).
    If you have a multi-user or hotdesk scenario (where more than a single user, uses the same machine), this might require you to re-apply the settings for each and every user.
    E.g.:
    Your organisation is wanting to use a hosted web application, accessed from inside your organisation, but it is hosted outside your ogranisation.
    The address is http://contoso.websales.hosterxyz.com
    You examine your existing pc configurations and determine that the IE Trusted Sites zone is not currently in use by any standard configurations.
    The hosted web application requires IE Protected Mode to be disabled (because of some special functions/features).
    You examine the default settings of the IE Trusted Sites zone, and observe that the Trusted Sites zone already has Protected Mode disabled.
    You decide to categorise the website "http://contoso.websales.hosterxyz.com" as a Trusted Site.
    On a test pc, you manually add the website "http://contoso.websales.hosterxyz.com" to Trusted Sites, and test the web application is operating correctly.
    You then create an AD GPO, which adds this website address into the Trusted Sites zone, and link/apply/deploy this GPO within your AD.
    Your organisations computers automatically read, process and apply this GPO, and all computers are now configured for this website as a Trusted Site.
    Note that if you use the "classic" GPO methods (Admin Templates), users can no longer manually adjust websites in or out of the Trusted Sites zone, because when "classic" GPO is deployed, it removes the ability for users to adjust these
    settings manually.
    This may be suitable for your organisation, or, unsuitable - it depends upon the degree of "freedom" you wish/need to allow.
    Alternately, you could use IEAK or GP Preferences, to deploy the Trusted Sites settings - these two methods allow the end-user to manually adjust if they choose. This means the end-user can remove the settings you deployed.
    Again, this may (or not) suit your scenario.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • CProjects for end users

    Afternoon all, i've recently installed cProjects as a add on to a WEBAS system, i'm after some useful links/information about how to use the product at all, as i've no real experience of it.
    Any help would be much appreciated, the SAP guides don't seem to be suited for end users thats all....

    Hello James,
    From your post I cannot make out which release of cProjects have you installed (3.1 or 4.0). Any way pl find below the links to the help.sap.com portal which is a detailed guide to cProjects Suite.
    cProjects Suite 3.1
    http://help.sap.com/saphelp_cpro31/helpdata/en/home.htm
    cProjects Suite 4.0
    http://help.sap.com/saphelp_ppm400/helpdata/en/index.htm
    Hope this helps.
    Rgds
    Deepak

  • Move the Cache files for all user in the domain, which work with the PC

    Is there a possibility to chance the Cache file for all User.
    If i logon with a new user the Cache is written automatically in Proflie of the user.
    can configure to Java in such a way that with announce a user the Cache file get automatically moved to c:\temp.
    Thanks for your help

    oh, too bad, it is part of the requirement-we need to do it automatically through web.
    Any easier method to change the client machine deployment.properties through web?
    Need to deploy the application to thousands PC and the PC configuration may be different one by one.
    oldguy

  • Training Material for end-users

    Hi SAP Gurus,
    I need to prepare a Online Quick Reference (OLQR)/questionnaire/FAQ's (SAP R/3 4.7 -FICO and integration of FI-SD & FI-MM), for the end-users, which they will refer to after Go-Live.
    I also need to prepare training material for end-users for (SAP R/3 4.7 -FICO and integration of FI-SD & FI-MM),to be used during the training session's prior to Go-Live.
    I would appreciate, if someone could please send me project documents related to the same on my email id [email protected]
    This is very urgent and I have to complete the documents ASAP, so please reply at the earliest.
    Thank you all in advance.
    -- SJ
    null

    Hi Ravi,
    Thanks alot for your help.
    But, I was looking for some Project documents that I can refer to for preparing Training Material and questionnaire/FAQ's/online documents (SAP R/3 4.7 -FICO, SD & MM) for the end-users, which they can refer to after Go-Live.
    It would be great, if you could please send me some project documents on my email id: [Email removed by moderator]
    Thanks,
    --SJ
    Message was edited by:
            Mario Herger

  • Failed to update permissions used for end-user recovery on . Permissions update failed for the following reason: (ID 3123)

    I patched 2012 to the SP1 level and now I'm getting these warnings on many servers.
    It seems to be considering these items as removable media?
    DPM 2012, SP1, version 4.1.3313.0
    Failed to update permissions used for end-user recovery on skutter.pmuk.net. Permissions update failed for the following reason: (ID 3123)
    Affected area: skutter.pmuk.net
    Occurred since: 11/01/2013 09:04:43
    Description: Failed to update permissions used for end-user recovery on skutter.pmuk.net. Permissions update failed for the following reason: (ID 3123)
     DPM is unable to enumerate contents in 2aad3f75a7e54a0f91b640d7f158f00a , 5702fef3756e4ca8af0554013951f32d , 78f9e6070fbd43aeb328700a88a3c926 , aquaria.pmuk.net_MTATempStore$ , ariel.pmuk.net_MTATempStore$ , atlantis.pmuk.net_downloads , atlantis.pmuk.net_MTATempStore$
    , atlantis.pmuk.net_print$ , capricorn.pmuk.net_MTATempStore$ , CCM.pmuk.net_IvrDirectory , CCM.pmuk.net_MTATempStore$ , CHIRON.pmuk.net_MTATempStore$ , cpeserv-i03.pmuk.net_IMAGING , defiant.pmuk.net_idsc , defiant.pmuk.net_MTATempStore$ ,firebird.pmuk.net_Accts_serve
    , firebird.pmuk.net_case , firebird.pmuk.net_Control ,firebird.pmuk.net_Fuel Cell , firebird.pmuk.net_HADCAD , firebird.pmuk.net_haddesign , firebird.pmuk.net_hadendurancelab , firebird.pmuk.net_HADEngCad , firebird.pmuk.net_HADPCLGainspeed ,firebird.pmuk.net_HADPCLProjects
    ,firebird.pmuk.net_HADPCLQuality  , firebird.pmuk.net_HADPCLStandards , firebird.pmuk.net_hrXerox , firebird.pmuk.net_hs , firebird.pmuk.net_ITXerox , firebird.pmuk.net_JunHigashimura , firebird.pmuk.net_MTATempStore$ ,firebird.pmuk.net_office  ,firebird.pmuk.net_OMPM
    , firebird.pmuk.net_Outplacement ,firebird.pmuk.net_personal , firebird.pmuk.net_PJSESCANNER  ,firebird.pmuk.net_pmuk ,firebird.pmuk.net_pwa ,firebird.pmuk.net_pwa2 , firebird.pmuk.net_scanfret ,firebird.pmuk.net_Siebel8  ,firebird.pmuk.net_Spares 
    ,firebird.pmuk.net_test   ,firebird.pmuk.net_TVDC ,firebird.pmuk.net_xeroxcpe$  ,firebird.pmuk.net_xeroxrd$ , HALLEY.pmuk.net_MTATempStore$ ,legion.pmuk.net_dfs ,legion.pmuk.net_MTATempStore$ , legion.pmuk.net_NETLOGON  ,legion.pmuk.net_SYSVOL
    , nemesis.pmuk.net_KEvin  ,nemesis.pmuk.net_MTATempStore$ , PLEIDES.pmuk.net_Archive , PLEIDES.pmuk.net_DGHOME , PLEIDES.pmuk.net_MTATempStore$  ,PLEIDES.pmuk.net_print$ , roosevelt.pmuk.net_ARCserve$ ,roosevelt.pmuk.net_CHEYALERT$ , roosevelt.pmuk.net_HADQCEOLP
    ,roosevelt.pmuk.net_home3 , roosevelt.pmuk.net_MTATempStore$ ,roosevelt.pmuk.net_smssource , roosevelt.pmuk.net_WindowsEasyTransfer ,roosevelt.pmuk.net_XeroxScan , sagittarius.pmuk.net_MTATempStore$ ,sagittarius.pmuk.net_print$ , sakura.pmuk.net_MTATempStore$
    ,scorpia.pmuk.net_MTATempStore$ ,scorpion.pmuk.net_chandleram, scorpion.pmuk.net_Control  ,scorpion.pmuk.net_CPE ,scorpion.pmuk.net_Digital  ,scorpion.pmuk.net_Electrical , scorpion.pmuk.net_MTATempStore$ , scorpion.pmuk.net_NASUtils ,scorpion.pmuk.net_Personal
    ,scorpion.pmuk.net_QA ,scorpion.pmuk.net_QC , scorpion.pmuk.net_Technical , silverberg.pmuk.net_dfs  ,silverberg.pmuk.net_MTATempStore$ ,silverberg.pmuk.net_NETLOGON , silverberg.pmuk.net_SYSVOL ,skutter.pmuk.net_dfs , skutter.pmuk.net_MTATempStore$ ,skutter.pmuk.net_NETLOGON
    ,skutter.pmuk.net_sharepoint-saver ,skutter.pmuk.net_SYSVOL , tempest.pmuk.net_MTATempStore$ , tempest.pmuk.net_Quarantine ,tempest.pmuk.net_SiteBackups , tempest.pmuk.net_tsdp , titania.pmuk.net_MTATempStore$ , valiant.pmuk.net_domino , valiant.pmuk.net_hadprod
    , valiant.pmuk.net_MTATempStore$ ,valiant.pmuk.net_oracle ,vindaloo.pmuk.net_MTATempStore$ , virgon.pmuk.net_faxclient ,virgon.pmuk.net_FxsSrvCp$ ,virgon.pmuk.net_MTATempStore$ , xavier.pmuk.net_Address ,xavier.pmuk.net_downloads ,xavier.pmuk.net_drivers ,
    xavier.pmuk.net_Exchange IS Starter ,xavier.pmuk.net_ExchangeOAB , xavier.pmuk.net_ExchangeUM , xavier.pmuk.net_MTATempStore$ , xavier.pmuk.net_out-arch , xavier.pmuk.net_Resources$ on the protected computer tower.pmuk.net. Recycle Bin, System Volume Information
    folder, non-NTFS volumes,  DFS links,  CDs,  Quorum Disk (for cluster) and other removable media cannot be protected. (ID 38 Details: )
    Any Ideas? backups are OK, recovery points/sync's etc.
    Mark.

    I am using DPM 2012 R2, what finally worked to me to resolve my problem with EUR was to:
    In DPM I disabled EUR
    In Computer Management delete all DPM Shares (\\?\c:\Program Files\...)
    Using ADSI edit go to CN=MS-ShareMapConfiguration,CN=System,DC=X,DC=Y (Replace X & Y for your domain)
    Delete all of the mappings within the container
    In DPM enable EUR
    In DPM on a protection group I created a new recovery point and selected “Only synchronize (available only for file data)”
    Related article on ADSI Edit and DPM -
    http://social.technet.microsoft.com/Forums/en-US/e0258384-8422-408c-8839-2580d616a9ec/edsi-edit-related-to-data-protection-manager?forum=dpmfilebackup
    I hope this helps
    JD Young

  • Can't get SAP logon pad to work.

    I've tried installing the latest version of SAP on a PC running XP, and got this error when I double click on the SAP logon pad:
    C:\Program Files\SAP\SapSetup\setup\SAL\saplgpad.s8l
    This action is only valid products that are currently installed.
    This PC may have had an older version of SAP that was not properly uninstalled.  I've tried reinstall the new version several times.  I tried a registry cleaner after removing SAP, but that did help either.  Any other suggestions?  Thanks.
    Mark

    Hi Mark
    Kindly check the Microsoft dot-net frame work. because some of the same Sap application require to install the latest Dotnet frame work.
    Regards
    Sriram

  • Looking to build a batch file for BCDedit

    I'm trying to build a batch file for bcdedit to get the variable off of one of my boots for the identifier to use to build my dual boot system.  I've been testing with trying to just get the identifier but I'm unable to get the variable when I try.
    Any help will be greatly appreciated!
    I've ran all the steps individually and they function like they are supposed to.
    Here is the basics. 
    First I need to change the descriptions around so
    bcdedit /set {current} description "Staff"
    bcdedit /set (insert variable for second boot) description "test"
    next I need to change order
    bcdedit /displayorder {current} /addfirst
    Last is to set the second drive partition
    bcdedit /set (insert variable) device partition=D:
    bcdedit /set (insert variable) osdevice partition=D:

    This is how I was finally able to get it up and working.  I just got it this morning.  I did end up having to use powershell:
    #Set the colors for the console window
    $Host.Ui.RawUi.BackGroundColor = "Black"
    $Host.Ui.RawUi.ForeGroundColor = "White"
    #Clear the screen
    cls
    Function WriteValue ($Label, $Value)
        Write-Host $Label -foregroundcolor "Gray" -NoNewLine
        Write-Host ": " -foregroundcolor "Gray" -NoNewLine
        Write-Host $Value
    Function WriteSuccess
        Write-Host ": " -foregroundcolor "Gray" -NoNewLine
        Write-Host Success -foregroundcolor "Green"
    $otherboot = bcdedit /enum `
      | Select-String "path" -Context 2,0 `
      | % { $_.Context.PreContext[0] -replace '^identifier +' } `
      | ? { $_ -ne "{current}" }
    bcdedit /set $otherboot description "Test"
    bcdedit /set $otherboot device partition=D:
    bcdedit /set $otherboot osdevice partition=D:
    WriteValue "Boot ID is" $otherboot
    WriteSuccess

  • Batch file for Export Job

    Hi,
    We created an OS batch file for our daily exports (backups). This file is scheduled to run daily at 7:00 P.M. A test run showed that it did not work. Can somebody find an error in the script?
    rem ***** SAMPLE BATCH FILE TO DO DAILY EXPORT ******
    @echo Export started at:
    @echo
    date /T
    time /T
    rem Here's a one-line NT command (But a long line!)
    rem one that splits all the date parts out, outting
    rem each one into it's own variable (weekday, day, month, year)
    for /f "tokens=1-4 delims=/ " %%a in('date /t') do
    (set=weekend=%%a& set day=%%b& set month=%%c& set year=%%d)
    set logfile=%year%_%month%_%day%.log
    set expfile=%year%_%month%_%day%.exp
    set ORACLE_SID=BDC
    set ORACLE_HOME=D:\oracle\product\10.2.0
    exp system/bdcadmin@bdc full=y grants=y file=D:\export\bdc.dmp log=D:\export\bdc.log compress=N
    @echo Export completed at:
    @echo
    date /T
    time /T
    rem ************* END OF BATCH FILE *********************
    Thank you!

    You can straight away use this batch file after modifying the exp line with your machine details and schema name.
    @echo off
    if %1/==:/ goto %2
    if NOT %1/==/?/ goto Begin
    for %%C in (echo. goto:End) do %%C
    :Begin --------------------------------------------------------------
    if NOT errorlevel 1 %0 : %OS%Parse MM DD
    %0 : %OS%Parse DD MM
    :Windows_NTParse ----------------------------------------------------
    for /f "tokens=1-4 delims=/.- " %%A in ('date /t') do (
    set Dow=%%A&set %3=%%B&set %4=%%C&set YYYY=%%D&goto End)
    :Parse --------------------------------------------------------------
    for %%C in (md cd) do %%C @tmp@
    %COMSPEC% /e:2048 /c ~tmp1.bat > ~tmp2.bat
    call ~tmp2
    if NOT errorlevel 1 goto Slash
    lfnfor on > "%_D%.-"
    ren "%_D%.-" "??? ?? ?? ????"
    for %%F in ("??? ?? ?? ????") do set _D=%%F
    lfnfor off
    :Slash
    for %%S in ("%3=%%%4%%" "%4=%%YYYY%%" "YYYY=%%1") do echo set %%S>>~tmp1.bat
    for %%S in (%_D%) do call ~tmp1 %%S
    if errorlevel 1 goto Cleanup
    %COMSPEC% /e:2048 /c ~tmp1.bat > ~tmp2.bat
    call ~tmp2
    :Cleanup
    for %%C in ("set _D=" cd.. "deltree /y @tmp@ > NUL") do %%C
    :End ----------------------------------------------------------------
    exp system/oracle file=D:\Backup\PERF_4.2_%yyyy%%mm%%dd%.dmp log=D:\Backup\PERF_4.2_%yyyy%%mm%%dd%.log owner=TEST
    ****************************************************************************************

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • Recording NWBC scripts for End User Experience

    Hi Experts,
    I am recording NWBC scripts using the Netweaver Business Client GUI for loading and running it through Robots for End User Experience Monitoring. I don't see an option to "LogOff" in NWBC client while recording  the script. We only have option to "Close all session and LogOff" in NWBC client .
    When I am using this option, it closes all the sessions including the EEM Recorder also without saving the recording .
    I need to include "LogOff" as the last step so that it doesn't leave any active sessions for each run by different robots.
    I have a Solution Manager 7.1 SP10 and NWBC client 3.5 Patch 13.
    Please help me achieve this.
    Regards,
    Manish K

    Hi,
    for a browser the recommendation is to open a new, empty tab to keep the browser alive while closing the tab with the  session. All that with the hope that the backend will use the triggered event of collapsing tab to close session.
    Maybe a similar strategy works for NWBC.. but I don't know the UI in detail.

  • DSC powershell xwindowsprocess to execute batch file under different user account

    DSC powershell run under "NT AUTHORITY\SYSTEM".
    I am trying to execute a batch file under different user account using xwindowsprocess in DSC resource kit.
    I created a custom dsc resource with 3 parameters namely Exepath, Arguments, Credential.
    I received those parameter values in settargetresource method.
    CallPInvoke
    [Source.NativeMethods]::CreateProcessAsUser(("$ExePath "+$Arguments), $Credential.GetNetworkCredential().Domain, $Credential.GetNetworkCredential().UserName, $Credential.GetNetworkCredential().Password)
    I tested it by invoking a batch file and writing username under which it executes to a text file.
    After executing, the output text file still contains the "Systemname$".

    Configuration Sample_xService_ServiceWithCredential
    param
    [string[]]
    $nodeName = 'localhost',
    [System.String]
    $Name,
    [System.String]
    [ValidateSet("Automatic", "Manual", "Disabled")]
    $StartupType="Automatic",
    [System.String]
    [ValidateSet("LocalSystem", "LocalService", "NetworkService")]
    $BuiltInAccount="LocalSystem",
    [System.Management.Automation.PSCredential]
    $Credential,
    [System.String]
    [ValidateSet("Running", "Stopped")]
    $State="Running",
    [System.String]
    [ValidateSet("Present", "Absent")]
    $Ensure="Present",
    [System.String]
    $Path,
    [System.String]
    $DisplayName,
    [System.String]
    $Description,
    [System.String[]]
    $Dependencies
    Import-DscResource -Name MSFT_xServiceResource -ModuleName xPSDesiredStateConfiguration
    Node $nodeName
    xService service
    Name = $Name
    DisplayName = $DisplayName
    Ensure = $Ensure
    Path = $Path
    StartupType = $StartupType
    Credential = $credential
    $Config = @{
    Allnodes = @(
    Nodename = "localhost"
    PSDSCAllowPlainTextPassword = $true
    #Sample Scenarios
    $credential = Get-Credential
    Sample_xService_ServiceWithCredential -ConfigurationData $Config -Name "Sample Service" -DisplayName "Sample Display Name" -Ensure "Present" -Path "C:\DSC\TestService.exe" -StartupType Automatic -Credential $credential
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Export in frame 1

    I have a simple question. I am using version CS6 and in the symbols properties panel that you get when you right click a symbol (in my library) and go to properties, there is a checkbox under Advanced, and it says "Export in frame 1". Now i know what

  • How to watch video imported from iphone to imac

    I imported a video taken on my iPhone 5, to my iMac's iPhoto.  I can see the image of the video in iphoto but nothing happens when I click on it.  In other words, how do I play the video?  Thanks for any help

  • New ZEN Firmware after sept 2008 : Dream or realit

    I guess the ZEN is now considered as an old product for the CREATIVE's engineers... Do you think a new ZEN firmware with few enhancements (like SD integration) could be possible after sept 2008 ?

  • Show Cover Page during Two-Up - Hotkey or Button?

    Hi, I find myself toggling this setting (in Acrobat Pro 8.1) on and off all the time: Menu "View", "Page Display", "Show Cover Page during Two-Up". That's because I often read PDF editions of magazines where the full-page ads have been left out, thus

  • XDB Web Service Feature  - Getting 404 error

    Hi, I have successfully setup the native WS servlet in XDB (orawsv, 11.1.0.7). But when I try to invoke the URL: http://<DB Host>:<Port>/orawsv?wsdl , I get a 404 response. I checked the servlet config file, and here is the entry for orawsv: <servlet